Skip to content

fix(core-sync): the approvals list and count name only a team's values from the file's open - #4821

Merged
datlechin merged 2 commits into
mainfrom
fix/core-approvals-list-team-only
Dec 1, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/core-approvals-list-team-only

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • adapters/approval.rs: a row asks the person only in a team scope (core ADR 0114, Approvals). Queue::waiting and approval::tally skip personal rows, so approvals(), waiting_approvals and NeedsApproval name only a team's values from the file's open, on TablePro Sync and on iCloud.
  • Before, personal rows an earlier build left showed under Team Library on the Mac and Windows until settle_personal settled them, and after any pass that could not (store unreadable, no store of that kind).
  • Queue::decide and decide_record answer sync.unknown for a personal row, as for any row the list never named.
  • sync-host and ffi read through SyncControl::approvals and SyncStatus, so they need no change.

Test plan

  • New, fails on main: engine approvals::an_opened_file_lists_and_counts_only_a_team_s_values_before_any_pass. A state file on disk holds a personal waiting row; after read_counts, before any pass, the list and count are empty and a decision answers sync.unknown. A team row added to the file shows, count 1.
  • Extended, fails on main: cloudkit approval::a_record_its_store_cannot_read_keeps_what_an_earlier_build_left_for_a_later_pass checks that the row kept for a later pass is not listed or counted.
  • cargo nextest run -p tablepro-sync -p tablepro-sync-host: 1283 passed. tablepro-ffi sync tests: 74 passed.
  • cargo clippy -p tablepro-sync -p tablepro-sync-host -p tablepro-ffi --all-targets -- -D warnings and cargo fmt --all -- --check clean.
  • codex review --base origin/main: clean. Security pass (adversarial-review): approve, no findings.

@datlechin datlechin added the backport release/0.89 Merged into main; pick onto release/0.89 label Dec 1, 2026
@datlechin
datlechin merged commit d60fabc into main Dec 1, 2026
29 of 34 checks passed
@datlechin
datlechin deleted the fix/core-approvals-list-team-only branch December 1, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release/0.89 Merged into main; pick onto release/0.89

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant