Skip to content

Conversation

@gabrieleiro
Copy link
Contributor

Proposed changes (including videos or screenshots)

track what languages get picked the most as preferred ui language.

Issue(s)

Steps to test or reproduce

Further comments

metrics.ddpAuthenticatedSessions.set(authenticatedSessions.length);
metrics.ddpConnectedUsers.set(_.unique(authenticatedSessions.map((s) => s.userId)).length);

// Apps metrics
Copy link
Member

Choose a reason for hiding this comment

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

super('statistics');

this.tryEnsureIndex({ createdAt: 1 });
this.tryEnsureIndex({ createdAt: -1 });
Copy link
Member

Choose a reason for hiding this comment

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

the only find using this index was findLast and it sorts on reverse order

rodrigok
rodrigok previously approved these changes Feb 21, 2021
@rodrigok rodrigok changed the title [NEW] statistics about language usage [NEW] Statistics about language usage Feb 21, 2021
@sampaiodiego sampaiodiego merged commit 5e05e6a into develop Feb 21, 2021
@sampaiodiego sampaiodiego deleted the language-statistics branch February 21, 2021 03:02
@sampaiodiego sampaiodiego mentioned this pull request Feb 28, 2021
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