Skip to content

feat(apidocs): Publish Explore saved queries list and create as experimental - #131237

Merged
BYK merged 1 commit into
masterfrom
byk/feat/apidocs-explore-saved-queries
Nov 16, 2026
Merged

BYK merged 1 commit into
masterfrom
byk/feat/apidocs-explore-saved-queries

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Part of #131199.

sentry-tui needs to list and save Explore queries through the generated @sentry/api SDK. Only published operations reach the SDK, and both of these are EXPERIMENTAL, which means unpublished.

Endpoint Decision Reason
GET /organizations/{org}/explore/saved/ (ExploreSavedQueriesEndpoint) EXPERIMENTAL → PUBLIC_EXPERIMENTAL as listOrganizationExploreSavedQueries User-facing but still changing (behind organizations:visibility-explore-view), so experimental rather than a firm promise
POST /organizations/{org}/explore/saved/ (same endpoint) EXPERIMENTAL → PUBLIC_EXPERIMENTAL as createOrganizationExploreSavedQuery Same

The saved query detail, starring and reorder routes aren't on the list, so they stay as they are.

Docs changes, checked against the handler and the serializer:

  • The sentence-style operationIds become token IDs with summaries. Neither op was published before, so no SDK export gets renamed.
  • sortBy is repeatable. Its list now matches the code: dateAdded instead of dateCreated, plus mostStarred and starred. The description also says which keys take a - prefix. ExploreSavedQueriesParams.SORT is shared with the unpublished combined saved-queries list, which supports the same keys.
  • New exclude (owned/shared) and starred (1) parameters. The formula filter is behind a feature flag, so it stays undocumented.
  • Every ExploreSavedQueryResponse field gets an ApiDescription. No types change.
  • idempotent_methods = frozenset(), because sending the create request again adds a second query.

Behavior, permissions and responses stay the same. Compared with master, the spec only gains these two operations. The agent-token permission matrix picks up both rows; it needed the feature flag and a POST payload.

Moving sentry-tui or the CLI onto these operations waits for an @sentry/api release that includes them.

--

View Session [Sentry]

…imental

List and create Explore saved queries move from EXPERIMENTAL to
PUBLIC_EXPERIMENTAL with token operationIds and summaries. The list documents
every query parameter the handler reads except the feature-gated formula
filter, and the response fields get descriptions. No behavior change.

Part of #131199
@sentry-junior
sentry-junior Bot requested review from a team as code owners November 16, 2026 13:42
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 16, 2026
@BYK
BYK merged commit e74e070 into master Nov 16, 2026
82 checks passed
@BYK
BYK deleted the byk/feat/apidocs-explore-saved-queries branch November 16, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant