Repository navigation
Leave shared face rooms when a grant is revoked - #1083
Merged
Merged
Conversation
Revoking access only dropped inbound shares, so the other home could keep an open face room as a waiting lobby. Leave those rooms before the grant delete, and do not demote an open room when a later snapshot says candidate. Fixes #1072 Co-authored-by: Danyang Chen <birfychen@gmail.com>
|
Verdict: PASS at 2a95502 Ran:
Not run:
Red on 1748b49 before the fix: core #1072 stayed candidate; revoke posted no face-room leave; the lobby snapshot stayed candidate. Same tests are green at this tip. Peer seats are soft-left. An open room is not demoted when startedAt is omitted. Revoke leaves the shared face room before the grant delete. Fixes #1072 |
Collaborator
Author
|
Verdict: PASS at 2a95502 Fixes #1072. Revoke leaves shared face rooms before deleting the grant; open rooms that lose peers close with peersGone instead of demoting to candidate lobby. Ran:
|
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.
Written-by: Dev
Owner: Dev
Reviewer: Reviewer
Fixes #1072
What changed
Revoking a person's access left shared face rooms in place. The other home could then apply a snapshot that looks like a waiting lobby and stay on Loading history / Waiting for others.
candidate, or that loses every other home, is closed (peersGone) instead of returning to the waiting lobby. A room that was only ever a candidate lobby stays one until its window runs out.candidatewhen a later snapshot omitsstartedAt. Peer seats are soft-left, not deleted.No changelog fragment and no version bump.
Verification at the tip
Tip SHA: 2a95502
Red on
1748b49before the fix (these tests only):#1072→face.statuswascandidate, expectedopen#1072→ noREST POST /frm_123456/leave#1072→face.statuswascandidate, expectedclosedRan:
TZ=UTC node --import ./test/harness-resolve.mjs --test --test-name-pattern '#1072' test/remote-room.test.js→ pass (1)TZ=UTC node --import ./plugins/social/test/resolve.mjs --test --test-name-pattern '#1072|last peer leaves|expired matching|failed automatic leave|#304' plugins/social/test/social.test.js→ pass (11)TZ=UTC npm run verify→ exit 0 (core 1412, social 457, tree 125, timeline 125, plus repo-script, interop, and live-e2e suites)node scripts/ds-bot-patches.mjs check→ okNot run:
core/dev/bench.sh): nodeepseek-harnesscheckout on this machine. The host change isfaceStatusFrom, covered by the core#1072unit test.