Created attachment 1598763 [details] Results of v2 Table API call Description of problem: When calling the Reporting V2 Table API: Ex: ../api/v2/reports/openshift-metering/namespace-cpu-usage/table?format=json The returned results are not guaranteed to be in the same order. For example, in the attached v2TableAPIresults.txt, the "pod_usage_cpu_core_seconds" is the last element in the first 'values' array, but the 3rd element in the second 'values' array. This puts burden on app dev consumers to resort the results for consistency. Version-Release number of selected component (if applicable): latest in v4.2 How reproducible: always Steps to Reproduce: 1. Install latest operating-metering 2. Execute the v2 Table url/api above 3. review the results Actual results: Expected results: Additional info:
Got a PR up to fix this: https://github.com/operator-framework/operator-metering/pull/895
verified that all data rows have the same order. Will need to add a testcase to check for this condition.
testcase added https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-24821
Verified by QE and the UI team which relies on this, so closing. Putting as "next release" since this will be officially available in OCP 4.2, despite the fix being available on the current master builds, etc.