Repository navigation
fix(sync): a new or recovered device joins a team at its current key, and own key alerts show on the keys page - #4752
Merged
Conversation
…nt holds, and personal key alerts reach the Mac and Windows
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
avafter the whole history. A new device stopped withkeys.staleon any version a teammate signed before a later device removal, recovery or replace. After a recovery the account's own older wraps read as stale too, and the next signer askeys.not_holder.avolder than one the chain names for its account below it or in another wrap of the same version. It takes the newest chained version that Advancing takes, else the first-use version as before.advancetriesclear_stopright after a call stops a team by a catch-up, so a holder's re-confirmation the same pull brought clears it at once. Before, the stop waited for a later key object.Progress::refusekeeps one refusal per record, since the clear judges again what the stop refused.Conflict { personal }and the account's ownRecoveryKeyReplacedhad no reader on the Mac or Windows. The team pages keep only notices about a team or its members.KeyNoticeKindTag::OwnRecoveryKeyReplaced, whichkey_noticesgives for a replace notice naming this account. C# bindings regenerated.a_new_member_joins_at_the_version_it_was_confirmed_with_then_follows_the_ruleis nowa_new_member_joins_at_the_newest_version_wrapped_to_it_and_reads_the_one_below_down_the_ring(Joined at 4, not 3 then 4)OpeningThePageRunsAPassThatEndsTheUnknownStateandAnUnknownStateAfterAFailedPassEndsInItsFailureWithNoOtherCall: their call lists gainnoticesaccountChangeForgetsStatealso checks the alerts.Test plan
team_join::a_device_new_to_a_team_joins_at_the_version_its_account_holds_after_its_signers_moved_on(main:keys.staleat version 2)team_join::a_device_recovered_with_r_joins_a_team_at_the_version_its_account_holds(main: a stale wrap, thenkeys.not_holderat version 2)a_device_new_to_the_team_joins_past_versions_signed_under_an_av_their_signer_has_lefta_catch_up_stop_takes_a_re_confirmation_the_same_call_holdsa_wrap_a_removed_device_signs_after_a_rotation_named_its_accounts_later_av_adds_no_holdera_device_new_to_the_team_never_joins_above_a_version_no_holder_signeda_device_new_to_the_team_never_joins_past_another_accounts_restart_of_a_version_its_account_helda_device_new_to_the_team_never_joins_a_version_signed_under_an_av_its_signer_left_before_the_one_belowteam_join::a_catch_up_stop_takes_a_re_confirmation_the_same_pull_brought. On main the harness's next empty page clears that stop; the unit test above is the one that fails on main.sync::tests::an_own_recovery_key_replace_reads_as_the_account_s_own_and_a_teammate_s_names_the_teammate.747957b440(the last rebase ontob9c3ba9d32touched none of these files):cargo test -p tablepro-sync: 1095 passed.cargo test -p tablepro-ffi --lib sync::: 73 passed.cargo clippy --locked -p tablepro-sync -p tablepro-sync-testing -p tablepro-ffi --all-targets -- -D warnings: clean.cargo fmt --check: clean.cargo test -p tablepro-sync, 1073 passed;cargo test -p tablepro-ffi, 528 passed.verify.sh test AccountKeysModelTests AccountKeysScreenTests AccountSettingsModelTests TeamKeysPresentationTests TeamKeysModelTests ResetKeysModelTests: PASS, 116 of 116.verify.sh linton the changed Swift files: PASS.verify.sh l10n: the Mac checks pass. The iOS and widget ones need the iOS project, which this tree did not generate, and no iOS file changed.verify.sh --platform windows bindings: PASS after regenerating, on main747957b440. The last rebase ontob9c3ba9d32only auto-merged main's own 8-line change inGenerated/.TablePro.App.Model.Testsbuilt and run on the Mac: 0 warnings, 1351 passed.avwas judged only against the versions below. Each wrap is now held against every verified wrap of its version too, with a unit test.apple/changelog.d/4752.fixed.md,4752.fixed.1.md;windows/changelog.d/4752.fixed.md,4752.fixed.1.md.