Skip to content

[ECO-4686][Protocol-2] Implement internal presence - #410

Merged
sacOO7 merged 7 commits into
feature/integration-protocol-2from
feature/protocol-2-presence
Jul 3, 2024
Merged

[ECO-4686][Protocol-2] Implement internal presence#410
sacOO7 merged 7 commits into
feature/integration-protocol-2from
feature/protocol-2-presence

Conversation

@sacOO7

@sacOO7sacOO7 commented Jun 6, 2024

Copy link
Copy Markdown
Contributor

PR description

  • renamed :in_sync enum to :sync_completed, since :in_sync is a very confusing term and doesn't go as per spec.
  • removed resume_sync_proc code that does client initiated sync when channel attaches with has_presence flag. This doesn't go as per spec.
  • added on_attach method to presence_manager that
  1. start or end sync depending on has_presence flag
  2. enter local members when on_attach method is called.
  • Added a new enter_client_with_id method to presence that enters local members with id. Earlier local members were entered at the end of the sync and didn't support entering members with given id.

sacOO7 added 2 commits June 6, 2024 15:11
1. Added private onAttach method to presence_manager
2. Depending on the has_presence_flag, sync is marked either as started or none
3. Entering local members when onAttach is called
4. Removed client initiated sync from presence code ( as per spec )
5. Removed entering local members at the end of the sync
@github-actions
github-actionsBottemporarily deployed to staging/pull/410/features June 6, 2024 10:06 Inactive
@github-actions
github-actionsBottemporarily deployed to staging/pull/410/docs June 6, 2024 10:07 Inactive
@sacOO7
sacOO7 requested a review from umair-ablyJune 6, 2024 10:10
@sacOO7
sacOO7 marked this pull request as ready for review June 6, 2024 10:11
Comment threadlib/ably/realtime/presence/members_map.rb Outdated
Comment threadlib/ably/realtime/presence/presence_manager.rb Outdated
@lawrence-forooghian

Copy link
Copy Markdown
Contributor

And, same question as in #409 (review) re tests?

@sacOO7

Copy link
Copy Markdown
ContributorAuthor

And, same question as in #409 (review) re tests?

Tests fixed as a part of #411

@github-actions
github-actionsBottemporarily deployed to staging/pull/410/features June 24, 2024 12:01 Inactive
@github-actions
github-actionsBottemporarily deployed to staging/pull/410/docs June 24, 2024 12:02 Inactive
@github-actions
github-actionsBottemporarily deployed to staging/pull/410/features June 25, 2024 05:04 Inactive
@github-actions
github-actionsBottemporarily deployed to staging/pull/410/docs June 25, 2024 05:04 Inactive
Base automatically changed from feature/protocol-2-resume-recover to feature/integration-protocol-2July 3, 2024 11:48
@sacOO7
sacOO7 merged commit cbdf545 into feature/integration-protocol-2Jul 3, 2024
@sacOO7
sacOO7 deleted the feature/protocol-2-presence branch July 3, 2024 11:50
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sacOO7@lawrence-forooghian