Skip to content

Fix API spec for reindex rethrottle#6098

Merged
PeteGillinElastic merged 1 commit intomainfrom
reindex-rethrottle-api-fix
Mar 10, 2026
Merged

Fix API spec for reindex rethrottle#6098
PeteGillinElastic merged 1 commit intomainfrom
reindex-rethrottle-api-fix

Conversation

@PeteGillinElastic
Copy link
Copy Markdown
Member

@PeteGillinElastic PeteGillinElastic commented Mar 9, 2026

The API spec failed to reflect the fact that this API accepts the group_by parameter (for historical reasons: it doesn't actually make much sense), and doesn't include all the possible elements which could be present in the response.

The group_by parameter is marked as stack-only, as elastic/elasticsearch#143771 plans to block it in serverless (which is okay, as it is currently internal-only).

The changes to the response follow the pattern used by the list tasks API (which is what this is using under the hood):
https://github.com/elastic/elasticsearch-specification/blob/main/specification/tasks/_types/TaskListResponseBase.ts .

The API spec failed to reflect the fact that this API accepts the
`group_by` parameter (for historical reasons: it doesn't actually make
much sense), and doesn't include all the possible elements which could
be present in the response.

The `group_by` parameter is marked as stack-only, as
elastic/elasticsearch#143771 plans to block it
in serverless (which is okay, as it is currently internal-only).

The changes to the response follow the pattern used by the list tasks
API (which is what this is using under the hood):
https://github.com/elastic/elasticsearch-specification/blob/main/specification/tasks/_types/TaskListResponseBase.ts
.
@PeteGillinElastic PeteGillinElastic force-pushed the reindex-rethrottle-api-fix branch from 98154fb to 32065e4 Compare March 9, 2026 13:26
@PeteGillinElastic PeteGillinElastic added the skip-backport This pull request should not be backported label Mar 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 9, 2026

Following you can find the validation changes against the target branch for the API.

API Status Request Response
reindex_rethrottle 🔴 10/10 6/10 → 7/10

You can validate this API yourself by using the make validate target.

@PeteGillinElastic PeteGillinElastic marked this pull request as ready for review March 9, 2026 13:57
Copy link
Copy Markdown
Contributor

@samxbr samxbr left a comment

Choose a reason for hiding this comment

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

LGTM

@PeteGillinElastic PeteGillinElastic merged commit 0e83220 into main Mar 10, 2026
11 of 12 checks passed
@PeteGillinElastic PeteGillinElastic deleted the reindex-rethrottle-api-fix branch March 10, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-backport This pull request should not be backported specification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants