Skip to content

Enable API Explorer and page feedback in prod - #5010

Merged
akira28 merged 7 commits into
mainfrom
do-not-merge/enable-api-explorer-prod
Nov 24, 2026
Merged

akira28 merged 7 commits into
mainfrom
do-not-merge/enable-api-explorer-prod

Conversation

@akira28

@akira28 akira28 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This turns on ASSEMBLER_API_EXPLORER and PAGE_FEEDBACK for the prod assembler environment, so the production site serves docs-builder API pages with page feedback. Isolated and codex builds start linking API pages in the API Explorer form at the same time.

Affects: API reference, Configuration, Links & redirects

Prompt summary: Prepare the production flag change for the API Explorer go-live. It merges at the flag step of the go-live checklist in elastic/docs-eng-team#1235.

Why

prod lists no feature_flags:, so both flags stay off and production keeps serving API pages from bump.sh. staging, edge, demo and preview already run both flags on. Isolated builds link API pages to www.elastic.co, so their links must switch form at the same moment as prod does, or they point at the legacy /docs/api/doc/ URLs after the cutover.

What

Production flags

The prod environment in config/assembler.yml gains ASSEMBLER_API_EXPLORER: true and PAGE_FEEDBACK: true. No other environment changes.

Isolated build API links

IsolatedBuildEnvironmentUriResolver.LegacyApiUrls turns false, so isolated builds, and codex builds through CodexAwareUriResolver, link to https://www.elastic.co/docs/api/<api>/… and not /docs/api/doc/<api>/…. Publish environments still follow their own flag, so a host without the API Explorer keeps the legacy form.

Guard tests

The prod guard test now checks that prod's YAML sets ASSEMBLER_API_EXPLORER: true, so an environment override can't mask a removed key, and the feature-flag matrix and cross-link snapshots show the new prod flags and isolated links. FloatingLinkTests keeps covering the bump.sh version mapping through a resolver for a legacy host.

Authoring guide

The API link guide now tells authors to write /docs/api/<api>/... links. Most existing /docs/api/doc/... links still work through the edge redirect and get a hint with the new URL. Ones with no new page, such as observability-serverless, get a missing-page hint.

Risk: config/assembler.yml is also the changelog-scrubber's public-bucket allowlist, and this change goes live on the production site. Merge it only as one step of the go-live run, together with the docs-infra change in elastic/docs-infra#486. Rollback needs both repos: revert this PR and revert elastic/docs-infra#486. Reverting this PR alone stops generating the new links but does not bring back the bump.sh proxy for /docs/api/doc/.

Verify

mise run test

🤖 Generated with Claude Code

DO NOT MERGE until the API Explorer go-live checklist reaches the flag step.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

@reakaleek
reakaleek marked this pull request as ready for review November 24, 2026 10:06
@reakaleek
reakaleek requested a review from a team as a code owner November 24, 2026 10:06
@reakaleek
reakaleek requested a review from technige November 24, 2026 10:06

@reakaleek reakaleek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@akira28 akira28 changed the title DO NOT MERGE: Enable API Explorer and page feedback in prod Enable API Explorer and page feedback in prod Nov 24, 2026
Comment thread config/assembler.yml Resolved
Comment thread config/assembler.yml Resolved
Comment thread config/assembler.yml Resolved
Comment thread config/assembler.yml Resolved
akira28 and others added 2 commits November 24, 2026 11:16
Isolated builds link API pages to www.elastic.co, so they stop emitting legacy /api/doc/ URLs once prod serves the API Explorer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bump.sh mapping keeps its coverage through a legacy-host resolver.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI requested a review from reakaleek November 24, 2026 10:18
Copilot stopped work on behalf of reakaleek due to an error November 24, 2026 10:18
Comment thread docs/syntax/links.md Resolved
Comment thread docs/syntax/links.md Resolved
@akira28
akira28 enabled auto-merge (squash) November 24, 2026 10:37
@akira28
akira28 merged commit 122e0da into main Nov 24, 2026
44 checks passed
@akira28
akira28 deleted the do-not-merge/enable-api-explorer-prod branch November 24, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants