Adjust get alias api with aliases pointing to data streams#73140
Adjust get alias api with aliases pointing to data streams#73140martijnvg merged 1 commit intoelastic:masterfrom
Conversation
Change the get alias api to not return a 404 when filtering by alias name that refers to data streams. Originated from elastic#72953 Relates to elastic#66163
|
Pinging @elastic/es-core-features (Team:Core/Features) |
danhermann
left a comment
There was a problem hiding this comment.
LGTM. This does eliminate the 404 when requesting an existing data stream alias. I do see some unexpected behavior in the get alias API when testing this although I do not know if it was introduced in this PR. If I request a specific index alias, it will be returned along with a data stream with "aliases": { }. If I request a specific data stream alias, it is returned along with a regular index with "aliases": { }. I would expect that only indices and/or data streams with matching aliases would be returned if an alias was specified.
Yes, I expect this as well. This is what #72953 should fix. Only data streams will be returned if these are referred by aliases that match with the requested aliases. |
Backport elastic#73140 to 7.x branch. Change the get alias api to not return a 404 when filtering by alias name that refers to data streams. Originated from elastic#72953 Relates to elastic#66163
Change the get alias api to not return a 404 when filtering
by alias name that refers to data streams.
Originated from #72953
Relates to #66163