Skip to content

Fix get mutating endpoints - #5191

Merged
lindseydew merged 3 commits into
mainfrom
ld/get-full-indexes-to-post
Nov 5, 2026
Merged

lindseydew merged 3 commits into
mainfrom
ld/get-full-indexes-to-post

Conversation

@lindseydew

Copy link
Copy Markdown
Contributor

What does this change?

This removes
/leases/reindex controllers.MediaLeaseController.reindex endpoint.

This is designed to update elastic search with the latest dynamo state, and this is now fully handled in the migration step.

Modifies
/usages/digital/content/*contentId/reindex controllers.UsageApi.reindexForContent(contentId: String)
from a GET to POST.

This endpoint calls CAPI and updates the usages state of an image based on the response. It may be useful to run down the line, so keeping it in as a POST request

How should a reviewer test this change?

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@lindseydew
lindseydew requested a review from a team as a code owner November 5, 2026 15:50
@lindseydew lindseydew added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Nov 5, 2026
@gu-prout

gu-prout Bot commented Nov 5, 2026

Copy link
Copy Markdown

Seen on auth, image-loader, metadata-editor, thrall, cropper, collections, media-api, kahuna (merged by @lindseydew 9 minutes and 21 seconds ago) Please check your changes!

@gu-prout

gu-prout Bot commented Nov 5, 2026

Copy link
Copy Markdown

Seen on leases, usage (merged by @lindseydew 11 minutes and 41 seconds ago) Please check your changes!

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