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

[BREAK] Decouple livechat visitors from regular users #9048

Merged
merged 24 commits into from
Dec 27, 2017

Conversation

sampaiodiego
Copy link
Member

@RocketChat/core

Closes #7725

This is a big change which will help a lot instances using livechat. Removing livechat visitors from regular users collection will help rocket.chat run lighter and also allows livechat visitors to become regular rocket.chat users.

I had to change presence packages to allow it to work without a logged in users, so now if you tell it to track a connection it emits events when that connection changes its status.

I had to also change a few on our streams so it allows livechat visitors to listen some streams which were previously only for logged in users.

This PR also includes a migration so all current livechat users will be moved to the new visitors collection on the first startup.

I added a [BREAK] tag due to the schema changing and a few real-time APIs I had to change.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-9048 December 8, 2017 11:48 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-9048 December 14, 2017 12:25 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-9048 December 14, 2017 19:35 Inactive
@ggazzo ggazzo self-requested a review December 21, 2017 19:28
@sampaiodiego sampaiodiego merged commit ec8679c into develop Dec 27, 2017
@sampaiodiego sampaiodiego deleted the livechat-do-not-use-users-collection branch December 27, 2017 20:18
sampaiodiego added a commit that referenced this pull request Jan 20, 2018
This was caused by #9048 due to a result schema change
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.

Decouple livechat visitors from regular users
3 participants