umbraco / Umbraco.Marketplace.Issues

Public issue tracker for Umbraco Marketplace
2 stars 0 forks source link

Make PackagesByAuthor dynamic #15

Closed callumbwhyte closed 1 year ago

callumbwhyte commented 1 year ago

It's a bit of a pain having to maintain a list of PackagesByAuthor in the umbraco-marketplace.json file.

It would be awesome if these could be dynamically picked up based on the author.

AndyButland commented 1 year ago

Yes, am thinking this could be possible. Using the Authors tag in the NuGet package is potentially open to abuse... e.g. I could call myself Callum and claim credit for packages I didn't build!

But using the package owner might be possible. Unfortunately that's not exposed from the NuGet API, but we could get it from the NuGet gallery page content. Then if we had that in our database, we could find all the other packages that also have that same owner.

Could be multiple owners? But perhaps that's also OK... we'd show "other packages by any of the authors of this one".

callumbwhyte commented 1 year ago

In the case of multiple owners, perhaps take the first or have a way to specify the user from within umbraco-marketplace.json as a fallback? A Username field within AuthorDetails perhaps?

AndyButland commented 1 year ago

With the latest release we've add a means of automating this information. If it's provided in umbraco-marketplace.json, the packages indicated there will be used.

But if not provided, or it was provided and is removed, we'll instead automate this based on the package owner(s). The "packages by this author" list will display all packages owned by at least one of the current package owners.