Skip to content

fix(model): retry unordered model transactions - #84

Open
MichaelUray wants to merge 2 commits into
Platform-Collective:developfrom
MichaelUray:pr/11022
Open

MichaelUray wants to merge 2 commits into
Platform-Collective:developfrom
MichaelUray:pr/11022

Conversation

@MichaelUray

Copy link
Copy Markdown
Contributor

Out-of-order model snapshots discarded updates and mixins whose
documents were created later, producing incomplete models. Retry them
and fail required bootstrap transactions that remain unapplied.

Fixes hcengineering/platform#11022 (the issue was reported upstream before the move to Platform-Collective).

Changed files

  • foundations/core/packages/core/src/__tests__/memdb.test.ts
  • foundations/core/packages/core/src/memdb.ts
  • plugins/view-resources/src/components/ClassRefPresenter.svelte
  • server/tool/src/index.ts

Testing

  • Focused unit tests for the changed logic (included in this PR).
  • Local CI-equivalent run for the changed projects and their dependencies: rush build, rush validate, rush svelte-check, rush fast-format (no resulting diff) and rush test pass.

Out-of-order model snapshots discarded updates and mixins whose
documents were created later, producing incomplete models. Retry them
and fail required bootstrap transactions that remain unapplied.

Fixes hcengineering/platform#11022

Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com>
Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com>
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.

[Bug] Cards app crashes on load with ObjectNotFound (card:types:File/Document) on fresh self-hosted v0.7.432 workspace

1 participant