mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-25 08:50:53 +01:00
* Claim the stand-in's writes that change later reads (R3.11) * Let a replayed write move a stand-in's later reads on to what was recorded after it (R3.11) * Keep a stand-in's timeline to the writes and paths replay can tell apart Only a POST counts as a GraphQL read; a 304 kept without its body ends no reads; /api//notes and /api/notes are no longer related; a write that falls back steps each recorded kind by its own cursor, and a named operation none of the writes recorded steps nothing; an answer given alone takes no turn from the set after a write. Repeated reads skip the write scan when nothing newer was kept. * Count a lone answer as a turn in a stand-in without positions The early-read exception from the last commit applied to every route, so a version-1 recording stopped advancing its counter when only one sample fit and a later request matching more samples replayed the first one again. Keep the exception to samples placed on the timeline. * Refuse a write the recording has no answer of its own for Past the recorded writes of its kind, or for a named operation whose recorded write had its name hidden, a stand-in now answers 404 with reason write_not_recorded instead of repeating another recorded success, and changes nothing. web_standin_show counts these in writes_refused. STATUS, the roadmap's pending line and the tool's description say so. * Refuse a mutation sent as text where only reads were recorded, and count every refused write A GraphQL mutation with its own document, on a URL where only queries were recorded, was answered with a recorded read. It now gets write_not_recorded and moves nothing; a request naming only its operation still replays the read. writes_refused counts every write the stand-in refused, by the same write test replay uses, not only write_not_recorded ones. * Reset stand-ins when a check starts, report its refused writes, and refuse unrecorded writes in version-1 files A build's check starts the stand-ins in the run's engine session from the beginning of their recordings and its last result says how many writes they refused during it. A version-1 file gives a write each recorded answer once, counted apart from the reads' turns. A POST too large to read counts as unanswered rather than a refused write. A batch is a write by its own text only when an element with a document doesn't only query. --------- Co-authored-by: Mansur Akhmadi <10739460+mansur-akhmadi@users.noreply.github.com>