-
Notifications
You must be signed in to change notification settings - Fork 42
[#368] Add Advanced Options Step to Plan Wizard #413
Conversation
42b4cf8
to
65fb429
Compare
c7ffb58
to
ce0fb93
Compare
@michaelkro this is great work. To answer your questions...
VM selection table should be shown with both columns disabled if no playbooks are selected. |
fccdb09
to
b58e993
Compare
@agrare @AparnaKarve can you possibly provide some API feedback for us w.r.t. to @michaelkro's questions above? We will need to query the available pre/post migration playbooks to drive the dropdowns in the plan wizard and then provide the selected pre/post somewhere in the service template POST. Additionally, we will need to ensure that the tasks now indicate pre/post playbook status when visualizing on the details page. We should be able to drive the Overview cards (aggregates) by inspecting the individual tasks. The full UX is here in this issue: Can you give us an update on these APIs? |
@priley86 I think we need to meet to discuss how we plan on doing this because neither @fdupont-redhat nor I know how this will look in the backend. |
8dba11b
to
c8c6502
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaelkro This looks great. I'll provide some text for the message if loading playbooks fails. If that's keeping you from closing #368 please open a separate issue for the error message.
@vconzola unfortunately, we can't close this until we hook it up to the back end, otherwise it'll break the Plan Wizard I'm almost done putting the final UI touches though. If we have time, I'll demo what I have in standup this afternoon |
8a2a6ad
to
0c7757a
Compare
3532b0a
to
b1517b4
Compare
8037961
to
d511426
Compare
Tested this on an appliance and it's looking really great so far. Thanks @michaelkro ! Nice job!! |
title: __('No VMs Selected'), | ||
body: __( | ||
"You've selected a pre-migration or post-migration playbook service but no VMs on which to run the playbook service. Are you sure you want to continue?" | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure that the entire gettext text appears in a single.
And then mark that line with // prettier-ignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops!
* Add VM/Playbook selection table * Custom reactabular formatters to enable dual selection columns * Extract some common helpers shared with VMStep table * Make modifications to BootstrapSelect for this use case * Confirm modal for case when a user selects a playbook, but does not select any VMs on which to run service * Form data is reset if user navigates back from Advanced Options Step to the VM Selection Step * Add schema validator for ServiceTemplateAnsiblePlaybook
[ManageIQ#368] Add Advanced Options Step to Plan Wizard (cherry picked from commit 744ccb0) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1564250
[ManageIQ#368] Add Advanced Options Step to Plan Wizard (cherry picked from commit 744ccb0) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1564250
[ManageIQ#368] Add Advanced Options Step to Plan Wizard (cherry picked from commit 744ccb0) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1564250
[ManageIQ#368] Add Advanced Options Step to Plan Wizard (cherry picked from commit 744ccb0) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1564250
Cherry picked from commit 744ccb0 Upstream PR: ManageIQ#413 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1564250
Backported to Gaprindashvili via #518 |
fixes #368
TODO
Add link to where user can create a ansible playbook catalog item (new UX request)Notes:
Services -> Catalogs
, and so, it may be difficult for a new CF user to figure out what to do next.Reasoning: If the user goes back to Step 2 and adds/removes a vm(s), things might get weird. The form data will persist, however, if the user moves forward to the Scheduling step and then comes back
Questions
Notes
Stub actions/reducer for fetching playbooksCopy and modify VMsStep table
Copy and modify BootstrapSelectModify and reuse
BootstrapSelect
for Advanced Options use caseRename Options Step to Schedule Step
If the Advanced Options Step is revisited, i.e., the user navigates forward or backwards from the step and then back again, all form data will be cleared.Reasoning:
Data regarding VM selection lives in the table's component state, and thus, is wiped when leaving the step (forward or backward). To persist, this state should be lifted to redux store.Update: Form data persists when moving forward to the Scheduling Step. i.e., when navigating back to the Advanced Options Step, playbook(s) and VM selections will have been preserved. If the user navigates backwards, from the Advanced Options Step to the VMs Step, all form data will be cleared. i.e., if the user goes back to the VM selection step, and then forward again to the Advanced Options Step, the dropdowns and table will have been returned to their initial states
Should be merged alongside Support for v2v pre/post Ansible playbook service. manageiq#17627. For now, plan creation will fail in this branch
Update: Corresponding back end PRs have been merged
Screens
No Playbooks Selected
Top Dropdown Open
One Playbook Selected
Selected VMs Totals
All Checkboxes Enabled
Confirm Dialog
Redux Form State
POST Body
https://bugzilla.redhat.com/show_bug.cgi?id=1564250