-
Notifications
You must be signed in to change notification settings - Fork 549
refactor(client-presence): Refactor/Rename APIs #24384
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
Conversation
## Description Renaming of value manager presence APIs See .changeset/sour-mirrors-wave.md for all changes. Documentation changes were made as well where old name was previously mentioned. Wouldn't want doc changes to block the renames so review here is welcome but they can be cleaned up later.
Restructuring of Presence API All changes added in .changest/sour-mirrors-wave: Docs have been updated as well to reflect changes. Only thing remaining after this will be to pass root Presence to workspace and "value manager" level
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.
Copilot reviewed 49 out of 49 changed files in this pull request and generated 1 comment.
examples/service-clients/azure-client/external-controller/src/presence.ts
Outdated
Show resolved
Hide resolved
…presence.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… include `remote` (#24387) ## Description | Original | New | |----------|-----| | `LatestEvents.updated` | `LatestEvents.remoteUpdated` | | `LatestMapEvents.itemRemoved` | `LatestMapEvents.remoteItemRemoved` | | `LatestMapEvents.itemUpdated` | `LatestMapEvents.remoteItemUpdated` | | `LatestMapEvents.updated` | `LatestMapEvents.remoteUpdated` |
| `SessionClientStatus` | `AttendeeStatus` | | ||
| `ValueMap` | `StateMap` | | ||
|
||
> [!NOTE] |
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.
🚫 [vale] reported by reviewdog 🐶
[proselint.Annotations] 'NOTE' left in text.
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output
|
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.
Description
This change implements all the renaming/reshaping of Presence API presented in this table (All changes made to API surface can be found in .changest/sour-mirrors-wave):
acquirePresence
getPresence
acquirePresenceViaDataObject
getPresenceViaDataObject
ClientSessionId
AttendeeId
IPresence
Presence
IPresence.events["attendeeJoined"]
Presence.attendees.events["attendeeConnected"]
IPresence.events["attendeeDisconnected"]
Presence.attendees.events["attendeeDisconnected"]
IPresence.getAttendee
Presence.attendees.getAttendee
IPresence.getAttendees
Presence.attendees.getAttendees
IPresence.getMyself
Presence.attendees.getMyself
IPresence.getNotifications
Presence.notifications.getWorkspace
IPresence.getStates
Presence.states.getWorkspace
ISessionClient
Attendee
Latest
(import)StateFactory
Latest
(call)StateFactory.latest
LatestEvents.updated
LatestEvents.remoteUpdated
LatestMap
(import)StateFactory
LatestMap
(call)StateFactory.latestMap
LatestMapEvents.itemRemoved
LatestMapEvents.remoteItemRemoved
LatestMapEvents.itemUpdated
LatestMapEvents.remoteItemUpdated
LatestMapEvents.updated
LatestMapEvents.remoteUpdated
LatestMapItemValueClientData
LatestMapItemUpdatedClientData
LatestMapValueClientData
LatestMapClientData
LatestMapValueManager
LatestMap
LatestMapValueManager.clients
LatestMap.getStateAttendees
LatestMapValueManager.clientValue
LatestMap.getRemote
LatestMapValueManager.clientValues
LatestMap.getRemotes
LatestMapValueManagerEvents
LatestMapEvents
LatestValueClientData
LatestClientData
LatestValueData
LatestData
LatestValueManager
Latest
LatestValueManager.clients
Latest.getStateAttendees
LatestValueManager.clientValue
Latest.getRemote
LatestValueManager.clientValues
Latest.getRemotes
LatestValueManagerEvents
LatestEvents
LatestValueMetadata
LatestMetadata
PresenceEvents.attendeeDisconnected
AttendeesEvents.attendeeDisconnected
PresenceEvents.attendeeJoined
AttendeesEvents.attendeeConnected
PresenceNotifications
NotificationsWorkspace
PresenceNotificationsSchema
NotificationsWorkspaceSchema
PresenceStates
StatesWorkspace
PresenceStatesEntries
StatesWorkspaceEntries
PresenceStatesSchema
StatesWorkspaceSchema
PresenceWorkspaceAddress
WorkspaceAddress
PresenceWorkspaceEntry
StatesWorkspaceEntry
SessionClientStatus
AttendeeStatus
ValueMap
StateMap