Skip to content

[IMPROVE] Change user presence events to streams and new REST endpoint to retrieve them#12800

Closed
sampaiodiego wants to merge 22 commits intodevelopfrom
change-status-to-streams
Closed

[IMPROVE] Change user presence events to streams and new REST endpoint to retrieve them#12800
sampaiodiego wants to merge 22 commits intodevelopfrom
change-status-to-streams

Conversation

@sampaiodiego
Copy link
Copy Markdown
Member

@sampaiodiego sampaiodiego commented Dec 3, 2018

Changing to streams will make it lighter on the client.

The first batch of online/away users will come from a REST request (thus will not flood websocket) and only further changes on status will come though DDP.

closes #11681

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-12800 December 3, 2018 13:13 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 3, 2018 13:16 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 5, 2018 21:04 Inactive
@sampaiodiego sampaiodiego changed the title [WIP][IMPROVE] Change status to streams [IMPROVE] Change status to streams Dec 5, 2018
@sampaiodiego sampaiodiego added docs Needs addition/changes to documentation and removed stat: in progress labels Dec 5, 2018
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 6, 2018 13:46 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 6, 2018 19:53 Inactive
@@ -0,0 +1,7 @@

RocketChat.models.FullUser = new class extends RocketChat.models._Base {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why this separation, I didn't understand the idea.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the issue is since I'm updating/inserting records on users collection on the client by hand, Meteor will throw out error if I subscribe to a publication that would add records to users collection.

so I had to change the fullUserData publication to publish on this new virtual collection.

@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 7, 2018 22:19 Inactive
@ggazzo ggazzo temporarily deployed to rocket-chat-pr-12800 December 10, 2018 13:21 Inactive
@ggazzo ggazzo temporarily deployed to rocket-chat-pr-12800 December 10, 2018 13:40 Inactive
@ggazzo ggazzo temporarily deployed to rocket-chat-pr-12800 December 10, 2018 13:42 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 11, 2018 21:11 Inactive
ggazzo
ggazzo previously approved these changes Dec 11, 2018
@sampaiodiego sampaiodiego changed the title [IMPROVE] Change status to streams [IMPROVE] Change user presence events to streams and new REST endpoint to retrieve them Dec 11, 2018
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 13, 2018 16:34 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-12800 December 14, 2018 19:53 Inactive
Since only one instance can actual process the status change and call
the callback, we need to broadcast that change to all instances
@engelgabriel
Copy link
Copy Markdown
Member

@engelgabriel engelgabriel added this to the 1.0.0 milestone Feb 22, 2019
@engelgabriel engelgabriel removed the docs Needs addition/changes to documentation label Feb 22, 2019
@engelgabriel engelgabriel modified the milestones: 1.0.0, 1.1.0 Apr 6, 2019
@rodrigok rodrigok modified the milestones: 1.1.0, 1.2.0 May 15, 2019
@engelgabriel engelgabriel deleted the change-status-to-streams branch March 29, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server becomes unresponsive after posting multiline formatted message

4 participants