Skip to content

Stop storing the EUID with page feedback - #5034

Merged
reakaleek merged 3 commits into
mainfrom
remove-euid-page-feedback-5a67a08b
Nov 24, 2026
Merged

reakaleek merged 3 commits into
mainfrom
remove-euid-page-feedback-5a67a08b

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Page feedback no longer reads the euid cookie or stores an euid field, so a feedback document cannot be tied back to a visitor.

Affects: Docs API

Prompt summary: Remove the EUID from page feedback. The team should not track it.

Why

PUT /page-feedback/{feedbackId} copies the euid cookie into every document in page-feedback-v1-{env}. Feedback does not need a visitor identifier, and we should not collect one.

What

Endpoint and record

The endpoint stops reading the cookie. PageFeedbackRecord loses its Euid member and PageFeedbackRecord.From takes only the request.

Index document

PageFeedbackDocument drops Euid. The index uses Dynamic = false, so new deploys write no euid field and the mapping no longer lists it.

Out of scope: Ask AI message feedback and the OpenTelemetry user.euid enrichment still use the EUID. Documents already in page-feedback-v1-* keep their old euid values. Purging them deletes production data and needs a separate decision.

Verify

dotnet test --project tests/Elastic.Documentation.Api.Tests --treenode-filter "/*/*/PageFeedback*/*"
# Put_ValidFeedback_IgnoresEuidCookie sends an `euid` cookie and expects a record without it

The page feedback endpoint no longer reads the `euid` cookie, and `PageFeedbackDocument` no longer has an `euid` field. Existing documents keep their old values. Ask AI feedback and the OpenTelemetry enrichment are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@reakaleek
reakaleek requested a review from a team as a code owner November 24, 2026 12:56
@reakaleek
reakaleek requested a review from technige November 24, 2026 12:56
…ra-vault-gh-plugin-prod)

`UpsertFeedbackAsync_ValidRecord_SendsDocumentWithoutEuid` captures the `_bulk` body through `OnRequestCompleted` and asserts it has no `euid`. The mapping test cannot catch this, because `dynamic: false` does not strip fields from `_source`.

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

Copy link
Copy Markdown
Contributor

@reakaleek

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved in dd0faf5. The focused page-feedback tests pass (26/26).

@reakaleek
reakaleek merged commit 77fe601 into main Nov 24, 2026
44 checks passed
@reakaleek
reakaleek deleted the remove-euid-page-feedback-5a67a08b branch November 24, 2026 14:56
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.

3 participants