Skip to content

Remove the unused page feedback DELETE endpoint - #4947

Merged
reakaleek merged 1 commit into
mainfrom
explain-delete-feedback-786430fe
Nov 18, 2026
Merged

reakaleek merged 1 commit into
mainfrom
explain-delete-feedback-786430fe

Conversation

@reakaleek

Copy link
Copy Markdown
Member

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 return 405 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 405 without writing feedback. The remaining HTTP snapshots and OpenAPI expectations cover the reduced contract.

Verify

dotnet test --project tests/Elastic.Documentation.Api.Tests
mise run test
dotnet build src/tooling/docs-builder

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 405 after deployment. The current feedback widget does not call it.

The feedback widget only creates or updates feedback. Remove withdrawal
support and verify DELETE requests return 405.

Co-Authored-By: Codex <[email protected]>
@reakaleek
reakaleek requested a review from a team as a code owner November 18, 2026 19:00
@reakaleek
reakaleek requested a review from akira28 November 18, 2026 19:00
.ProducesErrors(StatusCodes.Status400BadRequest, StatusCodes.Status503ServiceUnavailable);

_ = group
.MapDelete("/page-feedback/{feedbackId:guid}", async (

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@github-actions

Copy link
Copy Markdown
Contributor

@reakaleek
reakaleek merged commit 942cb54 into main Nov 18, 2026
50 checks passed
@reakaleek
reakaleek deleted the explain-delete-feedback-786430fe branch November 18, 2026 19:18
@reakaleek reakaleek added fix and removed breaking labels Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants