-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(events): allow listing webhook events and webhook delivery attempts by business profile #4159
Merged
Gnanasundari24
merged 3 commits into
main
from
events-list-apis-allow-profile-id-in-path
Mar 22, 2024
Merged
feat(events): allow listing webhook events and webhook delivery attempts by business profile #4159
Gnanasundari24
merged 3 commits into
main
from
events-list-apis-allow-profile-id-in-path
Mar 22, 2024
Conversation
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
SanchithHegde
added
A-core
Area: Core flows
C-feature
Category: Feature request or enhancement
S-waiting-on-review
Status: This PR has been implemented and needs to be reviewed
A-webhooks
Area: Webhook flows
labels
Mar 20, 2024
SanchithHegde
requested review from
lsampras,
Narayanbhat166,
sai-harsha-vardhan,
hrithikesh026 and
ThisIsMani
March 20, 2024 21:07
SanchithHegde
force-pushed
the
events-list-apis-allow-profile-id-in-path
branch
2 times, most recently
from
March 21, 2024 13:58
5ff5ad4
to
64af865
Compare
SanchithHegde
force-pushed
the
events-list-apis-allow-profile-id-in-path
branch
from
March 21, 2024 14:03
0aff862
to
70e224f
Compare
lsampras
approved these changes
Mar 21, 2024
ThisIsMani
approved these changes
Mar 22, 2024
ShankarSinghC
approved these changes
Mar 22, 2024
hrithikesh026
approved these changes
Mar 22, 2024
SanchithHegde
added
the
M-api-contract-changes
Metadata: This PR involves API contract changes
label
Mar 22, 2024
Narayanbhat166
approved these changes
Mar 22, 2024
SanchithHegde
removed
the
S-waiting-on-review
Status: This PR has been implemented and needs to be reviewed
label
Mar 22, 2024
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-core
Area: Core flows
A-webhooks
Area: Webhook flows
C-feature
Category: Feature request or enhancement
M-api-contract-changes
Metadata: This PR involves API contract changes
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.
Type of Change
Description
This PR extends the events list APIs added in #4131 to allow specifying either merchant ID or the business profile ID in the URLs. This PR also includes the corresponding OpenAPI specification changes.
The URLs remain the same as described in #4131, with the only difference being that
{merchant_id}
can now be substituted with{merchant_or_profile_id}
.Motivation and Context
This would allow users to list and work with events associated with a specific business profile, which could be useful when users would want to exclude events from other business profiles associated with the same merchant account.
How did you test it?
The three functionalities provided by the endpoints must be unaffected when querying by merchant ID:
List events related to a specific object:
Filter events:
List delivery attempts:
The above three functionalities must be unaffected if the merchant ID in the URLs is replaced by the profile ID:
List events related to a specific object:
Filter events:
List delivery attempts:
To simulate access from the control center and verifying correct functioning of these APIs:
api-key: test_admin
header in the above commands withAuthorization: Bearer <JWT_TOKEN>
.I've verified that accessing the APIs using the JWT token, specifying both merchant ID and profile ID works as expected.
Checklist
cargo +nightly fmt --all
cargo clippy