Support user consent flow (#1293)

* Introduce user consent flow
* Add permissions to confirmation management
* rename from consent to confirmation
* Reformat code. Remove unused imports. Change and add permission checks when configuring auto-confirmation.
* Do not include null values for DDI confirmation base endpoint
* fix confirmation required checkbox id
* Remove unused import. Fix consume/produce type of new API's.
* Change term processing to proceeding when activating user consent flow
* Align formatting and extend integration test cases for DMF and DDI.
* Extend DMF test cases to consider auto-confirmation
* Refactor action management to fix problem of handling action status updates on closed actions.
* remove unsupported validation
* use new confirmation api for DMF. Extend test cases.,
* Remove unnecessary fields.
* Extend API documentation for DDI and MGMT API.
* adapt ddi api docs adoc file
* Fixed the duplicate migration version for db files
* fix method to support confirmation
* Fixed PR comments
* Addressed PR comments
* Fixed after merge compilation issue
* Fixed after merge compilation issue
* Fix failing tests in MgmtRolloutResourceTest
* Fixed the permissions issue reflected by integration tests
* Added back the missing line of code lost during merge
* Fix the failing test on Jenkins

Signed-off-by: Stanislav Trailov <stanislav.trailov@bosch.io>
Signed-off-by: Dimitar Shterev <dimitar.shterev@bosch.io>
Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io>
Signed-off-by: Shruthi Manavalli Ramanna <shruthimanavalli.ramanna@bosch-si.com>
Co-authored-by: Shruthi Manavalli Ramanna <shruthimanavalli.ramanna@bosch-si.com>
This commit is contained in:
Michael Herdt
2023-01-25 12:11:05 +01:00
committed by GitHub
parent b919ceda5c
commit 21f1569881
208 changed files with 7830 additions and 831 deletions

View File

@@ -139,6 +139,7 @@ caption.bulk.upload.targets = Bulk Upload
caption.softwares.distdetail.tab = Modules
caption.tags.tab = Tags
caption.logs.tab = Logs
caption.tab.confirmation = Auto-Confirmation
caption.attributes.tab = Attributes
caption.types.tab = Types
caption.save.window = Action Details
@@ -167,6 +168,17 @@ caption.invalidate.distributionset.affected.entities = Invalidation confirmation
caption.confirm.assign.consequences = Auto assign consequences
caption.auto.assignment.ds = Auto assignment
caption.target.auto.confirmation.activate.prefix = Activate automatic confirmations for
caption.target.auto.confirmation.activate.initiator = Initiator
prompt.target.auto.confirmation.activate.initiator = (Optional) Initiator
caption.target.auto.confirmation.activate.remark = Remark
prompt.target.auto.confirmation.activate.remark = (Optional) Remark
caption.target.auto.confirmation.disable = Disable automatic confirmations
message.target.auto.confirmation.disable = Do you want to disable automatic confirmations? \n\nThis will not have an effect on current active actions. \nFor all new assignments, the confirmation by the device will be required, before proceeding with the deployment.
caption.target.auto.confirmation.activate.consequences.caption = Active actions affected
caption.target.auto.confirmation.activate.consequences.question = Currently, the confirmation is pending for {0} active action(s). \nSaving will confirm and put them to the 'RUNNING' state.
caption.maintenancewindow.enabled = Use maintenance window
caption.maintenancewindow.schedule = Schedule
caption.maintenancewindow.duration = Duration
@@ -188,6 +200,16 @@ label.action.type = Type
label.action.soft = Soft
label.action.downloadonly = Download Only
label.action.time.forced = Time Forced
label.action.confirmation.required = Confirmation required
label.target.auto.confirmation.active = Confirmation automatically given
label.target.auto.confirmation.deactivated = Confirmation by device is required
label.target.auto.confirmation.state = State
label.target.auto.confirmation.initiator = Initiator
label.target.auto.confirmation.systemuser = System user
label.target.auto.confirmation.activatedat = Activated at
label.target.auto.confirmation.remark = Remark
button.target.auto.confirmation.activate = Activate auto-confirmation
button.target.auto.confirmation.disable = Disable auto-confirmation
label.name = Name
label.version = Version
label.vendor = Vendor
@@ -257,9 +279,11 @@ label.configuration.anonymous.download = Allow targets to download artifacts wit
label.configuration.repository.autocleanup.action.notice = Warning: The actions are deleted from the repository and cannot be restored
label.configuration.repository.multiassignments = Allow parallel execution of multiple distribution set assignments and rollouts
label.configuration.repository.multiassignments.notice = Warning: Once this assignment behavior is active, it cannot be deactivated.
label.configuration.repository.confirmationflow = Request confirmation for actions before proceeding with download/install process.
label.unsupported.browser.ie = Sorry! Your current browser is not supported. Please use Internet Explorer 11 and above
label.auto.assign.description = When an auto assign distribution set is selected, it will be automatically assigned to all targets that match the target filter.
label.auto.assign.enable = Enable auto assignment
label.auto.assign.confirmation.required = Confirmation required
label.approval.decision = Approval decision
label.approval.remark = Remark (optional)
label.drop.area.upload = Drop Files to upload
@@ -325,6 +349,7 @@ tooltip.action.status.retrieved=Retrieved
tooltip.action.status.download=Downloading
tooltip.action.status.downloaded=Downloaded
tooltip.action.status.scheduled=Scheduled
tooltip.action.status.wait_for_confirmation=Confirmation pending
#action active status
tooltip.active.action.status.active=Active
@@ -399,6 +424,9 @@ tooltip.distributionset.invalidate.forced = Open actions will be canceled and fo
tooltip.distributionset.invalidate.soft = Open actions will be canceled
tooltip.distributionset.invalidate.none = Open actions will not be canceled
tooltip.in.time = In Time
tooltip.target.filter.confirmation.required = Confirmation required
tooltip.target.filter.confirmation.not.required = Confirmation not required
tooltip.target.filter.confirmation.not.configured = Not configured
# Notification messages prefix with - message
message.save.success = {0} saved successfully
@@ -513,7 +541,8 @@ message.bulk.upload.tag.assignment.failed = Tag {0} assignment failed as tag no
message.bulk.upload.tag.assignments.failed= Few tag assignments failed as tags no longer exists
message.confirm.assign.consequences.none = This auto assignment will not have any effect on the currently available targets. In future added targets might match the filter and will receive the selected distribution set automatically.
message.confirm.assign.consequences.text = When you confirm this auto assignment, {0} targets which match the filter will immediately get assigned with the selected distribution set.
message.maintenancewindow.schedule.required.error = Please provide a Cron expression
message.confirm.assign.consequences.confirmation.hint = Hint:\nConfirmation is not required for all future assignments.\nAssignments will be marked as confirmed by "{0}".
message.maintenancewindow.schedule.required.error=Please provide a Cron expression
message.maintenancewindow.schedule.validation.error = Please enter a valid Cron expression
message.maintenancewindow.duration.required.error = Please provide a duration
message.maintenancewindow.duration.validation.error = Please enter the duration in the format hh:mm:ss, error is at {0} position
@@ -742,6 +771,7 @@ header.detail.status = Detail status
header.rolloutgroup.installed.percentage = Finished
header.rolloutgroup.threshold.error = Error threshold
header.rolloutgroup.confirmation = Confirmation
header.rolloutgroup.threshold = Trigger threshold
header.rolloutgroup.target.date = Date and time
header.rolloutgroup.target.message = Messages
@@ -754,6 +784,7 @@ prompt.trigger.threshold = Trigger threshold
prompt.trigger.threshold.required = Trigger threshold is required
prompt.error.threshold = Error threshold
prompt.error.threshold.required = Error threshold is required
prompt.confirmation.required = Confirmation required
prompt.distribution.set = Distribution set
button.rollout.groups.def.button = Define groups
button.rollout.add.group = Add Group