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] PUT /_plugins/_ism/policies requires a non-standard argument policyID #1254

Open
dblock opened this issue Sep 15, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@dblock
Copy link
Member

dblock commented Sep 15, 2024

What is the bug?

In https://github.com/opensearch-project/index-management/blob/395317dcc40762fc05b4320885c2ea27be572324/src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestIndexPolicyAction.kt#L72C33-L72C41 we use policyID instead of what I think should be policy_id.

What is the expected behavior?

Add support for the latter and deprecate the former.

[INFO] => PUT /_plugins/_ism/policies ({
  "policyID": "rollover",
  "if_primary_term": 2,
  "if_seq_no": 3547
}) [application/json] {
...

Do you have any additional context?

Coming from opensearch-project/opensearch-api-specification#578.

@dblock dblock added bug Something isn't working untriaged labels Sep 15, 2024
@dblock dblock changed the title [BUG] non-standard argument policyID [BUG] PUT /_plugins/_ism/policies requires a non-standard argument policyID Sep 15, 2024
@bharath-techie
Copy link

bharath-techie commented Sep 30, 2024

We can pickup adding support for policy_id and deprecate policyId based on documentation : https://opensearch.org/docs/latest/im-plugin/ism/policies/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants