Skip to content

[8.9] [data views] Fix overwrite param for create (#160953)#161219

Closed
kibanamachine wants to merge 1 commit intoelastic:8.9from
kibanamachine:backport/8.9/pr-160953
Closed

[8.9] [data views] Fix overwrite param for create (#160953)#161219
kibanamachine wants to merge 1 commit intoelastic:8.9from
kibanamachine:backport/8.9/pr-160953

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.9:

Questions ?

Please refer to the Backport tool documentation

## Summary

Under some circumstances passing `override` to `POST
/api/data_views/data_view` would fail. Its now fixed.

To test - Try using the override param from the Kibana dev console. I
found it reproduced the problem before the fix and shows its resolved
after the fix. The problem did not appear in the integration tests.

I suspect the problem had to do with how quickly the delete was
performed - if it completed before the create command then everything
was fine. If it didn't then the error would appear. Passing the
overwrite param to the saved object client eliminates the possibility of
the delete failing to complete.

Closes elastic#161016

(cherry picked from commit 803d139)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 4, 2023
@kibanamachine kibanamachine enabled auto-merge (squash) July 4, 2023 20:41
@kibana-ci
Copy link
Copy Markdown

💔 Build Failed

Failed CI Steps

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @mattkime

@mattkime mattkime closed this May 6, 2024
auto-merge was automatically disabled May 6, 2024 22:00

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants