Skip to content
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

Deprecation and vulnerability filters on Installed tab #9660

Open
anangaur opened this issue Jun 9, 2020 · 14 comments
Open

Deprecation and vulnerability filters on Installed tab #9660

anangaur opened this issue Jun 9, 2020 · 14 comments

Comments

@anangaur
Copy link
Member

anangaur commented Jun 9, 2020

From: https://developercommunity.visualstudio.com/comments/1068668/view.html
image

@anangaur
Copy link
Member Author

anangaur commented Jun 9, 2020

Assigned to @drewgillies as we will have similar issues for vulnerability feature

@nkolev92
Copy link
Member

nkolev92 commented Jun 12, 2020

fyi @donnie-msft @chgill-MSFT

@donnie-msft
Copy link
Contributor

donnie-msft commented 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
Copy link

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 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?

@jzabroski
Copy link

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
Copy link

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:

image

  <ItemGroup>
    <PackageReference Include="FluentValidation.Mvc5" Version="8.6.1" />
  </ItemGroup>

@anangaur
Copy link
Member Author

/cc: @chgill-MSFT

@donnie-msft
Copy link
Contributor

@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
Copy link

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
Copy link
Member

Regarding the NU1605 comment, deprecation is not surfaced in restore. The 2 are orthogonal.

@chrisraygill
Copy link
Contributor

Hi @jzabroski - so it sounds there are 3 issues you have with the NuGet deprecation experience:

  1. 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.
  2. 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.
  3. 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):

image

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
Copy link

  1. 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.
  2. Almost. I think that the warning should be top right instead of bottom right. In this way you can communicate multiple things.
  3. 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.

@dominoFire dominoFire changed the title Need for deprecation filter on Installed tab Need for deprecation and vulnerabilty filter on Installed tab Apr 8, 2022
@dominoFire dominoFire changed the title Need for deprecation and vulnerabilty filter on Installed tab Need for deprecation and vulnerability filter on Installed tab Apr 8, 2022
@martinrrm martinrrm self-assigned this May 1, 2023
@JonDouglas
Copy link
Contributor

This will be addressed by #12704

@nkolev92 nkolev92 changed the title Need for deprecation and vulnerability filter on Installed tab Deprecation and vulnerability filters on Installed tab Aug 17, 2023
@nkolev92
Copy link
Member

nkolev92 commented Oct 20, 2023

#12867 is a sub issue for this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants