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

Port CapacityReconciliationController to swatch-contracts

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • 2024-07-30 - API
    • None
    • None
    • 5

      In order to copy the functionality of the CapacityReconciliationController to swatch-contracts while the leaving the existing functionality in place, we will need to copy related classes into swatch-contracts & enable the processing in such a way that both swatch-contracts & swatch-subscriptions can exist side by side without conflicting or duplicating work. 

      Ensure that the unleash feature flag controls whether messages are processed by swatch-contracts or swatch-subscription-sync. 

      Acceptance Criteria

      • Including all the classes under the package “org.candlepin.subscriptions.capacity” from the monolith
      • Including the Kafka configuration and tests
      • Add an unleash feature flag to control whether the ReconcileCapacityByOfferingTask is processed by swatch-contracts or swatch-subscription-sync
      • Test the force offering sync method using the PUT /internal/rpc/offerings/reconcile/{sku}
      • Validate that if more than 100 subscriptions for the SKU that a message is sent to the new CapacityReconciliationWorker's topic & is processed properly
      • Validate that work is processed by either the new ReconcileCapacityByOfferingTask or the old ReconcileCapacityByOfferingTask but not both. 

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Diego de Oliveira Maranhao Diego de Oliveira Maranhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: