-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for getting stats by author(s) and owner(s) #368
Conversation
We had a semi-complete approach, and it only supported on author (and no owners). Generalize the endpoints in: * `/nuget/id`: gets count of nuget ids * `/nuget/dl`: gets download counts for packages Both can receive: * No querystring: return the values for the current sponsorable host * `?author=`: filter by author(s). Can receive more than one value. * `?owner=`: filter by repo owner. Can receive more than one value. The multi-value querystring is useful when fetching stats for multiple authors (i.e. more than one team member), or for orgs that own repos across more than one GH org (i.e. MIcrosoft, dotnet, aspnet, Azure).
🧪 Details on Microsoft Windows 10.0.20348✅ Devlooped.Tests.SponsorLinkTests.TryRead from dotnet-retest v0.6.3 on .NET 8.0.8 with 💜 |
🧪 Details on macOS Unix 14.6.1✅ Devlooped.Tests.SponsorLinkTests.TryRead from dotnet-retest v0.6.3 on .NET 8.0.8 with 💜 |
🧪 Details on Ubuntu 22.04.5 LTS✅ Devlooped.Tests.SponsorLinkTests.TryRead from dotnet-retest v0.6.3 on .NET 8.0.8 with 💜 |
We had a semi-complete approach, and it only supported on author (and no owners).
Generalize the endpoints in:
/nuget/id
: gets count of nuget ids/nuget/dl
: gets download counts for packagesBoth can receive:
?author=
: filter by author(s). Can receive more than one value.?owner=
: filter by repo owner. Can receive more than one value.The multi-value querystring is useful when fetching stats for multiple authors (i.e. more than one team member), or for orgs that own repos across more than one GH org (i.e. MIcrosoft, dotnet, aspnet, Azure).