Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3768

Migrate contract_metrics data to subscription_measurements

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • swatch-contracts
    • None

      Now that the subscription_measurements uses the subscription_number column, we can add a relationship between the contracts table to subscription_measurements, and stop using the contract_metrics.

      The additional advantage is that the subscriptions capacity view will start working as it is (without additional changes) with the contract based products.

      Complexity:

      • Requires data migration from contracts_metrics to subscription_measurements
      • Update MeasurementMetricIdTransformer to stop populating the contracts_metrics
      • Update the capacity API to not normalize the metrics anylonger, since the subscription_measurements table already has the metric ID normalized.

      For refinement:

      • Find the component test that is asserting this logic. If none, create a ticket to add one.

              Unassigned Unassigned
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: