Repository navigation
fix(core-sync): the approvals list and count name only a team's values from the file's open - #4821
Merged
Merged
Conversation
…s from the file's open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
adapters/approval.rs: a row asks the person only in a team scope (core ADR 0114, Approvals).Queue::waitingandapproval::tallyskip personal rows, soapprovals(),waiting_approvalsandNeedsApprovalname only a team's values from the file's open, on TablePro Sync and on iCloud.settle_personalsettled them, and after any pass that could not (store unreadable, no store of that kind).Queue::decideanddecide_recordanswersync.unknownfor a personal row, as for any row the list never named.SyncControl::approvalsandSyncStatus, so they need no change.Test plan
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; afterread_counts, before any pass, the list and count are empty and a decision answerssync.unknown. A team row added to the file shows, count 1.cloudkit approval::a_record_its_store_cannot_read_keeps_what_an_earlier_build_left_for_a_later_passchecks 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-ffisync tests: 74 passed.cargo clippy -p tablepro-sync -p tablepro-sync-host -p tablepro-ffi --all-targets -- -D warningsandcargo fmt --all -- --checkclean.codex review --base origin/main: clean. Security pass (adversarial-review): approve, no findings.