Repository navigation
Collect page feedback on the edge environment - #4055
Merged
Merged
Conversation
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
reakaleek
reviewed
Sep 8, 2026
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4055/ |
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
reakaleek
approved these changes
Sep 8, 2026
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.
Readers on the
edgesite can rate a page. The feedback widget already runs instaging,dev, andpreview; this optsedgein too.Affects:
Configuration,Site UIPrompt summary: The ask was to add the
edgeenvironment to the page feedback feature flag, following the merge of #4054.Why
The
edgeenvironment carried no livefeature_flagsblock — the only one it had was commented out.PAGE_FEEDBACKtherefore resolved to its default of false, so the widget never rendered and readers onedgehad no way to rate a page. Every other non-production environment already collects it.What
The edge opt-in
A live
feature_flagsblock replaces the commented-out one underedge, carryingPAGE_FEEDBACK: true. The key normalizes topage-feedbackthroughPublishEnvironment.ToFeatureFlags(), the same path every other environment uses.The sibling flag stays off
NAVIGATION_PREVIEWremains 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 theTODOabovelocal.Risk:
config/assembler.ymlis baked into the changelog-scrubber Lambda as its public-bucket allowlist, soAGENTS.mdtreats any edit here as high blast-radius. This change adds two lines inside one environment'sfeature_flagsblock and touches no repository or allowlist entry. The scrubber and configuration suites both pass unchanged.Out of scope:
prodstays off. Turning it on there is a separate decision. The widget also writes to apage-feedback-v1-edgeindex that the API bootstraps at startup, so persistence needs an edge API deploy carrying #4054.Verify
The two suites that read this config file:
🤖 Generated with Claude Code
https://claude.ai/code/session_013qFe4JZUeEXN58iihNVsRf
Related to #4342