You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecation and vulnerability filters on Installed tab #9660
Reacted by Tudor Turcu, Erik Ejlskov Jensen, astrowalker, tearvisus, Fernando Aguilar, John Zabroski, Julien Nigay, cremor, Joel Verhagen, Frulfump and 1 more
I do not have any deprecated packages listed under the Installed tab, despite a yellow warning triangle saying so. Initially, I thought I had gone mad and/or hadn't dranken enough caffeine this morning to see the tiny yellow warning triangle in a list of ~100 packages. But then I meticulously scrolled through every package and saw nothing.
Even more frustrating is that the VS Output window for Package Manager does not mention this. Nor does running dotnet.exe restore --verbosity diagnostic > out.txt; cat out.txt | select-string deprecated warn me that I am restoring a solution with deprecated packages.
I also don't see anything in the VS Error List for NUXXXX for an warning code related to deprecated packages. When I search MS Docs for the specific error code so that I can flag the warning as an error, I can't seem to find such a warning code - so how does nuget know that its a warning icon to display?
I have a suspicion that this is flagging NU1605 as a "deprecated package" warning, based on reading the output of dotnet.exe restore --verbosity diagnostic.
I went through all the Nuget Errors and Warnings this morning, and deprecated package doesn't seem to be there.
Found it - the yellow warning icon is on the far right of the package, next to the version. It is not in the place I would have expected. I was looking at the status for the package, which is on the left.
@anangaur I think, when your team works on this issue, it would be great if they handle the scenario where the package is both the latest stable and also deprecated. See this scenario with package FluentValidation.Mvc5 as a test case:
@jzabroski consider giving the issue an upvote! My understanding is the deprecation icon is located there to be next to the Installed Version #, since deprecation is per version.
Respectfully, that doesn't match my expectations or seems inconsistent with the rest of the UI, since the blue and green icons also communicate version statuses and are next to the package icon. This was a poor design choice that should be refactored rather than defended.
Hi @jzabroski - so it sounds there are 3 issues you have with the NuGet deprecation experience:
In a list of packages in the Installed tab, it's difficult to find which packages are deprecated because you can't filter for them.
The existing deprecation indicator on the package list item isn't in an intuitive or noticeable place for you. You would prefer that it be overlayed on the bottom right corner of the icon like the "latest version installed" and "update available" icons are.
You would like to have deprecation warnings when restoring packages.
For number 1 - Would it be help if deprecated and vulnerable packages are automatically moved to the top of the Installed tab package list?
For number 2 - The reason we have separate indicators is because it may be valuable to know that an update is available when a package version is deprecated, however I completely understand your point that deprecated feels like a package status similar to the ones for the icon overlays. Is this what your ideal experience would look like (ignoring the roughness of the mockup):
For number 3 - I believe we've considered this before by moved away from it due to potential performance implications. @nkolev92 can correct me if I'm wrong.
Yes. I also don't know that adding filters to the UI improves usability since it creates modes (filtered vs no filters applied) which often causes weird behavior. We already have this problem today when you select private feeds vs nuget.org feed vs all feeds.
Almost. I think that the warning should be top right instead of bottom right. In this way you can communicate multiple things.
Perhaps, but static graphs should also be verifiable to not contain out of date dependencies. There is likely a middle ground here we aren't thinking of.
changed the title [-]Need for deprecation filter on Installed tab[/-][+]Need for deprecation and vulnerabilty filter on Installed tab[/+]on Apr 8, 2022
changed the title [-]Need for deprecation and vulnerabilty filter on Installed tab[/-][+]Need for deprecation and vulnerability filter on Installed tab[/+]on Apr 8, 2022
changed the title [-]Need for deprecation and vulnerability filter on Installed tab[/-][+]Deprecation and vulnerability filters on Installed tab[/+]on Aug 17, 2023
Activity
anangaur commentedon Jun 9, 2020
Assigned to @drewgillies as we will have similar issues for vulnerability feature
nkolev92 commentedon Jun 12, 2020
fyi @donnie-msft @chgill-MSFT
donnie-msft commentedon Jun 12, 2020
Filtering is pretty minimal... and we've recently discussed this with the nuget.org changes that are going on.
We also don't show deprecation in the details pane on solution package manager UI: #8568
jzabroski commentedon Sep 16, 2021
Found this issue via https://developercommunity.visualstudio.com/t/nuget-package-manager-ui-reports-you-have-1-deprec/957820?viewtype=solutions and through https://developercommunity.visualstudio.com/t/nuget-package-manager-doesnt-indicate-that-a-packa/539006
I do not have any deprecated packages listed under the Installed tab, despite a yellow warning triangle saying so. Initially, I thought I had gone mad and/or hadn't dranken enough caffeine this morning to see the tiny yellow warning triangle in a list of ~100 packages. But then I meticulously scrolled through every package and saw nothing.
Even more frustrating is that the VS Output window for Package Manager does not mention this. Nor does running
dotnet.exe restore --verbosity diagnostic > out.txt; cat out.txt | select-string deprecatedwarn me that I am restoring a solution with deprecated packages.I also don't see anything in the VS Error List for NUXXXX for an warning code related to deprecated packages. When I search MS Docs for the specific error code so that I can flag the warning as an error, I can't seem to find such a warning code - so how does nuget know that its a warning icon to display?
jzabroski commentedon Sep 16, 2021
I have a suspicion that this is flagging NU1605 as a "deprecated package" warning, based on reading the output of
dotnet.exe restore --verbosity diagnostic.I went through all the Nuget Errors and Warnings this morning, and deprecated package doesn't seem to be there.
jzabroski commentedon Sep 16, 2021
Found it - the yellow warning icon is on the far right of the package, next to the version. It is not in the place I would have expected. I was looking at the status for the package, which is on the left.
@anangaur I think, when your team works on this issue, it would be great if they handle the scenario where the package is both the latest stable and also deprecated. See this scenario with package FluentValidation.Mvc5 as a test case:
anangaur commentedon Sep 16, 2021
/cc: @chgill-MSFT
donnie-msft commentedon Sep 16, 2021
@jzabroski consider giving the issue an upvote! My understanding is the deprecation icon is located there to be next to the Installed Version #, since deprecation is per version.
jzabroski commentedon Sep 17, 2021
Respectfully, that doesn't match my expectations or seems inconsistent with the rest of the UI, since the blue and green icons also communicate version statuses and are next to the package icon. This was a poor design choice that should be refactored rather than defended.
nkolev92 commentedon Sep 20, 2021
Regarding the NU1605 comment, deprecation is not surfaced in restore. The 2 are orthogonal.
chrisraygill commentedon Sep 20, 2021
Hi @jzabroski - so it sounds there are 3 issues you have with the NuGet deprecation experience:
For number 1 - Would it be help if deprecated and vulnerable packages are automatically moved to the top of the Installed tab package list?
For number 2 - The reason we have separate indicators is because it may be valuable to know that an update is available when a package version is deprecated, however I completely understand your point that deprecated feels like a package status similar to the ones for the icon overlays. Is this what your ideal experience would look like (ignoring the roughness of the mockup):
For number 3 - I believe we've considered this before by moved away from it due to potential performance implications. @nkolev92 can correct me if I'm wrong.
jzabroski commentedon Sep 21, 2021
[-]Need for deprecation filter on Installed tab[/-][+]Need for deprecation and vulnerabilty filter on Installed tab[/+][-]Need for deprecation and vulnerabilty filter on Installed tab[/-][+]Need for deprecation and vulnerability filter on Installed tab[/+]JonDouglas commentedon Jul 7, 2023
This will be addressed by #12704
[-]Need for deprecation and vulnerability filter on Installed tab[/-][+]Deprecation and vulnerability filters on Installed tab[/+]nkolev92 commentedon Oct 20, 2023
#12867 is a sub issue for this as well