1. 16 Sep, 2020 2 commits
    • aguestuser's avatar
    • aguestuser's avatar
      [347] redeem channels from dispatcher.dispatch · c59b9abd
      aguestuser authored
      * check if any incoming message is from a channel with a pending
        recycle request
      * if so, redeem it (and notify admins/maintainers) right away!
      
      side-effect:
      
      * refactor dispatcher.dispatch to extract handling of early-returning
        and non-early returning side-efffects just before `relay`
        * tuck all logic that detects actionable state from system messages
          and possibly returns early after processing it into a
          `detectInterventions` helper (which returns an `intervetnion` func
          and returns early after calling it)
        * tuck all logic that detects and takes action but does not require
          returning early into a `detectSideEffects` function, which returns
          an array of side-effects to perform before proceeding to `relay`
      c59b9abd
  2. 15 Sep, 2020 1 commit
    • aguestuser's avatar
      [347] split redeem & recycle logic into 2 functions in registrar · 7ea2b5e6
      aguestuser authored
      * extract a `phoneNumberRegistrar.redeem`, which may be called from
        dispatcher as soon as a redemption message is received. it:
        * deletes recycle request for redeemed channel
        * immediately notifies channel admins and instance maintainers that
          channel has been redeemed (no more waiting 24 hours! :))
      * refactor `recycleRequestRepository.evaluateRecycleRequests`
        * rename to `recycleRequest.getMaturerecycleRequests`
        * only retrieve and return mature recycle requests
        * don't worry about filtering out redeemed channel phone numbers
          anymore, since this will be done atomically and directly by calls
          to `#redeem` above
      * simplify `phoneNumberRegistrar.processRecycleRequests`:
        * don't worry about redeemed nubmers
        * just get the mature requests, recycle their channels, and notify
          the admins that this happened
      7ea2b5e6
  3. 14 Sep, 2020 2 commits
  4. 11 Sep, 2020 20 commits
  5. 09 Sep, 2020 4 commits
  6. 08 Sep, 2020 5 commits
  7. 07 Sep, 2020 6 commits