Host Aggregate actions open up two different modals

Bug #1290618 reported by Cindy Lu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
In Progress
Low
shlo

Bug Description

Admin > Host Aggregates

If we open up "Create Host Aggregate" modal, we see 2 tabs: "Host Aggregate Info" and "Hosts within aggregate"

However, if we click on one of the table row's "Edit Host Aggregate", it opens up it's own modal form instead of the workflow tab.

The modal behavior here should match Admin > Project. "Create Project" and "Edit Project" both open the same tabbed modal window.

Changed in horizon:
assignee: nobody → Santiago Baldassin (santiago-b-baldassin)
Revision history for this message
Santiago Baldassin (santiago-b-baldassin) wrote :

I do not agree. If the user wants to update the aggregate metadata then he/she can do it with the Edit option and if he/she wants to add or remove hosts from/to the aggregate then the Manage Host option should be used.

Revision history for this message
Cindy Lu (clu-m) wrote :

Hi Santiago,

The same thing happens in Admin > Project. It has an "Edit Project" and "Modify Users" - but they are using the same workflow modal. That is why I suggest this.

Revision history for this message
Santiago Baldassin (santiago-b-baldassin) wrote :

Hi Cindy, I got your point. What I do not agree about is that you need to use the same modal . In fact...I would change the projects modal to work the same way than the aggregates are working now

The aggregates creation has two steps:
* set the aggregate info (name and availability zone)
* add hosts to the aggregate

Once you created the aggregate you might want to just change the name, so there's no need to bother the user with an extra tab for the hosts. The same way, if you just want to add/remove hosts to the aggregate, there's no need to display the info tab.

My two cents :)

Revision history for this message
Cindy Lu (clu-m) wrote :

Hello again!

It just seems like the standard behavior right now. In Edit Instance as well. It seems like overhead if there are 3 tabs in the "Create _____" but then if you want to edit any one of them it opens up a new modal panel instead of using the existing modal.

Maybe someone can weigh in on this. :)

Changed in horizon:
assignee: Santiago Baldassin (santiago-b-baldassin) → nobody
Revision history for this message
Esperanza Romero (esperanza-romero) wrote :

I think this is actually a bug. The behavior should be consistent among all windows.

Cindy Lu (clu-m)
Changed in horizon:
assignee: nobody → Cindy Lu (clu-m)
Revision history for this message
Julie Pichon (jpichon) wrote :

I agree with Cindy and Esperanza, it seems more consistent to keep the same experience. The 2 actions should still be in the Actions menu and simply focus on a different tab. Thanks!

Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Santiago Baldassin (santiago-b-baldassin) wrote :

I'm ok with having a consistent experience that's why I suggested that we should change projects to work as aggregate is working now :)

The problem with using workflows with multiple steps is that we have to add some logic to understand which of the workflows steps have been updated by the user and act based on that. In this particular case for example, let's say we wanted to update the aggregate name, the workflow with the two tabs would be opened and the name will be updated.

Now in the workflow handle method we don't know if the user updated the aggregate info or the aggregate hosts or both. So we'll have to add some logic to determine what changed and all of this to let the user update the aggregate name :)

Revision history for this message
Julie Pichon (jpichon) wrote :

From a user experience perspective it still seems to be the best/least surprising solution, to me. I think we should work out the implementation details separately - perhaps implementing it with the existing workflow warts first, and fixing that kind of issues with "figuring out what changed" then on a larger scale, as that comes back regularly with both workflows and forms.

Cindy Lu (clu-m)
Changed in horizon:
assignee: Cindy Lu (clu-m) → nobody
Changed in horizon:
assignee: nobody → gdcabrera (guillermo-d-cabrera)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/109360

Changed in horizon:
assignee: gdcabrera (guillermo-d-cabrera) → David Caudill (7-david-r)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/109360
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Masco (masco) wrote :

removed the assignee since not active for long time.

Changed in horizon:
assignee: David Caudill (7-david-r) → nobody
status: In Progress → Confirmed
shlo (shlo-sam)
Changed in horizon:
assignee: nobody → shlo (shlo-sam)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/365539

Changed in horizon:
status: Confirmed → In Progress
Changed in horizon:
milestone: none → next
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Ivan Kolodyazhny (<email address hidden>) on branch: master
Review: https://review.openstack.org/365539
Reason: This review is > 4 months without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.