Upgrade to Endatix 0.9.4
Release notes: Endatix API v0.9.4 and Endatix Hub v0.9.4.
Act only if your deployment writes Reporting rows (the ReportingModule flag). Apply the migration and pause forced rebuilds until every writer is upgraded and old work has drained. This includes custom writers that call the repository directly: they must claim each row before computing and publish with that same claim. An upgrade that skips 0.9.3 also needs the 0.9.3 guide.
Pause forced Reporting rebuilds during rollout
- Pause forced rebuilds before the first Reporting writer changes version. Apply the Reporting migration for your provider. It adds a nullable
FlattenAttemptIdcolumn; it does not rewrite answers. - Upgrade every writer, including API instances that run backfills, outbox relays, job workers, and custom writers. Let old in-flight attempts finish or stop them. Old binaries can still write to the expanded table and overwrite a rebuild because they do not check the new column.
- Once only upgraded writers remain, resume Refresh stored rows for the affected forms. No rebuild runs automatically.
Rolling back: pause forced rebuilds again. Leave the column in place when rolling back the binaries. Resume rebuilds only after re-upgrading every writer and draining old work.
Custom writers claim each row
Breaking behavior for custom IFlattenedSubmissionRepository writers: the method signatures still load. Previously a terminal write could succeed immediately after EnsureExistsAsync. Now construct a fresh FlattenedRevision for each attempt, including retries. Pass it to TryMarkProcessingAsync before reading the schema or computing answers. If the claim succeeds, pass that same value to TryMarkProcessedAsync, TryMarkSkippedAsync, or TryMarkFailedAsync. Check both results: false means nothing was written. Do not reconstruct the value from matching fields, reuse a previous claim, or retry publishing its computed answers.
Overlapping rebuilds report failed rows
If two forced rebuilds overlap, or a completion takes over a row during a forced rebuild, the request that lost the live row lists its ID in failedSubmissionIds. This can happen even if the other writer succeeds: the first request cannot confirm that its rebuild was published. Let the competing work finish before retrying. A confirmed deletion is skipped. A submission returned for the wrong tenant or form fails backfill without changing its Reporting row; correct the request scope before retrying.