Skip to content

Commit a516830

Browse files
kai687shortcuts
andauthored
chore: deprecate mcm methods (#4694)
Co-authored-by: shortcuts <vannicattec@gmail.com>
1 parent 539ba61 commit a516830

File tree

12 files changed

+33
-12
lines changed

12 files changed

+33
-12
lines changed

specs/search/paths/multiclusters/batchAssignUserIds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ post:
22
tags:
33
- Clusters
44
operationId: batchAssignUserIds
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Assign multiple userIDs

specs/search/paths/multiclusters/getTopUserIds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: getTopUserIds
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Get top user IDs

specs/search/paths/multiclusters/hasPendingMappings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: hasPendingMappings
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Get migration and user mapping status

specs/search/paths/multiclusters/listClusters.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: listClusters
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: List clusters

specs/search/paths/multiclusters/searchUserIds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ post:
22
tags:
33
- Clusters
44
operationId: searchUserIds
5+
deprecated: true
56
x-use-read-transporter: true
67
x-cacheable: true
78
x-acl:

specs/search/paths/multiclusters/userId.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: getUserId
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Retrieve user ID
@@ -32,6 +33,7 @@ delete:
3233
tags:
3334
- Clusters
3435
operationId: removeUserId
36+
deprecated: true
3537
x-acl:
3638
- admin
3739
summary: Delete user ID

specs/search/paths/multiclusters/userIds.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ post:
22
tags:
33
- Clusters
44
operationId: assignUserId
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Assign or move a user ID
@@ -41,6 +42,7 @@ get:
4142
tags:
4243
- Clusters
4344
operationId: listUserIds
45+
deprecated: true
4446
x-acl:
4547
- admin
4648
summary: List user IDs

specs/search/spec.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,9 @@ tags:
128128
description: |
129129
Multi-cluster operations.
130130
131-
Algolia no longer offers multi-cluster management.
132-
externalDocs:
133-
url: https://www.algolia.com/doc/guides/scaling/managing-multiple-clusters-mcm/
134-
description: |
135-
Related guide: Multi-cluster management.
131+
Multi-cluster operations are **deprecated**.
132+
If you have issues with your Algolia infrastructure
133+
due to large volumes of data, contact the Algolia support team.
136134
- name: Dictionaries
137135
description: |
138136
Manage your dictionaries.

templates/javascript/clients/client/api/operation/jsdoc.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
{{#x-acl}}
77
* - {{.}}
88
{{/x-acl}}
9+
{{#isDeprecated}}
10+
*
11+
* @deprecated
12+
{{/isDeprecated}}
913
{{#x-create-wrapping-object}}
1014
* @param {{nickname}} - The {{nickname}} object.
1115
{{#allParams}}

templates/kotlin/api.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class {{classname}}(
4949
require(region == null || region in allowedRegions) { "`region` must be one of the following: ${allowedRegions.joinToString()}" }
5050
{{/fallbackToAliasHost}}
5151
val url = {{#fallbackToAliasHost}}if (region == null) "{{{hostWithFallback}}}" else {{/fallbackToAliasHost}} "{{{hostForKotlin}}}"
52-
listOf(Host(url))
52+
listOf(Host(url))
5353
{{/hasRegionalHost}}
5454
{{#hostsWithoutVariables.size}}
5555
listOf(
@@ -70,6 +70,9 @@ public class {{classname}}(
7070
* - {{.}}
7171
{{/x-acl}}
7272
{{/vendorExtensions}}
73+
{{#isDeprecated}}
74+
* @deprecated
75+
{{/isDeprecated}}
7376
{{#allParams}}
7477
* @param {{{paramName}}} {{{description}}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
7578
{{/allParams}}

0 commit comments

Comments
 (0)