-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(client-presence): ISessionClient naming consistency #22973
Conversation
and misc cleanup. Overall SessionClient class is introduced with updated ISessionClient API, but functionality is not changed.
Replaces #22889 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed a couple of lowercase id and ids in some of the surrounding comments. Probably not worth a further cleanup now. The opportunistic ones you did are great.
|
||
public setConnectionId( | ||
connectionId: ClientConnectionId, | ||
updateStatus: boolean = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When might you set updateStatus to false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We think the management of connectivity is funky at the moment. I expect this will change when Task 22616: "Address ISessionClient connectivity consistency" is done. I hope this parameter just goes away. We'll see. I am using it now to preserve the logic as-is.
Co-authored-by: Tyler Butler <[email protected]>
I thought I got all in the files that were already touched and anything public facing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Coverage Summary
↑ packages.framework.presence.src:
Line Coverage Change: 0.21% Branch Coverage Change: 0.18%
Metric Name | Baseline coverage | PR coverage | Coverage Diff |
---|---|---|---|
Branch Coverage | 83.87% | 84.05% | ↑ 0.18% |
Line Coverage | 61.93% | 62.14% | ↑ 0.21% |
Baseline commit: 80ed028
Baseline build: 304016
Happy Coding!!
Code coverage comparison check passed!!
⯅ @fluid-example/bundle-size-tests: +245 Bytes
Baseline commit: 80ed028 |
1. `ISessionClient` method names updated for consistency to `getConnectionId()` and `getConnectionStatus()`. 2. Implementation of `ISessionClient` moved to a full class object. 3. Changeset provided for Presence changes since 2.4. 4. Updated `id` to `ID` in comments (public and most internal). No behavior is changed. [AB#21446](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/21446) --------- Co-authored-by: Willie Habimana <[email protected]> Co-authored-by: Tyler Butler <[email protected]>
ISessionClient
method names updated for consistency togetConnectionId()
andgetConnectionStatus()
.ISessionClient
moved to a full class object.id
toID
in comments (public and most internal).No behavior is changed.
AB#21446