Skip to content

Send the /schema request as an untracked call (0.16.7) - #125

Merged
velis74 merged 1 commit into
mainfrom
schema-untracked
Dec 4, 2026
Merged

velis74 merged 1 commit into
mainfrom
schema-untracked

Conversation

@velis74

@velis74 velis74 commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • RequestOptions.tracked?: boolean (default true) and tracked on the start CallEvent. false marks a call the BE runs no work for under its key, so an onCallActivity listener that follows the work behind a call by its key (e.g. taskwire's viewsetCallSource(), which reads the operation under the call's Idempotency-Key) leaves it out.
  • issueCall(promise, key, background = false, tracked = true): new optional fourth argument.
  • The /schema request of the schema check and of defaultSort() is sent with tracked: false. It keeps its Idempotency-Key and repeats.
  • Version 0.16.7 (patch) for both packages; changelog entry; docs (api/idempotency.md, api/vue-mixins.md, api/viewset-factory.md, api/route-muxws.md, guide/idempotency.md, guide/vue-custom-endpoints.md).

Without it, a page reload in an application with tw.attachCalls(viewsetCallSource()) reads GET {taskwire}/{key} for the /schema request whenever it outlives the busy delay, and gets a 404, as /schema never runs as an operation.

Tests

  • New: rest-proxy.spec.ts a custom call with with tracked: false is reported untracked; rest-proxy.spec.ts and muxws-proxy.spec.ts the /schema request is reported untracked and the calls around it tracked; tests/response-timing.spec.ts the schema check and defaultSort() report /schema as untracked with every answer timing.
  • Changed existing tests: the start event assertions in call.spec.ts, rest-proxy.spec.ts and muxws-proxy.spec.ts now include tracked: true, the new field of the event; what they check is otherwise unchanged.

RequestOptions.tracked (default true) is reported on the start CallEvent. The
schema check and defaultSort() send /schema with tracked: false, so a call
activity listener that follows the BE work behind a call by its key leaves it
out.
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

✅ Incremental coverage — 100%

████████████████████ 4 / 4 changed lines covered · threshold 70% · main → schema-untracked

File Coverage Covered Uncovered lines
✅ vue/call.ts 100% 1 / 1 —
✅ vue/muxws-proxy.ts 100% 1 / 1 —
✅ vue/proxy-base.ts 100% 1 / 1 —
✅ vue/rest-proxy.ts 100% 1 / 1 —
Total 100% 4 / 4
15 files not graded (4 ignored by pattern, 11 not source files)
File Reason
changelog.md not a source file
docs/api/idempotency.md not a source file
docs/api/route-muxws.md not a source file
docs/api/viewset-factory.md not a source file
docs/api/vue-mixins.md not a source file
docs/guide/idempotency.md not a source file
docs/guide/vue-custom-endpoints.md not a source file
package-lock.json not a source file
package.json not a source file
pyproject.toml not a source file
uv.lock not a source file
vue/call.spec.ts ignored by *.spec.*
vue/muxws-proxy.spec.ts ignored by *.spec.*
vue/rest-proxy.spec.ts ignored by *.spec.*
vue/tests/response-timing.spec.ts ignored by tests/*

Coverage reports: coverage.json (coverage.py, 76 files) · coverage/clover.xml (clover, 19 files) — incremental-coverage-check v3.1.0

@velis74
velis74 merged commit d52a47a into main Dec 4, 2026
12 of 14 checks passed
@velis74
velis74 deleted the schema-untracked branch December 4, 2026 09:43
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.

1 participant