Repository navigation
Send the /schema request as an untracked call (0.16.7) - #125
Merged
Merged
Conversation
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.
✅ Incremental coverage — 100%
15 files not graded (4 ignored by pattern, 11 not source files)
Coverage reports: coverage.json (coverage.py, 76 files) · coverage/clover.xml (clover, 19 files) — incremental-coverage-check v3.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RequestOptions.tracked?: boolean(defaulttrue) andtrackedon thestartCallEvent.falsemarks a call the BE runs no work for under its key, so anonCallActivitylistener that follows the work behind a call by its key (e.g. taskwire'sviewsetCallSource(), which reads the operation under the call'sIdempotency-Key) leaves it out.issueCall(promise, key, background = false, tracked = true): new optional fourth argument./schemarequest of the schema check and ofdefaultSort()is sent withtracked: false. It keeps itsIdempotency-Keyand repeats.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())readsGET {taskwire}/{key}for the/schemarequest whenever it outlives the busy delay, and gets a 404, as/schemanever runs as an operation.Tests
rest-proxy.spec.tsa custom call with withtracked: falseis reported untracked;rest-proxy.spec.tsandmuxws-proxy.spec.tsthe/schemarequest is reported untracked and the calls around it tracked;tests/response-timing.spec.tsthe schema check anddefaultSort()report/schemaas untracked with every answer timing.startevent assertions incall.spec.ts,rest-proxy.spec.tsandmuxws-proxy.spec.tsnow includetracked: true, the new field of the event; what they check is otherwise unchanged.