Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1168

beta-update list should use a hierarchy for query specifications

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • Client
    • None
    • Twitter Aurora Q1'15 Sprint 5
    • 3

    Description

      $ aurora beta-update list -h
      usage: aurora beta-update list [-h] [--job CLUSTER/ROLE/ENV/NAME]
                                     [--role ROLENAME] [--user username]
                                     [--status {ROLLED_BACK,ROLL_FORWARD_PAUSED,ROLL_FORWARD_AWAITING_PULSE,ERROR,ROLLING_BACK,ROLLING_FORWARD,ROLLED_FORWARD,ROLL_BACK_PAUSED,FAILED,ABORTED,ROLL_BACK_AWAITING_PULSE}]
                                     [--write-json] [--verbose]
                                     [--skip-hooks hook,hook,...]
                                     clustername
      

      This means that to query for updates for a specific, job, one must use a command like this:

      $ aurora beta-update list --job devcluster/vagrant/test/http_example devcluster
      

      In addition to being redundant, this is less user-friendly than the hierarchical syntax we use in other places.

      I suggest we change the client to drop the job and role options, and instead support commands like:

      aurora beta-update list cluster
      aurora beta-update list cluster/role
      aurora beta-update list cluster/role/env
      aurora beta-update list cluster/role/env/job
      

      Attachments

        Issue Links

          Activity

            People

              wfarner Bill Farner
              wfarner Bill Farner
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: