Plan Management refactoring using Mistral workflows
Refactor the few remaining actions/workflows (mainly surrounding plan management) around Mistral so that they can be used by the UI.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Julie Pichon
- Direction:
- Needs approval
- Assignee:
- Julie Pichon
- Definition:
- Approved
- Series goal:
- Accepted for newton
- Implementation:
-
Implemented
- Milestone target:
- None
- Started by
- Julie Pichon
- Completed by
- Julie Pichon
Related branches
Related bugs
Bug #1616993: Add file list in the plan update view after plan management has been ported to use Swift/Mistral | Invalid |
Sprints
Whiteboard
General status: all the necessary patches are now up for review, see list below.
Plan listing
----------------
Get a list of existing plans.
- Common:
- Mistral action -> [rbrady] https:/
- Add Zaqar messaging [flfuchs] https:/
- Client command - [jpichon] https:/
- UI - [flfuchs] https:/
Creating a plan from a JSON file
-------
Mistral action/workflow that accepts a list of filenames and their content in a JSON structure in order to create a new plan. The workflow should create a Swift container with these files then create a new plan for it.
Example structure:
{
"filename.
"directory/
}
A new workflow was created and abandoned for this ( https:/
- UI: (Parse the JSON file list and upload files to Swift directly -- or remove the ability to upload individual files and only allow tarball uploads) (Perhaps single JSON file upload + automatic extraction could be handled on the swift side with some kind of custom middleware? - http://
Deleting an existing plan
-------
- Common:
- Mistral action - rbrady strikes again! https:/
- Workflow - should we consider using the action directly? (note: client patch calls action directly)
- Client command [jpichon] https:/
- UI [akrivoka, flfuchs] https:/
Starting a deployment
-------
- Common: https:/
- CLI: https:/
- UI: [jtomasek] https:/
Additional work
-------
Once this way of creating a plan is done, we probably want to refactor the 'create plan from tarball' workflow to do something similar. Right now the logic to create the Swift container is handled in the UI when it should really be handled in Mistral. This refactoring is separate from this blueprint and will be handled as part of another bug (to be linked later).
Gerrit topic: https:/
Addressed by: https:/
Move plan listing to use Mistral and Zaqar
Addressed by: https:/
Use Mistral API for plan deletion
Addressed by: https:/
Use Mistral/Zaqar for folder-based plan-creation
Addressed by: https:/
Port plan-edit file listing to use Swift
Work Items
Dependency tree

* Blueprints in grey have been implemented.