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

Look for existing systems by various IDs when doing a payg tally

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • swatch-tally
    • 5
    • False
    • Hide

      None

      Show
      None
    • True
    • BIZ-629 - ELS add on for concurrent (non-pay-as-you-go) RHEL offerings
    • 5

      When upserting a system during payg tally, look for possible duplicates via each identifier:
      MetricUsageCollector.collectHour needs to check for instances matching any of the keys, regardless of INSTANCE_TYPE. NOTE this makes INSTANCE_TYPE mostly irrelevant, though it optimizes performance of long-lived SaaS.
      keys:

      • inventory_id
      • insights_id
      • subscription_manager_id
      • instance_id

      Testing

      • Starting with a system record having one of the keys above, when a payg event has one matching identifier it should be treated as a matching system (a duplicate should not be made during payg tally, instead the existing record should be updated).

              Unassigned Unassigned
              khowell@redhat.com Kevin Howell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: