Skip to content
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

[BUG] Malfunctioning/confusing/redundant Index template method #151

Closed
wbeckler opened this issue Aug 26, 2022 · 9 comments
Closed

[BUG] Malfunctioning/confusing/redundant Index template method #151

wbeckler opened this issue Aug 26, 2022 · 9 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@wbeckler
Copy link

The Go client contains two methods for using index templates. One of them, opensearchapi.IndicesPutTemplateRequest, uses a nonexistent legacy REST API (/_template).

In OpenSearch v1.x and v2.x the correct REST API is /_index_template, which is accessible by the correct method opensearchapi.IndicesPutIndexTemplateRequest.

I would propose we remove the legacy method, which is confusing and points to an unsupported API.

@wbeckler wbeckler added bug Something isn't working good first issue Good for newcomers labels Aug 26, 2022
@wbeckler wbeckler changed the title [BUG] Malfunctioning/confusing/redundant Index template [BUG] Malfunctioning/confusing/redundant Index template method Aug 26, 2022
@dblock
Copy link
Member

dblock commented Aug 26, 2022

Deprecate the method in a minor release and remove in major.

@wbeckler
Copy link
Author

Would we consider this to be a "breaking" change rather than a bugfix if the method points to a nonexistent API in OpenSearch?

@dblock
Copy link
Member

dblock commented Mar 16, 2023

So the method never worked (aka produced an error)? If so removing it is fine as a bugfix.

@Jakob3xD
Copy link
Collaborator

FYI: The _template still exists and is also working in Opensearch 2.6.0.
Therefore it is deprecated but still a valid way to do templating.

@whym9
Copy link

whym9 commented Apr 5, 2023

If this issue is still relevant, I would like to solve it.

@Jakob3xD
Copy link
Collaborator

Jakob3xD commented Apr 6, 2023

@whym9 how is this issue affecting you?

As already mentioned both APIs still exist and both work. I personally don´t see this as a bug. IMO we should add some sort of deprecation warning/comment to the request type linking/referring to the request type for the _index_template api. We should remove this once the API get removed from Opensearch it self. Otherwise we reduce the Opensearch api support.
WDYT @wbeckler

@tannerjones4075
Copy link
Contributor

If this issue is still relevant, I would like to solve it.

@VachaShah
Copy link
Collaborator

Thank you @tannerjones4075! Assigning this to you.

@tannerjones4075
Copy link
Contributor

This issue can be closed because the issue has been resolved: #390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants