Skip to content

Remove local parameter for get field mapping request#55100

Merged
ywangd merged 4 commits intoelastic:masterfrom
ywangd:remove-get-field-mapping-local
Apr 15, 2020
Merged

Remove local parameter for get field mapping request#55100
ywangd merged 4 commits intoelastic:masterfrom
ywangd:remove-get-field-mapping-local

Conversation

@ywangd
Copy link
Copy Markdown
Member

@ywangd ywangd commented Apr 12, 2020

The local parameter of get field mapping request is marked as deprecated in 7.x.
This PR removes it for the next major.

@ywangd ywangd added :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. >deprecation v8.0.0 labels Apr 12, 2020
@ywangd ywangd requested a review from martijnvg April 12, 2020 06:04
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

Comment on lines +64 to +66
if (in.getVersion().before(Version.V_8_0_0)) {
in.readBoolean();
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessary if we can be sure that the request never goes across wire.

Comment on lines +125 to +127
if (out.getVersion().before(Version.V_8_0_0)) {
out.writeBoolean(true);
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here as well, not needed if the request never goes across nodes.

@ywangd
Copy link
Copy Markdown
Member Author

ywangd commented Apr 12, 2020

@elasticmachine run elasticsearch-ci/2

Copy link
Copy Markdown
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a note to the ./docs/reference/migration/migrate_8_0/api.asciidoc file that the local param has been removed? LGTM otherwise.

@ywangd
Copy link
Copy Markdown
Member Author

ywangd commented Apr 15, 2020

Can you add a note to the ./docs/reference/migration/migrate_8_0/api.asciidoc file that the local param has been removed?

Thanks for the reminder. It is added now.

@ywangd ywangd merged commit 92427d3 into elastic:master Apr 15, 2020
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Feb 19, 2025
The `local` param for the `GetFieldMapping` API was deprecated in elastic#55014
and I think elastic#57265 aimed to propogate that deprecation to the REST API
spec, but it changed `get_mapping.json` instead of
`get_field_mapping.json`. elastic#55100 removed the `local` param for the
_field_ mapping API so we can safely remove the field from the spec and
remove the YAML test.
nielsbauman added a commit that referenced this pull request Feb 19, 2025
The `local` param for the `GetFieldMapping` API was deprecated in #55014
and I think #57265 aimed to propogate that deprecation to the REST API
spec, but it changed `get_mapping.json` instead of
`get_field_mapping.json`. #55100 removed the `local` param for the
_field_ mapping API so we can safely remove the field from the spec and
remove the YAML test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. >deprecation v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants