Uploaded image for project: 'Razor'
  1. Razor
  2. RAZOR-198

Allow all CLI operation without any JSON knowledge

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: RAZOR 0.15.0
    • Fix Version/s: RAZOR 0.15.0
    • Component/s: Client, QA, Server
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      3
    • Sprint:
      May 7, May 21
    • UX Priority:
      Major

      Description

      Right now, several commands require that the user have knowledge of how to structure JSON, which does not make a good UX practice. This should be changed to allow three methods of input:

      • No JSON, all just string flags
      • JSON file via `--json` flag [existing]
      • String-based JSON via `'{"prop": "value"}'` [existing]

      There are a few tricky cases for this:

      Type Description Resolution
      Tag Rule This is a nested array of values. None — this will require pure JSON.
      Broker Configuration This consists of a user-defined JSON object, where they keys (and values) are not known beforehand. Use a series of `--configuration PARAM=VALUE` entries to generate the JSON object.
      Tags for a policy This is a JSON array where any element can be either:
      – A string, which references an existing tag
      – A combination of string and rule, to create a tag
      The string case can be solved via multiple --tag entries that get compiled into an array. The combination case, since it is a shortcut anyway, will require pure JSON.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              phong Phong Ly
              Reporter:
              scott.mcclellan Scott McClellan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support