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

Deployment Statistics #235

Closed
brianking opened this issue Jan 14, 2021 · 9 comments · Fixed by #364
Closed

Deployment Statistics #235

brianking opened this issue Jan 14, 2021 · 9 comments · Fixed by #364
Labels
server Component: server webui Component: webui

Comments

@brianking
Copy link

brianking commented Jan 14, 2021

Create scripts, store data, and create API endpoint where a client can get formatted statistics data about the site
Store in CSV format, and/or another appropriate format that is agreed on.

  • The client specifies month and year when requesting the data
  • When current month data is requested, calculations are done on the fly
  • For past months the data is archived, so that the server doesn’t have to re-calculate the stats for every request.
  • This is a scaled back version of the original intent if this issue, in that no front-end visualizations are necessary

Original Description
This is a feature request to add a new Admin feature.

This would be a Statistics section, which shows the following data.

  • number of extensions in repo
  • number of downloads per month (aggregrate of all extensions)
  • Stats about contributors (publishers / extension authors) + companies

I suggest having two views:

  • Real-time
  • Monthly that can be easily presented as a report

This is a need for the open-vsx.org service, and I would see it as a useful feature for all deplyments.

@spoenemann spoenemann added server Component: server webui Component: webui labels Jan 15, 2021
@amvanbaren
Copy link
Contributor

@brianking What stats about contributors (publishers / extension authors) + companies do you want to include in the report?

Download, user and namespace related data is stored without date and time info.
Do you want me to add date and time info to the data model?

@spoenemann
Copy link
Member

I think it depends on what "real-time" means. For a monthly report, you could leave the data model as it is and just compute the difference of the stats to the previous month. That could even happen outside of the server, meaning that you'd just offer an export of the data.

@amvanbaren
Copy link
Contributor

Yes, a scheduled job can be run every month that gets the absolute numbers and calculate the numbers relative to the previous month. Month can be replaced with any period (hour, day, week).

@spoenemann
Copy link
Member

Ok. Would you schedule that internally (with Spring) or externally (by calling an API endpoint)? The latter could be feasible if we require an access token of an admin user, so the endpoint would be in AdminAPI.

@amvanbaren
Copy link
Contributor

I'd schedule the job internally, store the data in the db and make it available through an endpoint that requires the admin role.

@brianking
Copy link
Author

brianking commented Sep 29, 2021

@brianking What stats about contributors (publishers / extension authors) + companies do you want to include in the report?

Download, user and namespace related data is stored without date and time info. Do you want me to add date and time info to the data model?

What would you suggest. I'm thinking:

  • number of publishers
  • number of publishers with 1, 2, 3 ... extensions listed
  • number of publishers that have claimed their namespace
  • number of extensions with each star rating
  • average number of reviews per extension

I don't think there is a way to collect company information vs individual, because we can't distinguish this based on their account. Correct me if I am wrong.

If you think date and time info is useful, then yes please add it to the data model.

Are we able to detect if downloads/installs were successful?

@brianking brianking changed the title Deployment Statistics in the Admin Dashboard Deployment Statistics Sep 29, 2021
@amvanbaren
Copy link
Contributor

I don't think there is a way to collect company information vs individual, because we can't distinguish this based on their account.

Yes, there's no distinction between company vs individual.

Are we able to detect if downloads/installs were successful?

The best we can do is detect if the extension was downloaded from Azure blob storage.

@amvanbaren
Copy link
Contributor

@brianking when is a publisher considered the claimer of a namespace?

@brianking
Copy link
Author

@brianking when is a publisher considered the claimer of a namespace?

See https://github.com/eclipse/openvsx/wiki/Namespace-Access#how-to-claim-a-namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Component: server webui Component: webui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants