Skip to content

[7.9] [Saved objects] Add support for version on create & bulkCreate when overwriting a document (#75172)#75498

Merged
gmmorris merged 2 commits intoelastic:7.9from
gmmorris:backport/7.9/pr-75172
Aug 20, 2020
Merged

[7.9] [Saved objects] Add support for version on create & bulkCreate when overwriting a document (#75172)#75498
gmmorris merged 2 commits intoelastic:7.9from
gmmorris:backport/7.9/pr-75172

Conversation

@gmmorris
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.9:

…verwriting a document (elastic#75172)

Adds support for `version` one the SavedObjectsClient's create api.
This sallows us to retain Optimistic concurrency control when using create to overwrite an existing document.
# Conflicts:
#	src/core/server/saved_objects/service/lib/repository.ts
@gmmorris gmmorris added the backport This PR is a backport of another PR label Aug 19, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@gmmorris gmmorris merged commit 00836e5 into elastic:7.9 Aug 20, 2020
mikecote added a commit that referenced this pull request Aug 31, 2020
…kCreate when overwriting a document (#75172) (#75498)"

This reverts commit 00836e5.
mikecote added a commit to mikecote/kibana that referenced this pull request Aug 31, 2020
mikecote added a commit that referenced this pull request Aug 31, 2020
…writing a document (#76280)

* Revert "Fix more broken usages of `bulkCreate` (#76005) (#76131)"

This reverts commit 44a017b.

* Revert "Filter saved object `version` during legacy import (#75597) (#75793)"

This reverts commit 6e82885.

* Revert "[7.9] [Saved objects] Add support for version on create & bulkCreate when overwriting a document (#75172) (#75498)"

This reverts commit 00836e5.
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 reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants