-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify DeactivationService to set scheduled deactivation time for act…
…ive UserSignups (#988) * Allow registration service to get/list/watch UserTier resources * regenerated from API * regenerated * updated deactivation controller * regenerated api * updated api * refactor * restore missing code * revert change to deactivation controller, documented reasons why * added test * moved deactivation schedule logic to deactivation controller * moved testing * updated * added sufficient test coverage for all places where scheduled deactivation time is set * fix setting scheduled deactivation time to nil only when usersignup.Status is set to deactivated * disable gocyclo linter for reconcile function, breaking this function up will just make it more difficult to read * deactivation controller should reconcile after MUR is deleted in order to reset the scheduled deactivation timestamp * a smarter way to handle resetting the scheduled deactivation time to nil after deactivation * fix test * fixed broken test, improve coverage * set scheduled deactivation time to nil when user in domain exclusion list * oops * set temporary deactivation time * improve coverage * even more coverage * fixed lint * coverage * fixed linter * fix potential infinite loop * fix * removed commented code * updated comments * removed predicate, set scheduled deactivation time to nil when in deactivating state but no notification created * review comments * slightly improve logic * review comment * coverage --------- Co-authored-by: Francisc Munteanu <[email protected]>
- Loading branch information
Showing
6 changed files
with
396 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.