-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Adding new require_alias option to indexing requests
#58917
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
Merged
benwtrent
merged 18 commits into
elastic:master
from
benwtrent:feature/add-no_autocreate-flag
Jul 17, 2020
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b324dcd
Adding new `no_auto_create` to indexing requests
benwtrent 88dd102
fixing docs
benwtrent daaeaad
Update DataFrameAnalyticsTask.java
benwtrent d5bda29
Merge branch 'master' into feature/add-no_autocreate-flag
benwtrent 338b1ff
moving to requiring alias
benwtrent ac2bed2
Merge branch 'feature/add-no_autocreate-flag' of github.com:benwtrent…
benwtrent f1b49b2
adjusting test
benwtrent 79ce9aa
fixing bulk index handling of require_alias flag
benwtrent f527f77
prevent auto-create if the request requires alias
benwtrent 81fb555
Merge remote-tracking branch 'upstream/master' into feature/add-no_au…
benwtrent 158403a
fixing tests
benwtrent beb3edb
adding tests
benwtrent 006f377
Merge remote-tracking branch 'upstream/master' into feature/add-no_au…
benwtrent a5da8f2
adjusting bulk handling and updating tests
benwtrent 1bb5ebf
fixing tests
benwtrent 69e4beb
Merge branch 'master' into feature/add-no_autocreate-flag
elasticmachine de7b251
Merge remote-tracking branch 'upstream/master' into feature/add-no_au…
benwtrent 4c0df82
Merge branch 'master' into feature/add-no_autocreate-flag
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
rest-api-spec/src/main/resources/rest-api-spec/test/index/70_require_alias.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| --- | ||
| "Set require_alias flag": | ||
| - skip: | ||
| # TODO adjust after backport | ||
| version: " - 7.99.99" | ||
| reason: "require_alias flag added in 7.9+" | ||
| - do: | ||
| catch: missing | ||
| index: | ||
| index: test_require_alias | ||
| require_alias: true | ||
| body: { foo: bar } | ||
| - do: | ||
| catch: missing | ||
| indices.get: | ||
| index: test_require_alias | ||
|
|
||
| - do: | ||
| indices.create: | ||
| index: backing_index | ||
| body: | ||
| mappings: {} | ||
| aliases: | ||
| test_require_alias: {} | ||
|
|
||
| - do: | ||
| index: | ||
| index: test_require_alias | ||
| require_alias: true | ||
| body: { foo: bar } |
36 changes: 36 additions & 0 deletions
36
rest-api-spec/src/main/resources/rest-api-spec/test/update/95_require_alias.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| --- | ||
| "Set require_alias flag": | ||
| - skip: | ||
| # TODO adjust after backport | ||
| version: " - 7.99.99" | ||
| reason: "require_alias flag added in 7.9+" | ||
| - do: | ||
| catch: missing | ||
| update: | ||
| index: test_require_alias | ||
| id: 1 | ||
| require_alias: true | ||
| body: | ||
| doc: { foo: bar, count: 1 } | ||
| doc_as_upsert: true | ||
| - do: | ||
| catch: missing | ||
| indices.get: | ||
| index: test_require_alias | ||
|
|
||
| - do: | ||
| indices.create: | ||
| index: backing_index | ||
| body: | ||
| mappings: {} | ||
| aliases: | ||
| test_require_alias: {} | ||
|
|
||
| - do: | ||
| update: | ||
| index: test_require_alias | ||
| id: 1 | ||
| require_alias: true | ||
| body: | ||
| doc: { foo: bar, count: 1 } | ||
| doc_as_upsert: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.