Repository navigation
Remove the unused page feedback DELETE endpoint - #4947
Merged
Merged
Conversation
The feedback widget only creates or updates feedback. Remove withdrawal support and verify DELETE requests return 405. Co-Authored-By: Codex <[email protected]>
| .ProducesErrors(StatusCodes.Status400BadRequest, StatusCodes.Status503ServiceUnavailable); | ||
|
|
||
| _ = group | ||
| .MapDelete("/page-feedback/{feedbackId:guid}", async ( |
There was a problem hiding this comment.
Severity: P2 (Medium)
This removes an operation advertised in the v1 OpenAPI contract. The widget is unaffected, but clients that use DELETE /docs/_api/v1/page-feedback/{feedbackId} will get 405 on the same API version, and PUT cannot withdraw feedback. Deprecate the v1 operation with a documented sunset before removing it, or remove it in a new API version.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
akira28
approved these changes
Nov 18, 2026
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4947/ Sample changed pages: |
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.
Remove the unused page-feedback DELETE endpoint. Readers continue to submit and update feedback through PUT.
Affects: Docs API
Prompt summary: Remove the page-feedback delete path and all related logic because the feedback widget does not use it. Clean up its API description, tests, and documentation.
Why
The feedback widget only creates or replaces feedback. The API still exposes a withdrawal endpoint with no frontend caller, along with storage logic and documentation to maintain.
What
Feedback withdrawal
DELETE requests to
/page-feedback/{feedbackId}now return405 Method Not Allowed. The service, Elasticsearch gateway, and local debug implementation no longer support deletion.API contract
The OpenAPI document no longer advertises withdrawal or its examples. The development guide no longer lists document deletion as a required permission.
Verification
A regression test confirms that DELETE returns
405without writing feedback. The remaining HTTP snapshots and OpenAPI expectations cover the reduced contract.Verify
The full unit suite passes with 9,890 tests passed and 2 skipped. Release compilation and the Debug CLI build also pass.
Breaking: Callers of the removed DELETE endpoint receive
405after deployment. The current feedback widget does not call it.