Skip to content

refactor(ClustersClient): rename credentialId parameter to clusterId#568

Open
CalvinMagezi wants to merge 10 commits intomicrosoft:mainfrom
CalvinMagezi:fix/rename-credentialid-to-clusterid-567
Open

refactor(ClustersClient): rename credentialId parameter to clusterId#568
CalvinMagezi wants to merge 10 commits intomicrosoft:mainfrom
CalvinMagezi:fix/rename-credentialid-to-clusterid-567

Conversation

@CalvinMagezi
Copy link
Copy Markdown

Summary

Closes #567

This PR renames the credentialId parameter to clusterId in two files:

  • src/documentdb/ClustersClient.tsexists() and deleteClient() methods (~6 occurrences)
  • src/documentdb/ClusterSession.tsinitNewSession() method signature and JSDoc

The parameter has always represented a cluster identifier, not a credential object. The old name was a source of confusion since it implied something credential-related. This aligns the parameter name with what the JSDoc already called it (clusterId).

Changes

  • Pure parameter rename — no logic, behavior, or API surface changes
  • All callers pass the same value; only the local parameter name changes within the method signatures
  • Updated JSDoc comments to match the new parameter name and remove the misleading "credential ID" phrasing

Testing

No functional changes — existing tests continue to pass without modification.

tnaum-ms and others added 10 commits April 7, 2026 13:54
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.8 to 4.7.9.
- [Release notes](https://github.com/handlebars-lang/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.7.8...v4.7.9)

---
updated-dependencies:
- dependency-name: handlebars
  dependency-version: 4.7.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [lodash](https://github.com/lodash/lodash) to 4.18.1 and updates ancestor dependency [@microsoft/api-extractor](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-extractor). These dependencies need to be updated together.


Updates `lodash` from 4.17.23 to 4.18.1
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.23...4.18.1)

Updates `@microsoft/api-extractor` from 7.52.8 to 7.58.1
- [Changelog](https://github.com/microsoft/rushstack/blob/main/apps/api-extractor/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-extractor_v7.58.1/apps/api-extractor)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
- dependency-name: "@microsoft/api-extractor"
  dependency-version: 7.58.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Renames the `credentialId` parameter to `clusterId` in:
- `ClustersClient.exists()` and `ClustersClient.deleteClient()` (~6 occurrences)
- `ClusterSession.initNewSession()` parameter and JSDoc

The parameter has always referred to a cluster identifier, not a
credential object. This is a pure cosmetic rename with no logic changes.

Closes microsoft#567
@CalvinMagezi CalvinMagezi requested a review from a team as a code owner April 11, 2026 18:16
@CalvinMagezi
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants