-
Notifications
You must be signed in to change notification settings - Fork 3
Updates to Webhook events and filtering #105
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
Conversation
8706f3c
to
8e662fb
Compare
We had a call about this: Option 3 seems preferable if achievable
Following of Flow and Source collections
|
96e3329
to
827f9d1
Compare
I've made the following changes to the proposal following the call:
|
I noticed that the |
827f9d1
to
75b7959
Compare
Oops. no. Thanks for spotting that. Fix squashed into the commit. |
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.
LGTM. Should this be sem-ver: api-break
due to the change to the segments added webhook body?
75b7959
to
6bce4be
Compare
Add more filtering and size limiting capabilities. Extend the Flow Segment events to include the segment structures as returned by the API endpoint. sem-ver: api-break
d753c0a
to
1523cff
Compare
Details
This PR makes the following changes to the webhook specified in TAMS:
flows/segments_added
event now includes the list of Flow Segment data structures (segments
) rather than just atimerange
.source_ids
webhook option now also applies to Flows / Flow Segments).collected_by
(flow_collected_by_ids
webhook option).collected_by
(source_collected_by_ids
webhook option).This PR does not provide a means to transform the events based on options in the webhook registration. For example, being able to disable inclusion of presigned
get_urls
in Flow Segments. However, if the motivation was to not burden the TAMS service with creating presigned URLs then it needs to be disabled for all webhooks rather than be a per-webhook option.Jira Issue (if relevant)
Jira URL: https://jira.dev.bbc.co.uk/browse/CLOUDFIT-3547 and https://jira.dev.bbc.co.uk/browse/CLOUDFIT-5377
Related PRs
Where appropriate. Indicate order to be merged.
Submitter PR Checks
(tick as appropriate)
Reviewer PR Checks
(tick as appropriate)
Info on PRs
The checks above are guidelines. They don't all have to be ticked, but they should all have been considered.