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.

       

       

       

        1. image-2024-11-12-14-49-50-333.png
          42 kB
          Pau Garcia Quiles
        2. image-2024-11-12-14-50-04-699.png
          53 kB
          Pau Garcia Quiles
        3. image-2024-11-12-14-50-26-175.png
          51 kB
          Pau Garcia Quiles
        4. image-2024-11-12-14-50-35-005.png
          55 kB
          Pau Garcia Quiles

              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: