-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify DeactivationService to set scheduled deactivation time for active UserSignups #988
Merged
Merged
Changes from 46 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
b744180
Allow registration service to get/list/watch UserTier resources
sbryzak 73d39ca
regenerated from API
sbryzak cd8819a
regenerated
sbryzak 7d35f22
updated deactivation controller
sbryzak 0ece3f2
regenerated api
sbryzak fa5a1b8
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 30ae9a9
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 3d864f6
updated api
sbryzak 27eab89
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 76b3d25
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 7376ab0
refactor
sbryzak 8ac7c1c
restore missing code
sbryzak 141eda3
revert change to deactivation controller, documented reasons why
sbryzak 0018b07
added test
sbryzak 96bd1d0
Merge branch 'master' into SANDBOX-554
mfrancisc fdc0529
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 5fde800
moved deactivation schedule logic to deactivation controller
sbryzak bc400eb
Merge branch 'SANDBOX-554' of https://github.com/sbryzak/host-operato…
sbryzak ee76ba0
moved testing
sbryzak 51582aa
updated
sbryzak cd5409c
added sufficient test coverage for all places where scheduled deactiv…
sbryzak d7f3ae4
Merge remote-tracking branch 'origin' into SANDBOX-554
sbryzak fa1967d
fix setting scheduled deactivation time to nil only when usersignup.S…
sbryzak 7b5087b
disable gocyclo linter for reconcile function, breaking this function…
sbryzak 91f822e
deactivation controller should reconcile after MUR is deleted in orde…
sbryzak 50aeeb2
a smarter way to handle resetting the scheduled deactivation time to …
sbryzak 645191e
fix test
sbryzak e5f0ed6
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 5334e28
fixed broken test, improve coverage
sbryzak 3496763
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 9fcee7c
set scheduled deactivation time to nil when user in domain exclusion …
sbryzak 74f9329
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak bdf613b
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 85b95f1
oops
sbryzak 8333dea
set temporary deactivation time
sbryzak 67ec7fd
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 67082ca
improve coverage
sbryzak e729c5a
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 193ac5b
even more coverage
sbryzak cdd1bcd
fixed lint
sbryzak cde7536
coverage
sbryzak c7df220
fixed linter
sbryzak 087cdcb
fix potential infinite loop
sbryzak 2652fa2
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak e2dfbcb
fix
sbryzak 5fcb467
removed commented code
sbryzak d9c3511
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 5879cab
updated comments
sbryzak 5a14763
removed predicate, set scheduled deactivation time to nil when in dea…
sbryzak a8bdb69
review comments
sbryzak 10bbfb6
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 473a24a
slightly improve logic
sbryzak 3fcd207
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 8486dc6
review comment
sbryzak 9f420e9
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 4f742c6
Merge remote-tracking branch 'origin/master' into SANDBOX-554
sbryzak 1cbcfa9
coverage
sbryzak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the linter believes that the reconcile function is too complex, so we disabled that check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tried to re-enable it now? The code is less complex now then the initial one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the linter still doesn't like it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you considered refactoring the code and splitting the method into multiple ones? TBH, the linter is correct that the method is really complex and should be simplified/refactored.