Skip to content

Collect page feedback on the edge environment - #4055

Merged
theletterf merged 2 commits into
mainfrom
page-feedback-edge-environment
Sep 8, 2026
Merged

theletterf merged 2 commits into
mainfrom
page-feedback-edge-environment

Conversation

@theletterf

@theletterf theletterf commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Readers on the edge site can rate a page. The feedback widget already runs in staging, dev, and preview; this opts edge in too.

Affects: Configuration, Site UI

Prompt summary: The ask was to add the edge environment to the page feedback feature flag, following the merge of #4054.

Why

The edge environment carried no live feature_flags block — the only one it had was commented out. PAGE_FEEDBACK therefore resolved to its default of false, so the widget never rendered and readers on edge had no way to rate a page. Every other non-production environment already collects it.

What

The edge opt-in

A live feature_flags block replaces the commented-out one under edge, carrying PAGE_FEEDBACK: true. The key normalizes to page-feedback through PublishEnvironment.ToFeatureFlags(), the same path every other environment uses.

The sibling flag stays off

NAVIGATION_PREVIEW remains commented out inside the new block, so it keeps resolving to false exactly as before. Uncommenting the block header without preserving that would have switched on an unrelated flag whose retirement is still tracked by the TODO above local.

Risk: config/assembler.yml is baked into the changelog-scrubber Lambda as its public-bucket allowlist, so AGENTS.md treats any edit here as high blast-radius. This change adds two lines inside one environment's feature_flags block and touches no repository or allowlist entry. The scrubber and configuration suites both pass unchanged.

Out of scope: prod stays off. Turning it on there is a separate decision. The widget also writes to a page-feedback-v1-edge index that the API bootstraps at startup, so persistence needs an edge API deploy carrying #4054.

Verify

The two suites that read this config file:

dotnet test tests/Elastic.Documentation.Configuration.Tests/
dotnet test tests/Elastic.Changelog.Tests/

🤖 Generated with Claude Code

https://claude.ai/code/session_013qFe4JZUeEXN58iihNVsRf

Related to #4342

The widget already runs in `staging`, `dev`, and `preview`. The `edge`
environment carried no live `feature_flags` block at all, so readers there
had no way to rate a page.

`NAVIGATION_PREVIEW` stays commented out and off, as it was. Tests now cover
which environments opt into `PAGE_FEEDBACK`, that `prod` does not, and that
the flag defaults to false.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013qFe4JZUeEXN58iihNVsRf
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review feedback: the tests asserted which stage enables the flag, so they
restated `config/assembler.yml` rather than exercising behaviour, and every
config change would have to update them. The shared `FeatureFlags` default
and env-var override paths already have coverage through
`ASSEMBLER_API_EXPLORER`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013qFe4JZUeEXN58iihNVsRf
@theletterf
theletterf requested a review from reakaleek September 8, 2026 08:45
@theletterf
theletterf merged commit 259bc7e into main Sep 8, 2026
32 checks passed
@theletterf
theletterf deleted the page-feedback-edge-environment branch September 8, 2026 08:50
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