Remove deprecated commands from help

Bug #1406654 reported by Dean Troyer on 2014-12-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Dean Troyer

Bug Description renamed `os project usage list` to `os usage list`, we need to get `os project usage list` out of the help output before the next release to start its deprecation clock.

This may require a tweak to cliff or a nasty hack into argparse itself...

Dean Troyer (dtroyer) on 2014-12-30
Changed in python-openstackclient:
milestone: none → m7
status: New → Confirmed
importance: Undecided → High
Steve Martinelli (stevemar) wrote :

Alternatively, we could issue a deprecation warning for 'os project usage list', telling the user to use 'os usage list'. Keep that around for a release cycle, then remove 'os project usage list'.

Steve Martinelli (stevemar) wrote :

Also, we may need to do this for 'os user role list' but that'll be tricky since it's used in devstack too

Dean Troyer (dtroyer) wrote :

Auto-update didn't happen... the prototype of this is being worked in There are a couple of cliff reviews that will help too: and

Changed in python-openstackclient:
assignee: nobody → Dean Troyer (dtroyer)
status: Confirmed → In Progress

Submitter: Jenkins
Branch: master

commit bc11c4d7d8fef1d8eef3bb8f5fa18e27b9ea2964
Author: Dean Troyer <email address hidden>
Date: Wed Jan 14 18:44:10 2015 -0600

    Deprecate project usage list command

    Rather than pointing the 'project usage list' entry point directly to
    ListUsage, this makes a ListProjectUsage subclass to alias the desired
    command and still allow for changing behaviour or issuing a deprecation
    messages. This implementation simply sets a new 'deprecated' attribute
    in the command class that cliff will use to skip this command when
    generating help output.

    The actual skipping of the command in help output is dependant on merging in cliff, this review will
    simply have no effect on help output until a version of cliff with
    that update is present.

    The deprecation message printed is somewhat generic until is merged in cliff.
    Until that is merged, the deprecation message will not have the name
    of the actual command given by the user in it, but rather the text
    'this command'.

    Closes-bug: #1406654
    Change-Id: Ie08d4f88d71a660fca1862405351109cd0aa86b6

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer) on 2015-01-19
Changed in python-openstackclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers