Skip to content

chore: deprecate mcm methods #4694

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

Merged
merged 6 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions specs/search/paths/multiclusters/batchAssignUserIds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ post:
tags:
- Clusters
operationId: batchAssignUserIds
deprecated: true
x-acl:
- admin
summary: Assign multiple userIDs
Expand Down
1 change: 1 addition & 0 deletions specs/search/paths/multiclusters/getTopUserIds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ get:
tags:
- Clusters
operationId: getTopUserIds
deprecated: true
x-acl:
- admin
summary: Get top user IDs
Expand Down
1 change: 1 addition & 0 deletions specs/search/paths/multiclusters/hasPendingMappings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ get:
tags:
- Clusters
operationId: hasPendingMappings
deprecated: true
x-acl:
- admin
summary: Get migration and user mapping status
Expand Down
1 change: 1 addition & 0 deletions specs/search/paths/multiclusters/listClusters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ get:
tags:
- Clusters
operationId: listClusters
deprecated: true
x-acl:
- admin
summary: List clusters
Expand Down
1 change: 1 addition & 0 deletions specs/search/paths/multiclusters/searchUserIds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ post:
tags:
- Clusters
operationId: searchUserIds
deprecated: true
x-use-read-transporter: true
x-cacheable: true
x-acl:
Expand Down
2 changes: 2 additions & 0 deletions specs/search/paths/multiclusters/userId.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ get:
tags:
- Clusters
operationId: getUserId
deprecated: true
x-acl:
- admin
summary: Retrieve user ID
Expand Down Expand Up @@ -32,6 +33,7 @@ delete:
tags:
- Clusters
operationId: removeUserId
deprecated: true
x-acl:
- admin
summary: Delete user ID
Expand Down
2 changes: 2 additions & 0 deletions specs/search/paths/multiclusters/userIds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ post:
tags:
- Clusters
operationId: assignUserId
deprecated: true
x-acl:
- admin
summary: Assign or move a user ID
Expand Down Expand Up @@ -41,6 +42,7 @@ get:
tags:
- Clusters
operationId: listUserIds
deprecated: true
x-acl:
- admin
summary: List user IDs
Expand Down
8 changes: 3 additions & 5 deletions specs/search/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,9 @@ tags:
description: |
Multi-cluster operations.

Algolia no longer offers multi-cluster management.
externalDocs:
url: https://www.algolia.com/doc/guides/scaling/managing-multiple-clusters-mcm/
description: |
Related guide: Multi-cluster management.
Multi-cluster operations are **deprecated**.
If you have issues with your Algolia infrastructure
due to large volumes of data, contact the Algolia support team.
- name: Dictionaries
description: |
Manage your dictionaries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
{{#x-acl}}
* - {{.}}
{{/x-acl}}
{{#isDeprecated}}
*
* @deprecated
{{/isDeprecated}}
{{#x-create-wrapping-object}}
* @param {{nickname}} - The {{nickname}} object.
{{#allParams}}
Expand Down
5 changes: 4 additions & 1 deletion templates/kotlin/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class {{classname}}(
require(region == null || region in allowedRegions) { "`region` must be one of the following: ${allowedRegions.joinToString()}" }
{{/fallbackToAliasHost}}
val url = {{#fallbackToAliasHost}}if (region == null) "{{{hostWithFallback}}}" else {{/fallbackToAliasHost}} "{{{hostForKotlin}}}"
listOf(Host(url))
listOf(Host(url))
{{/hasRegionalHost}}
{{#hostsWithoutVariables.size}}
listOf(
Expand All @@ -70,6 +70,9 @@ public class {{classname}}(
* - {{.}}
{{/x-acl}}
{{/vendorExtensions}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
{{#allParams}}
* @param {{{paramName}}} {{{description}}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
{{/allParams}}
Expand Down
3 changes: 3 additions & 0 deletions templates/ruby/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ module {{moduleName}}
# - {{.}}
{{/x-acl}}
{{/vendorExtensions}}
{{#isDeprecated}}
# THIS OPERATION IS DEPRECATED
{{/isDeprecated}}
{{#allParams}}
{{#required}}
# @param {{paramName}} [{{{dataType}}}] {{{description}}} (required)
Expand Down
16 changes: 10 additions & 6 deletions templates/scala/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object {{classname}} {
* @param apiKey
* api key
{{#hasRegionalHost}} * @param region
* region{{/hasRegionalHost}}
* region{{/hasRegionalHost}}
* @param clientOptions
* client options
*/
Expand All @@ -44,7 +44,7 @@ object {{classname}} {
) = new {{classname}}(
appId = appId,
apiKey = apiKey,
{{#hasRegionalHost}}region = region,{{/hasRegionalHost}}
{{#hasRegionalHost}}region = region,{{/hasRegionalHost}}
clientOptions = clientOptions
)

Expand Down Expand Up @@ -119,7 +119,7 @@ class {{classname}}(
formats = JsonSupport.format,
options = clientOptions
) {

{{#operation}}
/** {{{notes}}}
{{#vendorExtensions}}
Expand All @@ -130,10 +130,14 @@ class {{classname}}(
* - {{.}}
{{/x-acl}}
{{/vendorExtensions}}
{{#isDeprecated}}
*
* @deprecated
{{/isDeprecated}}
*
{{#allParams}}
{{#description}}
* @param {{{paramName}}}
* @param {{{paramName}}}
* {{{.}}}
{{/description}}
{{/allParams}}
Expand All @@ -145,9 +149,9 @@ class {{classname}}(

val request = HttpRequest.builder()
.withMethod("{{httpMethod}}")
.withPath({{#vendorExtensions}}{{#x-is-custom-request}}s"{{{path}}}"{{/x-is-custom-request}}{{^x-is-custom-request}}s"{{#lambda.escape-path}}{{{path}}}{{/lambda.escape-path}}"{{/x-is-custom-request}}{{/vendorExtensions}})
.withPath({{#vendorExtensions}}{{#x-is-custom-request}}s"{{{path}}}"{{/x-is-custom-request}}{{^x-is-custom-request}}s"{{#lambda.escape-path}}{{{path}}}{{/lambda.escape-path}}"{{/x-is-custom-request}}{{/vendorExtensions}})
{{#bodyParam}}.withBody({{paramName}}){{/bodyParam}}
{{#headerParams}}.withHeader("{{baseName}}", {{paramName}}){{/headerParams}}
{{#headerParams}}.withHeader("{{baseName}}", {{paramName}}){{/headerParams}}
{{#vendorExtensions.x-use-read-transporter}}.withRead(true){{/vendorExtensions.x-use-read-transporter}}
{{#vendorExtensions}}{{#queryParams}}{{^x-is-custom-request}}.withQueryParameter("{{baseName}}", {{paramName}}){{/x-is-custom-request}}{{#x-is-custom-request}}.withQueryParameters(parameters){{/x-is-custom-request}}{{/queryParams}}{{/vendorExtensions}}
.build()
Expand Down