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

Addition to the Stats #5625

Merged
merged 14 commits into from
Feb 1, 2017
Merged

Addition to the Stats #5625

merged 14 commits into from
Feb 1, 2017

Conversation

graywolf336
Copy link
Contributor

@graywolf336 graywolf336 commented Jan 17, 2017

@RocketChat/core

Done:

  • Message Count per Room Type
  • Accessing the stats history via the rest api

Closes #4619

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 17, 2017 19:08 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 17, 2017 19:27 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 18, 2017 13:22 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 18, 2017 13:31 Inactive
@graywolf336 graywolf336 added this to the 0.50.0 milestone Jan 20, 2017
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 20, 2017 20:35 Inactive
@engelgabriel engelgabriel modified the milestones: 0.50.0, Short-term Jan 24, 2017
version: 82,
up: function() {
RocketChat.models.Rooms.find().forEach((room) => {
RocketChat.models.Rooms.incMsgCountById(room._id, RocketChat.models.Messages.find({ rid: room._id, t: { $exists: true }}).count());
Copy link
Member

Choose a reason for hiding this comment

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

Use update and not increment for correctly setting the number of messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually after reviewing this, our review together is incorrect as this increments the amount of messages by how many system messages there are.

@graywolf336 graywolf336 modified the milestones: 0.51.0, Short-term Jan 24, 2017
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 24, 2017 20:53 Inactive
@engelgabriel
Copy link
Member

@marceloschmidt is this PR ok now?
@rodrigok can you please review this too?

@engelgabriel engelgabriel removed the request for review from sampaiodiego January 29, 2017 16:49
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 31, 2017 15:24 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-5625 January 31, 2017 21:16 Inactive
@rodrigok rodrigok temporarily deployed to rocket-chat-pr-5625 February 1, 2017 03:00 Inactive
@kassanmoor
Copy link

This stats is available in the api? how I can collect data externally?

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.

5 participants