be able to hide/disable action menu item if not relevant

Bug #1327310 reported by Cindy Lu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Ashish Chandra

Bug Description

I am not sure how dynamic the action menu is, but...

For Project > Volumes table if I have a volume that is not bootable, the "Launch as Instance" action should be hidden/disabled so it doesn't confuse the user when they do attempt to launch it.

Revision history for this message
Julie Pichon (jpichon) wrote :
tags: added: low-hanging-fruit
Changed in horizon:
status: New → Triaged
Changed in horizon:
assignee: nobody → Ashish Chandra (ashish-chandra)
Revision history for this message
Ashish Chandra (ashish-chandra) wrote :

I totally agree with Cindy, apart from this we can also add one more column in volumes tables, specfiying whether the said volume is bootable or not.

Revision history for this message
Ashish Chandra (ashish-chandra) wrote :

Ahhh... I was not running current master, so could not notice that we already have a bootable column in volumes table.

David Lyle (david-lyle)
Changed in horizon:
importance: Undecided → Low
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/104343

Changed in horizon:
status: Triaged → In Progress
Changed in horizon:
milestone: none → juno-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/104343
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2bee960509f08877e6bfd317e5a4c142b828ae49
Submitter: Jenkins
Branch: master

commit 2bee960509f08877e6bfd317e5a4c142b828ae49
Author: Ashish Chandra <email address hidden>
Date: Thu Jul 3 02:39:50 2014 +0530

    Hiding "Launch as Instance" if volume is not bootable.

    If a volume which is not bootable, is used to create an instance
    then the instance will go into 'Error' state.
    The patch solves this issue by hiding the 'Launch as Instance'
    button if the volume is not bootable.

    Closes-Bug: #1327310

    Change-Id: I3d9e7edf846fafab4e735d562c1ec72ad32fb220

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
Matthias Runge (mrunge) wrote :

Did you ran tests and look at the output?

  File "/home/mrunge/work/horizon/openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 53, in allowed
    if volume and volume.bootable == 'true':
  File "/home/mrunge/work/horizon/openstack_dashboard/api/base.py", line 81, in __getattribute__
    return object.__getattribute__(self, attr)
AttributeError: 'VolumeSnapshot' object has no attribute 'bootable'

Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-rc1 → 2014.2
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.