Repository navigation
feat(apidocs): Publish open periods as experimental - #131257
Merged
Merged
Conversation
The organization open periods endpoint moves to PUBLIC_EXPERIMENTAL as listOrganizationOpenPeriods. It gets a token operationId and summary, the bucketSize parameter the handler reads, a typed list response with field descriptions, and the Monitors tag. No behavior change. Part of #131199
…en-periods Co-Authored-By: BYK <[email protected]> # Conflicts: # tests/sentry/seer/endpoints/test_organization_agent_token.py
BYK
approved these changes
Nov 17, 2026
BYK
enabled auto-merge (squash)
November 17, 2026 12:51
…en-periods # Conflicts: # tests/sentry/seer/endpoints/test_organization_agent_token.py
This branch was successfully 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.
Part of #131199.
sentry-tui needs the open and closed history of an issue or detector, which the issue details and monitor pages show as open periods. It reads it through the generated
@sentry/apiSDK, which only has published operations. This endpoint already hasextend_schemadocs, but it's unpublished, and its operationId isn't a token.GET /organizations/{org}/open-periods/(OrganizationOpenPeriodsEndpoint)PRIVATE→PUBLIC_EXPERIMENTALaslistOrganizationOpenPeriodsDoc changes, checked against the handler and serializer:
Fetch Group Open Periods→listOrganizationOpenPeriods, plus a summary. The rename is safe. The endpoint was PRIVATE, so the old ID never reached the published spec, and no@sentry/apiexport or published operationId changes. Nothing in the repo refers to the old ID.bucketSizeparameter: the handler reads it and subtracts that many seconds from eachstart/end.GroupOpenPeriodSerializer, a model serializer drf-spectacular can't describe. It's nowlist[GroupOpenPeriodResponse]. That TypedDict andGroupOpenPeriodActivityResponseget field descriptions.Workflows→Monitors, the tag the published detector endpoints use.Workflowsisn't a defined spec tag, so the build rejects it.detectorIdorgroupId.getdeclares itsResponse[...]type.Behavior, permissions and responses stay the same, and nothing breaks. The spec only gains this one operation.
The agent-token permission matrix picks up the row, with a
groupIdquery param.Moving sentry-tui or the CLI onto this operation waits for an
@sentry/apirelease that includes it.via @BYK.
--
View Session [Sentry]