-
Notifications
You must be signed in to change notification settings - Fork 166
LG-9398 Add Fraud Review / Rejection Timestamp Columns #8142
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 all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d5376fd
Adding initial db migrations for fraud timestamp fields
7019ee5
Updating Profile model methods to use fraud timestamp columns
a732fca
Add Profile#fraud_rejection? and #fraud_review_at?
soniaconnolly 890a84e
Add references to fraud_rejection_at in specs
soniaconnolly 34da3f0
lint
soniaconnolly 2cc636d
Use new timestamp columns in profile_spec
soniaconnolly ba7e4b6
lint
soniaconnolly 2da6057
Changelog commit
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
8 changes: 8 additions & 0 deletions
8
db/primary_migrate/20230403201505_add_fraud_review_pending_at_to_profiles.rb
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,8 @@ | ||
| class AddFraudReviewPendingAtToProfiles < ActiveRecord::Migration[7.0] | ||
| disable_ddl_transaction! | ||
|
|
||
| def change | ||
| add_column :profiles, :fraud_review_pending_at, :datetime | ||
| add_index :profiles, :fraud_review_pending_at, algorithm: :concurrently | ||
| end | ||
| end |
8 changes: 8 additions & 0 deletions
8
db/primary_migrate/20230403201954_add_fraud_rejection_at_to_profiles.rb
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,8 @@ | ||
| class AddFraudRejectionAtToProfiles < ActiveRecord::Migration[7.0] | ||
| disable_ddl_transaction! | ||
|
|
||
| def change | ||
| add_column :profiles, :fraud_rejection_at, :datetime | ||
| add_index :profiles, :fraud_rejection_at, algorithm: :concurrently | ||
| 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
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.
Presuming that the || and !! business is interim code, until the booleans come out
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
||is temporary. The!!converts nil, timestamps, etc. to true/false, which will continue to be useful for a query method.