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

Distinguish installs from updates in download counts #1586

Open
fbricon opened this issue Jan 31, 2023 · 6 comments
Open

Distinguish installs from updates in download counts #1586

fbricon opened this issue Jan 31, 2023 · 6 comments

Comments

@fbricon
Copy link

fbricon commented Jan 31, 2023

Hi,

currently, an extension like JBang shows 1.2k installs. While it gets 300+ installs on the VS Code marketplace (and 1400+ updates).
Could the open-vsx API return different values for (unique) installs and updates?

@kineticsquid
Copy link
Contributor

@fbricon The installs figure on open-vsx.org is the vscode marketplace figure, https://marketplace.visualstudio.com/items?itemName=jbangdev.jbang-vscode. The downloads figure on open-vsx.org, in this case 1.3K, are the downloads we track from open-vsx.org. I believe the download count is just downloads from the extension details page and not file accesses via /api/{namespace}/{extension}/{version}/file/**. Does this answer your question?

@amvanbaren Can you confirm?

@amvanbaren
Copy link
Contributor

amvanbaren commented Feb 2, 2023

The installs badge is part of the jbangdev.jbang-vscode README file, not all extensions show this badge, e.g. rust-analyzer.

Open VSX only tracks downloads. The downloads are imported from Azure Blob Storage. There's no distinction between the webui and API.

@fbricon
Copy link
Author

fbricon commented Feb 2, 2023

I actually don't know how IDEs download the updates. But if they were appending a flag like ?update=true to the download query, would it be possible for open-vsx to handle (count) that?

@amvanbaren
Copy link
Contributor

@fbricon If that were the case, then it would be possible for open-vsx to count it. Especially if the flag can be passed on to Azure Blob Storage, but it could be done in other ways too.

Maybe you can check how VS Code or VSCodium check for extension updates? You can see the web requests it makes by opening the developer tools (Help > Toggle developer tools).

I just realized that open-vsx is also used by other non-VSCode apps such as Theia or to load dependencies in CI jobs. I think that for this reason it will be quite the challenge to reliably distinguish between installs and updates.

@kineticsquid Do you know which apps, frameworks or platforms use open-vsx?

@kineticsquid
Copy link
Contributor

@amvanbaren Anecdotally, Theia based IDEs, VS Codium users, a 'fork' of Theia called SmartIDE. I was hoping the additional activity metrics in the /admin/report would also shed light on use.

@amvanbaren
Copy link
Contributor

@kineticsquid

I was hoping the additional activity metrics in the /admin/report would also shed light on use.

No, Open VSX does not track which IDE/app uses the platform.

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

No branches or pull requests

3 participants