Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-4423 Cluster info page
  3. COST-4710

Remove old redendant method for getting infra map

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • March 2024, 2024Q1
    • None
    • API
    • None
    • 1
    • False
    • None
    • False
    • COST-3825 - Cluster information page

      We currently have two code paths to return the ocp infrastructure map in our code base.

      1.  get_ocp_infrastructure_map
      This method is still in use through this code path:
      update_summary_tables-> get_openshift_on_cloud_infra_map -> get_infra_map -> _generate_ocp_infra_map_from_sql -> get_ocp_infrastructure_map

      2. get_ocp_infrastructure_map_trino
      This method is in use through this code path:

      OCPCloudParquetReportProcessor -> ocp_infrastructure_map -> _generate_ocp_infra_map_from_sql_trino -> get_ocp_infrastructure_map_trino

      This tech debit issue to to see if we can remove the redundant code paths to retrieve the the ocp infrastructure map. 

            rhn-support-lcouzens Luke Couzens
            rhn-support-lcouzens Luke Couzens
            Daniel Chorvatovic Daniel Chorvatovic
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: