-
Notifications
You must be signed in to change notification settings - Fork 891
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
[Deprecation] Deprecate cat master API in favor of cat cluster_manager #1800
Conversation
Resolves the issue : opensearch-project#1686 Signed-off-by: Manasvini B Suryanarayana <[email protected]>
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.
A couple questions about whether these files were generated or manually updated, but in either case the changes seem fine.
@@ -0,0 +1,21 @@ | |||
{ |
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.
For my own learning, is there documentation for the steps for updating these generated definitions?
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.
Yes! Thanks to @kavilla and @CPTNB, we now have it published here - https://cptnb.github.io/opensearch-dashboards-dev-docs/core-plugins/console/console/
@@ -1041,9 +1041,11 @@ export interface LegacyAPICaller { | |||
(endpoint: 'cat.help', params: CatHelpParams, options?: LegacyCallAPIOptions): ReturnType<Client['cat']['help']>; | |||
// (undocumented) | |||
(endpoint: 'cat.indices', params: CatIndicesParams, options?: LegacyCallAPIOptions): ReturnType<Client['cat']['indices']>; | |||
// (undocumented) | |||
// @deprecated (undocumented) |
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.
This is a useful annotation, but it looks like it was maybe added manually? The comment at the top of the file implies this should be generated. Not a problem, but it means the deprecation notice might be lost upon regeneration.
@@ -232,6 +232,7 @@ export interface LegacyAPICaller { | |||
(endpoint: 'cat.help', params: CatHelpParams, options?: LegacyCallAPIOptions): ReturnType<Client['cat']['help']>; | |||
(endpoint: 'cat.indices', params: CatIndicesParams, options?: LegacyCallAPIOptions): ReturnType<Client['cat']['indices']>; | |||
(endpoint: 'cat.master', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType<Client['cat']['master']>; | |||
(endpoint: 'cat.cluster_manager', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType<Client['cat']['master']>; |
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.
Does the return type not work for Client['cat']['cluster_manager']
? This might require the bumping of the Node client https://github.com/opensearch-project/opensearch-js/blob/e008fe82dc19b156d4eab8acf7022d36641878af/api/api/cat.js#L268
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.
Added an issue here: #1818
#1800) Resolves the issue : #1686 Signed-off-by: Manasvini B Suryanarayana <[email protected]> (cherry picked from commit 4ea645e)
#1800) Resolves the issue : #1686 Signed-off-by: Manasvini B Suryanarayana <[email protected]> (cherry picked from commit 4ea645e)
#1800) (#1820) Resolves the issue : #1686 Signed-off-by: Manasvini B Suryanarayana <[email protected]> (cherry picked from commit 4ea645e) Co-authored-by: Manasvini B Suryanarayana <[email protected]>
#1800) (#1819) Resolves the issue : #1686 Signed-off-by: Manasvini B Suryanarayana <[email protected]> (cherry picked from commit 4ea645e) Co-authored-by: Manasvini B Suryanarayana <[email protected]>
Signed-off-by: Manasvini B Suryanarayana [email protected]
Description
As part of the meta issue opensearch-project/OpenSearch#2589 to track the plan and progress of applying inclusive naming across OpenSearch Repositories.
In this change, we are deprecating cat/_master API and adding _cat/cluster_manager endpoint.
Issues Resolved
#1686
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr