Skip to content

feat(rust): apply staging in a transaction + e2e (#1889) - #1991

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1889-apply-staging-transaction
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1889-apply-staging-transaction

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • apply_plan_sqlite / apply_staging_sqlite run generated DML in one transaction
  • Success → revert_all() on the buffer; failure → DB rolled back, staging untouched
  • E2E tests (in-memory SQLite): update+insert+delete, NULL cell, empty plan, PK conflict rollback

Test plan

  • cargo test --locked staging (20 — includes 4 e2e)
  • cargo clippy --locked -- -D warnings

Closes #1889

Apply generated DML atomically; success clears the buffer, failure
rolls back the DB and leaves staging intact. E2E covers update/insert/
delete, NULL set, empty plan, and constraint-failure rollback.

Closes #1889
@github-actions github-actions Bot added data-grid Interactive data grid, cell editor, filtering, groupings P2 Medium priority / Parity & Refactoring tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
@github-actions github-actions Bot added this to the Tauri migration milestone Nov 15, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit a2cfe48 into epic/tauri-migration Nov 15, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1889-apply-staging-transaction branch November 15, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-grid Interactive data grid, cell editor, filtering, groupings P2 Medium priority / Parity & Refactoring rust Rust backend (src-tauri / crates) tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant