← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1552686] Re: Argument 'primary' to tables.bind_row_action() decorator makes it inflexible

 

Reviewed:  https://review.openstack.org/289287
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=222774b210f127c5161326f9ebdf2cd5ee06b705
Submitter: Jenkins
Branch:    master

commit 222774b210f127c5161326f9ebdf2cd5ee06b705
Author: Timur Sufiev <tsufiev@xxxxxxxxxxxx>
Date:   Mon Mar 7 14:41:20 2016 +0300

    Auto-detect in i9n tests which row action to bind to
    
    It is no longer needed to specify `primary=True|False` in integration
    tests. Now test first tries to bind the action as primary and then (if
    unsuccessful) tries to bind one of secondary actions.
    
    Change-Id: Id1e2c921c15d6ef8ce7d2781623b3968ec7df374
    Closes-Bug: #1552686


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1552686

Title:
  Argument 'primary' to tables.bind_row_action() decorator makes it
  inflexible

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  During the transitioning from legacy Launch Instance wizard to Angular
  one it was decided to test both workflows in integration test: legacy
  for deployers' peace of mind, Angular (once tests are written) for
  developers' confidence. With both workflows enabled, the following bug
  appeared in integration tests:

  Row-level action '[legacy] Launch Instance from Image' was the first
  button in an actions dropdown, but became the second one once Angular
  workflow was enabled. Thus we had to remove `primary=True` argument in
  the corresponding test action decorator. That imposes another
  inconvenience: right now the Angular action at the same table is not
  primary, but when we eventually disable legacy action completely, it
  will become primary, and we'll have to change the tests once again.

  Thus `primary` keyword arg is considered unnecessary as it add
  inflexibility to tables.bind_row_action() decorator behavior. The
  decorator must search the action is going to be bound in both shown
  and collapsed part of dropdown.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1552686/+subscriptions


References