-
Notifications
You must be signed in to change notification settings - Fork 102
Update Serverless scope for legacy put_template #3005
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
Conversation
Following you can find the validation results for the APIs you have changed.
You can validate these APIs yourself by using the |
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.
Thanks!
@@ -26,7 +26,7 @@ import { Duration } from '@_types/Time' | |||
* Returns information about the tasks currently executing in the cluster. | |||
* @rest_spec_name tasks.get | |||
* @availability stack since=5.0.0 stability=experimental | |||
* @availability serverless stability=experimental visibility=public | |||
* @availability serverless stability=experimental visibility=private |
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.
* @availability serverless stability=experimental visibility=private | |
* @availability serverless stability=experimental visibility=public |
tasks.get
is public, but tasks.list
is not, but this is already correct:
* @availability serverless stability=experimental visibility=private |
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.
I finally found why this wasn't making sense to me 😅
The Ruby code generator had a bug and task.get
didn't have id
as required so I was testing the tasks.list
path (without an id) 🤦
specification/indices/put_template/IndicesPutTemplateRequest.ts
Outdated
Show resolved
Hide resolved
From @pquentin's research: indices.put_template The /_template URLs refer to legacy index templates, that are not available on Serverless. Actions without an annotation are unavailable on Serverless. The only possible Scope values are PUBLIC and INTERNAL, unavailable is marked by the absence of an annotation.
5e92555
to
7e7836a
Compare
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
Thanks @pquentin, I updated the PR so that it's just removing the scope for serverless in |
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.
Thanks! LGTM
From @pquentin's research:
tasks.get
- This one is not actuallytasks.get
(with endpoint/_tasks/{task_id}
), it'stasks.list
(with endpoint/_tasks/
), which is INTERNAL.indices.put_template
- The /_template URLs refer to legacy index templates, that are not available on Serverless.