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

Apply cluster filters from OCP details to Optimizations

XMLWordPrintable

      When users apply cluster filter on OpenShift details page grouped-by project, the number of Optimizations doesn't reflect this cluster filter.

      Since the filtering by cluster is supported also by ROS-OCP app, I wonder if we want to make the cluster filter from OCP details page work for Optimizations? It would require to update all recommendations calls in UI to include cluster=xy if the filter is applied and pre-selection of the cluster filter on Optimization card in such cases

      May be this was not a part of the original design, but may be worth considering? 

       

      Note that we can't do the same for Nodes, as filtering by nodes is not supported by ros-ocp yet.

       

      Steps to reproduce:

      1. stage-preview env, cost-demo user
      2. go to Openshift Details page, group-by Project
      3. note the number of Optimizations for "analytics" project (3 in my case - optimization_filtering01.png)
      4. add Cluster filter: "aws" - you will see that the number of Optimizations for a given project didn't change (optimization_filtering02.png)
      5. click on the number of Optimizations for "analytics" project to get to the Optimization  card of this project - you will see 3 optimizations, two of which belong to OpenShift on GCP - Nise Populator cluster (optimization_filtering03.png), which in theory could have been filtered out by applying "cluster: aws" filter in step 4

       

        1. optimization_filtering03.png
          optimization_filtering03.png
          71 kB
        2. optimization_filtering02.png
          optimization_filtering02.png
          68 kB
        3. optimization_filtering01.png
          optimization_filtering01.png
          88 kB
        4. image-2024-03-27-14-33-58-034.png
          image-2024-03-27-14-33-58-034.png
          159 kB
        5. image-2024-03-27-14-37-02-808.png
          image-2024-03-27-14-37-02-808.png
          159 kB
        6. filter.webm
          343 kB
        7. image-2024-03-27-14-44-38-090.png
          image-2024-03-27-14-44-38-090.png
          191 kB
        8. image-2024-03-27-14-45-02-837.png
          image-2024-03-27-14-45-02-837.png
          191 kB
        9. image-2024-03-27-14-46-20-036.png
          image-2024-03-27-14-46-20-036.png
          150 kB

              dlabrecq@redhat.com Daniel Labrecque
              rhn-support-esebesto Eva Šebestová
              Yash Ajgaonkar Yash Ajgaonkar
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: