Repository navigation
Conversation
|
|
||
| foreach (var reason in DeprecationMetadata.Reasons) | ||
| { | ||
| if (string.Equals(reason, "CriticalBugs", StringComparison.OrdinalIgnoreCase)) |
There was a problem hiding this comment.
Looks like these are defined in a central location, could we make that public and reference them here?
There was a problem hiding this comment.
Or maybe add it to the new model you created?
There was a problem hiding this comment.
I added this to the model I created, but it is on Protocol project, is that a concern? I had to rename the enum too so naming is not a problem.
If I make it public it adds this to the file using static NuGet.PackageManagement.UI.DetailControlModel; which looks weird
|
|
||
| #nullable enable | ||
|
|
||
| namespace NuGet.Protocol.Model |
There was a problem hiding this comment.
Was this intended to be in Protocol? If so, can you share more about what changes you'll be making to Protocol?
There was a problem hiding this comment.
We have a similar enum for vulnerabilities, PackageVulnerabilitySeverity, I believe this is a good place to have this enum since it's really similar but at the cost of creating new public APIs.
I don't plan any changes to the protocol in this effort, do you believe this shouldn't be here? Should I move this to the UI projects?
There was a problem hiding this comment.
My general thoughts are putting model code into the UI projects makes sense. If it's needed later in Protocol, it will need to be brought over, anyway.
There was a problem hiding this comment.
I think it's unusual to have a type defined in a class but never used in it.
I agree with @donnie-msft, we should move this to the UI project.
There was a problem hiding this comment.
fwiw, the policies are not enabled on the feature branches, but we should still follow that.
This should've been addressed before the PR was merged.
Bug
Fixes:
Description
PR Checklist