Skip to content

Use new release Locks in chunks api to release all Locks#344

Merged
azonys merged 3 commits intomainfrom
release-locks-in-chunks
Apr 21, 2026
Merged

Use new release Locks in chunks api to release all Locks#344
azonys merged 3 commits intomainfrom
release-locks-in-chunks

Conversation

@azonys
Copy link
Copy Markdown
Contributor

@azonys azonys commented Apr 15, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the iModels API “Release Locks Chunk” operation to the authoring client and updates backend lock cleanup to use the chunked release API.

Changes:

  • Added locks.releaseLocksChunk(...) operation (params + response shape + URL formatter support) in imodels-client-authoring.
  • Updated backend releaseAllLocks to iteratively call the new chunk-release endpoint instead of listing/updating locks.
  • Added an integration test covering releaseLocksChunk behavior and extended error-mapping operation names accordingly.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/imodels-clients-tests/src/integration/authoring/LockOperations.test.ts Adds integration test to validate the new releaseLocksChunk operation releases locks.
itwin-platform-access/imodels-access-common/src/ErrorAdapter.ts Extends operation-name union to support error adaptation for releaseLocksChunk.
itwin-platform-access/imodels-access-backend/src/BackendIModelsAccess.ts Replaces per-lock update loop with repeated releaseLocksChunk calls until isLastChunk.
clients/imodels-client-authoring/src/operations/lock/LockOperations.ts Implements releaseLocksChunk on the authoring client.
clients/imodels-client-authoring/src/operations/lock/LockOperationParams.ts Adds ReleaseLocksChunkParams and refines existing JSDoc wording.
clients/imodels-client-authoring/src/operations/IModelsApiUrlFormatter.ts Adds URL builder for /locks/release-chunk.
clients/imodels-client-authoring/src/base/internal/ApiResponseInterfaces.ts Introduces ReleaseLocksChunkResponse response interface.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread itwin-platform-access/imodels-access-backend/src/BackendIModelsAccess.ts Outdated
@azonys azonys marked this pull request as ready for review April 16, 2026 10:41
@azonys azonys merged commit 72ef6b2 into main Apr 21, 2026
7 checks passed
@azonys azonys deleted the release-locks-in-chunks branch April 21, 2026 05:27
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.

3 participants