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

Provide deleteByOrgId endpoint in swatch-contracts

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Normal Normal
    • None
    • None
    • swatch-contracts
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • subs-swatch-lightning

      After SWATCH-3927, there are still a couple of usages of the Subscription and Offering entities/repositories in swatch-tally.  Specifically, there is an AccountResetService class that performs a delete of all subscriptions for an org.  There is no corresponding endpoint for this operation in swatch-contracts, hence this card.

      If SWATCH-3997 implements this or assume responsibility for all AccountResetService actions, please just close this card as done.

      Acceptance:

      • Create a deleteByOrgId endpoint for subscriptions accessible by swatch-tally
        • Something like DELETE /api/swatch-contracts/internal/subscriptions/org/{org_id} and return the number of subscriptions deleted or just a 204 No Content.

              Unassigned Unassigned
              awood1@redhat.com Alex Wood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: