-
Notifications
You must be signed in to change notification settings - Fork 167
LG-11784: deletion request 30 days #10189
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
Merged
Merged
Changes from 14 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
fdb4d40
changelog: Upcoming Features, Account reset, Dont let account reset f…
mdiarra3 ae6f163
rubocop
mdiarra3 69947d4
Merge remote-tracking branch 'origin/main' into LG-11784-deletion-req…
mdiarra3 f5b0910
login options presenter
mdiarra3 c495263
pending controller specs
mdiarra3 b5765c5
Account Reset spec
mdiarra3 d30a086
update pending specs
mdiarra3 122ca70
Merge remote-tracking branch 'origin/main' into LG-11784-deletion-req…
mdiarra3 8e709a4
LG-11784: users will see over again
mdiarra3 5450aa3
fix spec
mdiarra3 7c9cf4e
spanish and french
mdiarra3 b94920f
normalize_yaml
mdiarra3 879c1f0
use nil instead of 0 for check
mdiarra3 9e080d1
change to use specific hours rather than whether featuere is on
mdiarra3 735dea4
refactor account reset concern
mdiarra3 14d28d8
fraud period
mdiarra3 ab85187
fix concern
mdiarra3 82defd1
account reset concern fix
mdiarra3 906d914
fix user mailer
mdiarra3 00480e5
use the reset concern in pending presenter
mdiarra3 fbea98a
pending presenter spec
mdiarra3 30a994a
en
mdiarra3 1c9a9c2
normalize_yaml
mdiarra3 c8398d1
Merge remote-tracking branch 'origin/main' into LG-11784-deletion-req…
mdiarra3 346dd87
make sure to use proper naming
mdiarra3 c9da687
move over to grant request
mdiarra3 34db876
grant request
mdiarra3 d24655d
change method to work
mdiarra3 53dc2c6
commenting presenter to use proper language
mdiarra3 9f030ae
add spec for grant request
mdiarra3 0a92576
leverage reset concern
mdiarra3 add48a3
Merge remote-tracking branch 'origin/main' into LG-11784-deletion-req…
mdiarra3 d083a72
Add spec for find pending request fraud check
mdiarra3 5eb1029
make sure second step can handle the new step language
mdiarra3 bc9e831
LG-11784: add check for when wait period for fraud isnt set
mdiarra3 bfdaa9e
Regular wait period check for fraud users resetting
mdiarra3 dfd065f
Add spec checks for when account reset is nil
mdiarra3 c548109
Merge remote-tracking branch 'origin/main' into LG-11784-deletion-req…
mdiarra3 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| module AccountResetConcern | ||
| include ActionView::Helpers::DateHelper | ||
| def account_reset_deletion_period_interval | ||
| current_time = Time.zone.now | ||
|
|
||
| distance_of_time_in_words( | ||
| current_time, | ||
| current_time + account_reset_wait_period_days, | ||
| true, | ||
| accumulate_on: reset_accumulation_type, | ||
| ) | ||
| end | ||
|
|
||
| def account_reset_wait_period_days | ||
| if supports_fraud_account_reset? | ||
| IdentityConfig.store.account_reset_fraud_user_wait_period_days.days | ||
| else | ||
| IdentityConfig.store.account_reset_wait_period_days.days | ||
| end | ||
| end | ||
|
|
||
| def supports_fraud_account_reset? | ||
| (current_user.fraud_review_pending? || | ||
| current_user.fraud_rejection?) && | ||
| (IdentityConfig.store.account_reset_fraud_user_wait_period_days.present? ) | ||
| end | ||
|
|
||
| def reset_accumulation_type | ||
|
mdiarra3 marked this conversation as resolved.
Outdated
|
||
| if account_reset_wait_period_days > 3 | ||
| :days | ||
| else | ||
| :hours | ||
| end | ||
| end | ||
| end | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.