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

command apply creates new application plan and new metric

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 2.6 ER1
    • Toolbox
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      I've realized that this issue is valid also for command 'metric apply'

      $ 3scale application-plan create mkudlej 144 plan11 --approval-required=true --cost-per-month=11 --default --disabled --end-user-required=false --publish --setup-fee=22 --system-name=plan11sysname --trial-period-days=33
      Created application plan id: 307. Default: true; Disabled: true
      $ 3scale application-plan apply mkudlej 144 plan11 --approval-required=false --cost-per-month=44 --enabled --end-user-required=false --setup-fee=55 --trial-period-days=66
      Applied application plan id: 308; Default: false; Enabled
      

      As you can see application plan is not default after command 'apply'. User hasn't specify in 'apply' command that application plan should not be default. It seems to me that the new one was created which is not marked as default anymore. Why apply command has created new application plan? Is the old one deleted?

      I think this should be fixed or documented why has defaultness changed and new app. plan created. Also user should know from command output that new app. plan was created and why. I think this issue is important for automation of API life-cycle.

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

                Created:
                Updated:
                Resolved: