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

[NuGet.org Bug]: download counts are inconsistent between Gallery and Search service #9791

Open
drewgillies opened this issue Jan 31, 2024 · 2 comments
Labels
Milestone

Comments

@drewgillies
Copy link
Contributor

Impact

Other

Describe the bug

Statistics on the search page don't match statistics on the package details page.

Repro Steps

Search for Fabulous Scheduler on NuGet.org and view the results: https://www.nuget.org/packages?q=fabulous+scheduler
Click on the FabulousScheduler link on the results page and view the stats on the package details page: https://www.nuget.org/packages/FabulousScheduler

They don't match.

Expected Behavior

Both screen show the same download count.

Screenshots

Search results:
image

Package details:
image

Additional Context and logs

No response

@drewgillies drewgillies changed the title [NuGet.org Bug]: [NuGet.org Bug]: download counts are inconsistent Feb 1, 2024
@drewgillies drewgillies added this to the Sprint 2024-02 milestone Feb 1, 2024
@swharden
Copy link

Possibly related, the primary query API has been serving stale download counts for a few weeks, but the secondary endpoint serves higher download counts.

e.g., Compare totalDownloads of ussc vs usnc. According to my records, the last time the primary endpoint updated download counts was Jan 19, 2024 (22 days ago), but the secondary one seems to be working as expected.

A side effect of this issue is that NuGet trends graphs have leveled-out for the last few weeks. E.g., https://nugettrends.com/packages?months=6&ids=NUnit

image

I hope this information is helpful. Thanks NuGet team for all you do! 🚀

@mariaghiondea mariaghiondea modified the milestones: Sprint 2024-03, Backlog Mar 2, 2024
@joelverhagen joelverhagen changed the title [NuGet.org Bug]: download counts are inconsistent [NuGet.org Bug]: download counts are inconsistent between Gallery and Search service Apr 23, 2024
@joelverhagen
Copy link
Member

joelverhagen commented Apr 23, 2024

If you independently check download counts on the search API vs. the gallery, you will often see a different number. This is by design because there is no shared, live cache that gallery and search services depend on (and we don't want the headache of the SPOF).

But the problem related to rendering in the gallery, for example search results show in gallery vs. the package details page could be resolved by replacing the search API download count with what the gallery knows via its own cache. This would at least make gallery self-consistent.

A related issue, and more of a bug is #9928 which concerns gallery self-consistency.

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

No branches or pull requests

4 participants