-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Refactor Fraud management #3175
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
102 commits
Select commit
Hold shift + click to select a range
15b39d6
wip
devkiran c94a068
Merge branch 'main' into fraud-event-v2
devkiran 8eb8488
Update the Prisma schema
devkiran 5d98de5
Refactor fraud event handling to utilize FraudRuleType constants for …
devkiran b2d20f5
Refactor fraud event handling by removing the deprecated fraud events…
devkiran d512af6
Rename
devkiran 706d4ac
Refactor fraud event API to support group-based retrieval, removing d…
devkiran 0a4d0f7
Refactor fraud-related components to use updated hooks and improve na…
devkiran dffb2a1
Create resolved-fraud-event-groups-table.tsx
devkiran 403c665
Refactor fraud event handling to replace deprecated resolveFraudEvent…
devkiran 1d7b095
Update ban-partner-modal.tsx
devkiran 0fec1b1
Consistent naming
devkiran acf9700
WIP
devkiran 697661c
Add partner relationship to FraudEvent and include partner in fraud e…
devkiran 893493f
Rename with resolveFraudGroupAction
devkiran 9f05aeb
Update resolve-fraud-events-modal.tsx
devkiran e5595c2
Add bulk resolve functionality for fraud event groups
devkiran 978eb0c
Fix the test
devkiran 04b26ca
Refactor fraud event handling to utilize fraud event groups, updating…
devkiran 13483ca
Add migration scripts
devkiran 0128903
Enhance fraud event processing by adding partnerId selection and refi…
devkiran 02fabdc
Update utils.ts
devkiran 9d2c0a5
Optimize the number of queries to run in createFraudEvents
devkiran ec44bc5
Update link.prisma
devkiran e0cd69f
Merge branch 'main' into fraud-event-v2
devkiran 88a6aa5
Rename
devkiran 684ca94
Merge branch 'fraud-event-v2' of https://github.com/dubinc/dub into f…
devkiran c0e0977
A few more rename
devkiran d4ca6de
Rename zod schemas
devkiran 53c2774
use fraudGroup for var name
devkiran e180fbc
Update utils.ts
devkiran d035647
A few more name consistency change
devkiran cd5d703
Update utils.ts
devkiran 4bc61cb
Merge branch 'main' into fraud-event-v2
devkiran 24d42df
Improved the FraudGroupTable component by adding reject application f…
devkiran 54b505c
Refactor partner application rejection process by introducing a dedic…
devkiran 5117298
Implement bulk rejection of partner applications with fraud reporting…
devkiran 747d03e
Enhance fraud event handling by adding special case for partnerCrossP…
devkiran 89901e1
Update fraud-review-sheet.tsx
devkiran 19b136d
Refactor bulk rejection process in partner applications modal to hand…
devkiran 6dafe0e
Merge branch 'main' into fraud-event-v2
devkiran 8aec451
Backfill fingerprint for existing fraud events
devkiran 70fcbac
Merge branch 'fraud-event-v2' of https://github.com/dubinc/dub into f…
devkiran de40382
Address CodeRabbit feedbacks
devkiran 26c0810
Update seed-fraud-events.ts
devkiran 6e2649d
More CodeRabbit fixes
devkiran 73fe99d
Update fraud-group-table.tsx
devkiran ff7b38a
Renaming for onsistency
devkiran 2b9b556
Sanitize metadata by removing fields that are stored separately or sh…
devkiran 0f491d3
Update create-fraud-events.ts
devkiran 993122a
Refactor duplicate payout method fraud detection logic into a new fun…
devkiran 8530a64
Update utils.ts
devkiran 2a5079c
Update resolve-fraud-events-modal.tsx
devkiran cf21976
Update fraud-review-sheet.tsx
devkiran 85cd52e
Add ResolveFraudEventsModal component and update related imports
devkiran 2b494ea
Update fraud-group-table.tsx
devkiran f95388c
Update fraud-group-table.tsx
devkiran e7de3ac
Fix the modal usage
devkiran 5d0ea24
Update fraud-review-sheet.tsx
devkiran 34c6145
Refactor modal usage in fraud-related components to use memoized comp…
devkiran 2825cab
Fix ban partner modal
devkiran 9ec3249
Update reject-partner-application-modal.tsx
devkiran 6fc4662
fix build
devkiran 64b3095
Update resolve-fraud-group-modal.tsx
devkiran 3c40426
Rename component and hook to align with group-based terminology.
devkiran 56b54a5
Merge branch 'main' into fraud-event-v2
steven-tey 1e64eb1
Merge branch 'main' into fraud-event-v2
steven-tey c8d526d
stash
steven-tey 1e552a7
Fix migration script
devkiran f3faa4d
Merge branch 'main' into fraud-event-v2
devkiran e391704
Update bulk-resolve-fraud-groups.ts
devkiran 7ade631
Update fraud.ts
devkiran 07e9e0c
Update route.ts
devkiran 9a2e30b
Update seed-fraud-events.ts
devkiran 2aa8fe3
Create "Duplicate payout method" fraud event only if both the duplica…
devkiran 064c65b
Send warning email if the partner connect duplicate payment method
devkiran 3102713
Merge branch 'fraud-event-v2' of https://github.com/dubinc/dub into f…
steven-tey 0c267d5
Merge branch 'main' into fraud-event-v2
steven-tey 2acb87e
Refactor fraud event creation logic to improve deduplication and grou…
devkiran 9e85d59
Replace fingerpring with hash on FraudEvent table
devkiran f8f1675
Update create-fraud-events.ts
devkiran 80068de
Update utils.ts
devkiran ce24179
Display the note as well on table
devkiran 5c097b8
Add cleanup script for duplicate payout method fraud events
devkiran 5f1e78d
Move to utils
devkiran c85c7b4
Cleanup script for duplicate payout method fraud events.
devkiran 56bca64
Update migrate-duplicate-payout-fraud-events.ts
devkiran 4aea684
Update migrate-duplicate-payout-fraud-events.ts
devkiran a6c08c2
Update migrate-fraud-events.ts
devkiran 19b7e77
Update migrate-fraud-events.ts
devkiran bffd622
Update fraud-paid-traffic-detected-table.tsx
devkiran 17fe0a3
Fix the rerender
devkiran 86ff712
Merge partner accounts should resolve the fraud events
devkiran 0894732
Update route.ts
devkiran 56df7ea
Update detect-record-fraud-application.ts
devkiran a85a5d2
Merge branch 'main' into fraud-event-v2
steven-tey 7a74164
Merge branch 'main' into fraud-event-v2
steven-tey 65b3a64
move Bulk Ban Partners out of BulkActionsMenu
steven-tey 8631ae5
Merge branch 'main' into fraud-event-v2
steven-tey c102581
Merge branch 'main' into fraud-event-v2
steven-tey 930240f
Merge branch 'main' into fraud-event-v2
steven-tey 39630e3
Merge branch 'main' into fraud-event-v2
steven-tey 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
Some comments aren't visible on the classic Files Changed page.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.