9 Commits
Author SHA1 Message Date
Tom Moor 4e8dfa39f2 fix: Name batch requests correctly in APM and trace each sub-request (#14603)
* fix: Name batch requests correctly in APM and trace each sub-request

* fix: Tag status on failed batch request spans
2026-11-16 18:39:07 -05:00
Tom Moor 2276ee2ecb Set lock_timeout on request transactions (#14563)
* Set lock_timeout on request transactions

Lock waits in API transactions now fail after 5s with a 503 instead of
holding a pool connection until the statement timeout.

* Map query timeouts to request_timeout in batch sub-requests
2026-11-12 21:51:48 -05:00
Tom Moor 57d438d88e feat: Add Move to the document selection toolbar (#14350)
* feat: Add Move to the document selection toolbar

* fix: Load source collection trees before moving documents
2026-10-26 22:12:23 -04:00
Tom Moor eceba73a14 chore: Upgrade koa-helmet to v9 and koa-body to v8 (#14046)
* chore: Upgrade koa-helmet to v9 and koa-body to v8

* fix: Keep decimal parsing for pagination limit and offset
2026-10-16 02:11:11 +00:00
Tom Moor 086bd9e9e4 chore: Replace deprecated koa-router with @koa/router v15 (#14042)
* chore: Replace deprecated koa-router with @koa/router v15

* fix: Run optional authentication on all auth provider routes
2026-10-11 16:47:26 -04:00
Tom MoorandClaude Opus 5 0e3631c2ed fix: Align credential transport handling in authentication middleware (#13416)
Session tokens were accepted from the request body and query string, unlike
the other credential types parsed by the same middleware. They are now only
read from the cookie or the Authorization header.

Short-lived single-use transfer tokens are unaffected, so the subdomain and
desktop sign-in hand-offs continue to work.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 18:26:17 -04:00
Tom MoorandClaude Opus 5 c27295a91a fix: Tighten credential handling in OAuth client and batch endpoints (#13414)
* fix: Tighten credential handling in OAuth client and batch endpoints

- Include an OAuth client secret in responses only when the presented
  credential is itself scoped to manage clients, rather than deciding from
  the user's abilities alone.
- Require an interactive session at the authorization endpoint, matching the
  batch endpoint, so consent cannot be answered programmatically.
- Resolve a batched sub-request's scope against the dispatched method rather
  than the parent path, and always run sub-requests as the parent's
  credential.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix: Address review feedback on naming and documentation

- Name the batch test for what it asserts, as API keys do support per-method
  scopes and the rejection comes from the session pin on the route.
- Add the missing @returns tag and terminal punctuation to the presenter's
  JSDoc, matching the sibling presenter in the same file.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 17:38:07 -04:00
Tom Moor 890f0451a8 feat: Multi-select documents (#13041)
* first pass

* refactor

* refactor

* wip

* Fix BatchableApiMethods docs; remove ApiClient batch test

* Refactor actions

* refactor batch send to share error code handling

* Remove multi-select from read-only
Refactor performBatch to common

* refactor
2026-08-01 20:45:20 -04:00
Tom MoorandClaude Opus 4.8 695042b2af feat: Batch RPC endpoint (#12820)
* batch RPC endpoint

* Clamp batch socket timeout between 15s and 25s

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 02:39:30 -04:00