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

[NEW] Statistics about language usage #20832

Merged
merged 7 commits into from
Feb 21, 2021
Merged

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

app/models/server/models/Users.js Outdated Show resolved Hide resolved
app/statistics/server/lib/statistics.js Outdated Show resolved Hide resolved
@@ -31,6 +31,16 @@ const setPrometheusData = async () => {
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.

@@ -4,7 +4,7 @@ export class Statistics extends Base {
constructor() {
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.

4 participants