-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add is_hidden parameter for create or update alias API #429
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1860,6 +1860,11 @@ components: | |
$ref: '../schemas/_common.yaml#/components/schemas/Routing' | ||
search_routing: | ||
$ref: '../schemas/_common.yaml#/components/schemas/Routing' | ||
is_hidden: | ||
x-version-added: '2.16' | ||
description: |- | ||
If `true`, the alias will be hidden, defaults to `false`. | ||
type: boolean | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add |
||
description: The settings for the alias, such as `routing` or `filter` | ||
indices.put_index_template: | ||
content: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We already have You also need to add |
||
|
||
description: Test create or update alias endpoints. | ||
epilogues: | ||
- path: /games | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /{index} | ||
method: PUT | ||
parameters: | ||
index: games | ||
chapters: | ||
- synopsis: Create an alias. | ||
path: /{index}/_alias/{name} | ||
method: PUT | ||
parameters: | ||
index: games | ||
name: jeux | ||
- synopsis: Create an alias with custom routing. | ||
path: /{index}/_alias/{name} | ||
method: PUT | ||
parameters: | ||
index: games | ||
name: jeux | ||
request_body: | ||
payload: | ||
index_routing: test1 | ||
search_routing: test2 | ||
- synopsis: Create an alias with custom settings. | ||
path: /{index}/_alias/{name} | ||
method: PUT | ||
parameters: | ||
index: games | ||
name: jeux | ||
request_body: | ||
payload: | ||
routing: test | ||
is_write_index: true | ||
is_hidden: true | ||
filter: | ||
match_all: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it look like the rest of the lines.
"Added
is_hidden
to/{index}/_alias/
(#...)"