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

Show basic statistics #71

Closed
nichtich opened this issue Jan 12, 2021 · 2 comments
Closed

Show basic statistics #71

nichtich opened this issue Jan 12, 2021 · 2 comments
Labels
feature undefined
Milestone

Comments

@nichtich
Copy link
Member

The idea came up via #37

Add /stats endpoint with basic statistics

  • number of known accounts
  • number of known identities per provider
  • number of active sessions
@nichtich nichtich added this to the 1.0.0 milestone Jan 12, 2021
@nichtich nichtich added the feature undefined label Jan 12, 2021
@stefandesu
Copy link
Member

Alternatively, we could add a stats property for the /about endpoint.

@stefandesu
Copy link
Member

Currently, I have implemented it within /about like this:

  "statistics": {
    "userCount": 4,
    "userCountByProvider": {
      "local": 2,
      "github": 1,
      "stackexchange": 0,
      "easydb": 0,
      "wikidata": 1,
      "orcid": 0,
      "testscript": 2
    },
    "sessionCount": 3
  },

Any requests for changes @nichtich ?

stefandesu added a commit that referenced this issue Sep 16, 2024
- Fixes issue introduced by #71.
- Uses async/await now where possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature undefined
Projects
None yet
Development

No branches or pull requests

2 participants