-
Notifications
You must be signed in to change notification settings - Fork 643
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
Refactored PackageService code for use by Search-by-TFM #9261
Conversation
@@ -0,0 +1,113 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs the .NET Foundation header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this in now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only thought is more of a discussion piece--the new class is named a service but doesn't really follow the DI service pattern that we generally use in gallery--it's a static type and not added to the DI container. So, possibly being pedantic, but I'd be more inclined to name this a "helper" rather than a "service" in this context.
6de495f
Addresses https://github.com/NuGet/Engineering/issues/4577
We need to reuse some asset framework logic from PackageService in NuGet.Jobs' Catalog2AzureSearch for Search-by-TFM, and moving this logic to NuGetGallery.Core would allow us to reuse this code with minimal changes.
This change:
All previous tests passed after this change.