-
Notifications
You must be signed in to change notification settings - Fork 4.6k
refactor(webhook): event filtering to support separate query paths for event_id and object_id filters #10402
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
Open
VenuMadhav2541
wants to merge
17
commits into
main
Choose a base branch
from
webhooks_selective_search
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+452
−220
Open
Changes from 4 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3998895
refactor(webhook): event filtering to support separate query paths fo…
VenuMadhav2541 078db2d
chore: run formatter
hyperswitch-bot[bot] 220c75b
fix(webhooks): replace unreachable!() with explicit error for clippy …
VenuMadhav2541 23b39d2
fix(webhooks): replace unreachable!() with explicit error for clippy …
VenuMadhav2541 0bb4043
refactor: Enhance webhook_events core logic for targeted event searches
VenuMadhav2541 d883c5e
chore: run formatter
hyperswitch-bot[bot] 16910a0
fix(webhooks): improve error message clarity for event list constraints
VenuMadhav2541 4a52e7b
Merge branch 'webhooks_selective_search' of https://github.com/juspay…
VenuMadhav2541 6b9bfbe
refactor(webhooks): enhance event query tests and add clippy allowance
VenuMadhav2541 a34f2fe
refactor(webhooks): change event lookup from list to single find oper…
VenuMadhav2541 b461072
refactor(webhooks): add event_id = initial_attempt_id constraint to f…
VenuMadhav2541 36e4ad3
fix(webhooks): ensure event queries return only initial event, not re…
VenuMadhav2541 2b446fd
Merge branch 'main' of https://github.com/juspay/hyperswitch into web…
VenuMadhav2541 e109fe7
refactor(webhooks): improve event processing with concurrent executio…
VenuMadhav2541 8624c5d
chore: run formatter
hyperswitch-bot[bot] b2b1f29
refactor(diesel_models): consolidate duplicate imports in events module
VenuMadhav2541 a7aa0ef
chore: run formatter
hyperswitch-bot[bot] 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 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.
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.
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.
Only one of ObjectID or EventID will be ever sent, there would be no scenario where both are provided.It would be better to split this into two separate functions
list_initial_events_by_merchant_id_primary_object_idandlist_initial_events_by_merchant_id_initial_attempt_id