Skip to content
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

[MMB-219] Update docs #113

Merged
merged 9 commits into from
Aug 24, 2023
Merged

[MMB-219] Update docs #113

merged 9 commits into from
Aug 24, 2023

Conversation

surminus
Copy link
Collaborator

@surminus surminus commented Aug 16, 2023

Update docs to use the latest API.

@surminus surminus marked this pull request as ready for review August 16, 2023 15:12
README.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
Copy link
Member

@Srushtika Srushtika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @surminus, this is a great start! I've requested some changes but I think it'll be easier for us to pair on this for a bit as there have been lots of changes to the public API, some potentially confusing to understand as there's not much context documented in the DR. If that works with you, I'll book something in the calendar.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/usage.md Outdated

Emitted when members enter, leave and their location is updated. Called with an array of all the members in the space.
Emitted when a member profile updates a space. Called with the member updating the space.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Emitted when a member profile updates a space. Called with the member updating the space.
Emitted when members enter, leave and their location is updated. Called with the member updating the space.

docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Show resolved Hide resolved
@surminus
Copy link
Collaborator Author

Thanks @Srushtika, I've attempted to go through and make this a little more consistent and up to date. Let me know if it makes sense (and make sure I haven't nerfed it during a rebase).

Copy link
Collaborator

@m-hulbert m-hulbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of comments on a few things that I think need clarification. Feel free to shout any questions at me.

docs/class-definitions.md Outdated Show resolved Hide resolved
```
The argument supplied to the callback is a [SpaceMember](#spacemember) object representing the member entering the space.

- #### **leave**

Listen to leave events of members. Note that the leave event will only fire once the [offlineTimeout](#spaceoptions) has passed.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is now untrue. As far as I understand it, leave is fired as soon as a member calls space.leave() or is disconnected. A remove event is then fired after the offlineTimeout period.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's my understanding too. Can you please check this in the implementation @surminus?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please check this in the implementation

Seems to be but honestly not entirely confident that I understand the code

docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
Copy link
Member

@Srushtika Srushtika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @surminus , we are almost there! Requested a few more changes.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
@surminus
Copy link
Collaborator Author

Thank you @m-hulbert and @Srushtika, I've attempted another pass and hopefully it's almost there...

Copy link
Member

@lmars lmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite a few comments related to the asyncifying I did in #116 (sorry about that 😬 )

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/class-definitions.md Outdated Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
@@ -189,16 +247,15 @@ space.enter({
avatar: 'https://slides-internal.com/users/clemons.png',
});

// Listen to events published on "mousemove" by all members
space.cursors.subscribe('update', (cursorUpdate) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this only works with space.cursors.subscribe("cursorsUpdate", ... & not as space.cursors.subscribe("update",...

@surminus @Srushtika

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I will update this PR... I think this should change to be update to be consistent, though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lmars @surminus looks like it's a bug as it's something we agreed on. It's also possible that it slipped the implementation part as there were quite a few changes - are you able to check this please?https://ably.atlassian.net/wiki/spaces/product/pages/2659713025/MMDR14+Spaces+SDK+New+API+Design#Member-cursors

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surminus
Copy link
Collaborator Author

@Srushtika I've squashed all my fixup commits and hopefully resolved the comments that were left (except the one from Arti about the incorrect API, which I've raised another PR for)... if you want to push some other changes to the branch feel free.

@surminus surminus merged commit a1b16ee into main Aug 24, 2023
5 checks passed
@surminus surminus deleted the mmb-219-update-docs branch August 24, 2023 14:41
Sign up for free to 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.

5 participants