ADS-594 Ads: events resolve their breaks by time window; breaks have no eventId - #894
Draft
georgechoustoulakis wants to merge 1 commit into
Draft
georgechoustoulakis wants to merge 1 commit into
georgechoustoulakis wants to merge 1 commit into
Conversation
Co-Authored-By: george.choustoulakis <george.choustoulakis@dolby.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Important
Do not merge before the OptiView Ads API change (ADS-391) is released to production. The live API still exposes
eventIdon breaks; these docs describe the post-release behaviour. Kept as a draft until then.Jira: ADS-594 (docs) · ADS-391 (API change)
TODO before marking ready for review
npm run refresh-ads-api-docs, then commit the result on this branch. The hand-patchedapi:blobs and rendered schemas below are expected to come out identical for theeventIdfields; any extra diff is unrelated spec drift to be reviewed separately.Summary
The OptiView Ads API stops linking breaks to events by id. An event becomes a pure time window and resolves its breaks from that window;
eventIddisappears from break requests and responses (aneventIdsent in a request is ignored), and a break is no longer validated against an event window. Deleting an event keeps its breaks.Concept pages (
ads/concepts/events.mdx,breaks.mdx,templates.mdx) now document the lookup rule forGET /channels/{channelId}/events/{eventId}/breaks:[startDate, endDate)contains its start (wallclock:start; PTS: creation time)The "Deleting an event deletes its breaks" warning becomes "Deleting an event keeps its breaks"; the "Event boundaries are respected" scheduling constraint and the
eventIdbreak override are removed.API reference (
ads/api/reference/*.api.mdx): only the break-leveleventIdproperty is removed from the create-break request body and from the break response schema on the 7 break/event endpoints that return breaks. Each page carries the endpoint's OpenAPI operation as a compressedapi:front-matter string (JSON → zlib → base64, emitted by the Docusaurus OpenAPI plugin); those were decoded, theeventIdkeys dropped, and re-encoded, and the same fields were removed from the rendered schema. Event path parameters, the templateeventIdslink and the break-manifest envelopeeventIdare unchanged. The reference was deliberately not regenerated from the live spec yet: production does not serve the new contract, and a full regeneration would also pull in unrelated drift — see the TODO above.Validation:
npm run lint,npm run check-formatpass for the changed files;npm run typecheckonly reports the pre-existing missing generated sidebars (gen-api-docsnot run locally).Link to Devin session: https://dolby.devinenterprise.com/sessions/fb0b1cb618a2429d847bb8ad43af0db7
Open in Devin Desktop: https://dolby.devinenterprise.com/desktop/session/fb0b1cb618a2429d847bb8ad43af0db7?variant=devin
Requested by: @georgechoustoulakis