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

swatch-contracts ingestion fails on initial contract messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2023-05-30 - API
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

    Description

      The partner gateway's initial messages contain subscriptionNumber or the dimensions, but not both at the same time. Contract ingestion should handle this by enriching the missing information from the Partner Gateway APIs before attempted validation.

      Namely, ContractService.collectMissingUpStreamContractDetails should be called before ContractService.validPartnerEntitlementContract. Note that because collectMissingUpstreamContractDetails operates on ContractEntity, while validPartnerEntitlementContract operates on PartnerEntitlementContract, that needs to be reconciled (validPartnerEntitlementContract should be refactored to validate a ContractEntity instead).

       

      QE Notes: Should be testable in the integration testing. Messages are currently different than what was initially expected.

      Attachments

        Activity

          People

            karshah@redhat.com Kartik Shah
            khowell@redhat.com Kevin Howell
            Ryan Himmelwright Ryan Himmelwright
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: