- Notifications
You must be signed in to change notification settings - Fork 25.5k
Remove deprecated local parameter from alias APIs #115393
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
Remove deprecated local parameter from alias APIs #115393
Conversation
This removes the `local` attribute from the `GET /_alias`, `HEAD /_alias`, and `GET /_cat/aliases` APIs. This option became a no-op and was deprecated in 8.12 by elastic#101815.
Hi @PeteGillinElastic, I've created a changelog YAML for you. Note that since this PR is labelled |
Hi @PeteGillinElastic, I've updated the changelog YAML for you. Note that since this PR is labelled |
@elasticmachine update branch |
merge conflict between base and head |
…ocal-from-get-aliases
Pinging @elastic/es-data-management (Team:Data Management) |
task.skipTest("indices.sort/10_basic/Index Sort", "warning does not exist for compatibility") | ||
task.skipTest("search/330_fetch_fields/Test search rewrite", "warning does not exist for compatibility") | ||
task.skipTest("indices.create/21_synthetic_source_stored/object param - nested object with stored array", "temporary until backported") | ||
task.skipTest("cat.aliases/10_basic/Deprecated local parameter", "CAT APIs not covered by compatibility policy") |
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.
N.B. Even if we did implement BWC in the code, we'd still have to skip this test because the test framework does not send the compatible-with
headers for CAT APIs.
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.
LGTM
This removes the `local` parameter from the `GET /_alias`, `HEAD /_alias`, and `GET /_cat/aliases` APIs. This option became a no-op and was deprecated in 8.12 by elastic#101815. We continue to accept the parameter (deprecated, with no other effect) in v8 compatibility mode for `GET /_alias` and `HEAD /_alias`. We don't do this for `GET /_cat/aliases` where the [compatibility policy does not apply](https://github.com/elastic/elasticsearch/blob/main/REST_API_COMPATIBILITY.md#when-not-to-apply).
This removes the `local` parameter from the `GET /_alias`, `HEAD /_alias`, and `GET /_cat/aliases` APIs. This option became a no-op and was deprecated in 8.12 by elastic#101815. We continue to accept the parameter (deprecated, with no other effect) in v8 compatibility mode for `GET /_alias` and `HEAD /_alias`. We don't do this for `GET /_cat/aliases` where the [compatibility policy does not apply](https://github.com/elastic/elasticsearch/blob/main/REST_API_COMPATIBILITY.md#when-not-to-apply).
@PeteGillinElastic is this PR relevant to the serverless changelog? [FYI this question is based on 9.0 breaking changes] |
I think this depends on the policy for the serverless changelog. This property was deprecated and ignored since 8.0.0, so nobody should have been using it in serverless. I don't know whether this should be mentioned or not. Also, this change was made in October, before serverless GA. |
This removes the
local
parameter from theGET /_alias
,HEAD /_alias
, andGET /_cat/aliases
APIs. This option became a no-op and was deprecated in 8.12 by #101815.We continue to accept the parameter (deprecated, with no other effect) in v8 compatibility mode for
GET /_alias
andHEAD /_alias
. We don't do this forGET /_cat/aliases
where the compatibility policy does not apply.