Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-5682

Normalize numeric values for API requests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 2024-Nov-22
    • None
    • UI
    • None

      Rates in the thousands display a comma and cannot be saved back

      Steps to reproduce:

      1. Create a Red Hat OpenShift Container Platform cost model
      2. In the Price list screen, add a rate, eg node cost = 1000 USD/month (type exactly "1000", no comma, dot or anything else)
      3. Save cost model
      4. Edit the node rate in the cost model: it shows "1,000"
      5. Don't change anything, just click on Save. An error is shown and the cost model cannot be saved until you remove the comma that we gifted the user with.

      Suggested fixes:

      a) Don't introduce a comma

      b) Know how to handle commas

       

      Either of those would work for me.

       

       

       

              dlabrecq@redhat.com Daniel Labrecque
              pgarciaq@redhat.com Pau Garcia Quiles
              Eva Šebestová Eva Šebestová
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: