-
Notifications
You must be signed in to change notification settings - Fork 105
Fix indices.delete_alias response #2951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I can't find this in the sever, AcknowledgeResponse only has one field. I think the problem is the fact that the body changes when there's an error, so for a normal response it's:
while when there's an error it's:
in the spec we just map the first one, because the second case is the exception case (the server returns 404) so what java does is that it returns the error body in the exception message. |
Actually, we also get responses like this one:
|
ooh that's why: it's a subclass! we have to map this |
|
This comment was marked as outdated.
This comment was marked as outdated.
bf808a6
to
237cf4c
Compare
@pquentin sorry I forgot about this, rebased it + added a commit with what I think is the solution |
This comment was marked as outdated.
This comment was marked as outdated.
Following you can find the validation changes against the target branch for the API.
You can validate this API yourself by using the |
@l-trotta Sorry for not getting back to you sooner here. Should we add |
Never mind, |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.19 8.19
# Navigate to the new working tree
cd .worktrees/backport-8.19
# Create a new branch
git switch --create backport-2951-to-8.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 49262849630d994f02e5f903638ef795de9152f1
# Push it to GitHub
git push --set-upstream origin backport-2951-to-8.19
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.19 Then, create a pull request where the |
* Fix indices.delete_api response * specific ack response for indices delete alias --------- Co-authored-by: Laura Trotta <[email protected]> (cherry picked from commit 4926284)
* Fix indices.delete_api response * specific ack response for indices delete alias --------- Co-authored-by: Laura Trotta <[email protected]> (cherry picked from commit 4926284)
* Fix indices.delete_api response * specific ack response for indices delete alias --------- (cherry picked from commit 4926284) Co-authored-by: Quentin Pradet <[email protected]> Co-authored-by: Laura Trotta <[email protected]>
* Fix indices.delete_api response * specific ack response for indices delete alias --------- (cherry picked from commit 4926284) Co-authored-by: Quentin Pradet <[email protected]> Co-authored-by: Laura Trotta <[email protected]>
* Fix indices.delete_api response * specific ack response for indices delete alias --------- Co-authored-by: Laura Trotta <[email protected]> (cherry picked from commit 4926284) # Conflicts: # specification/indices/delete_alias/IndicesDeleteAliasResponse.ts
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Fix indices.delete_api response * specific ack response for indices delete alias --------- Co-authored-by: Laura Trotta <[email protected]> (cherry picked from commit 4926284) # Conflicts: # specification/indices/delete_alias/IndicesDeleteAliasResponse.ts
This regressed between March 25th and April 15th, back when recording examples wasn't stable. Unfortunately, 22 days worth of commits is a lot: elastic/elasticsearch@e9fcb0a...d3e0ec1. If we find where this is set, we could consider asking the Elasticsearch team to not do this. It's not helpful, as
acknowledged
is already set to true.Another option: I could only change the delete_alias body instead of affecting all APIs that use AcknowledgedResponseBase.