Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-2803

cannot apply some group of parameters in one command run

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.6 ER1
    • Toolbox
    • None
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      $ 3scale application-plan apply mkudlej 154 plan1 --approval-required=false --cost-per-month=44 --enabled --end-user-required=false --hide --setup-fee=55 --trial-period-days=66
      
      Error: Application plan has not been created. Errors: {"state_event"=>["cannot transition when hidden"]}
      

      There couple of issues in this command run:

      1. It is used command "apply" and not "create" so application plan cannot be created because it already exists and I've tried it update only.
      2. What is the meaning of the error message? Does it mean that user cannot change trial period by same command while he tries to hide app. plan? Does it mean that it is not possible to hide app. plan when trial period is set? So many questions...
        1. So if any parameters of command have any usage limitations it should be documented in command help message and in documentation.
        2. If it is possible there should be check if any combination of parameter cannot be used in same command run.
        3. If 3scale API doesn't return meaningful error message, Toolbox should translate it to human language.

              Unassigned Unassigned
              mkudlej@redhat.com Martin Kudlej
              Eguzki Astiz Lezaun Eguzki Astiz Lezaun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: