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

Implement AccountResetService in swatch-contracts

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • subs-swatch-lightning

      there are still a couple of usages of the Subscription and Offering entities/repositories.  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 the new card.

      Acceptance:

      • create a deleteByOrgId endpoint for swatch-contracts that matches the one currently in swatch-tally.
      • Remove subscriptionRepository.deleteByOrgId from the AccountResetService in swatch-tally
      • Use the new swatch-contracts endpoint in the IQE tests along with AccountResetService to perform the account reset.  E.g.
        •   swatch_tally_client.accountReset(org_id=123)
            swatch_contracts_client.contractsReset(org_id=123) 
      • no proxying stuff...tests that require "reset all the things" should be updated to call the swatch-tally API and swatch-contracts subsequently if the test calls for it

              Unassigned Unassigned
              lburnett0 Lindsey Burnett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: