Skip to content

Deprecation and vulnerability filters on Installed tab #9660

Open

Description

@anangaur

Activity

  1. anangaur commented on Jun 9, 2020

    @anangaur
    Author

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

  2. nkolev92 commented on Jun 12, 2020

    @nkolev92
    Member

    fyi @donnie-msft @chgill-MSFT

  3. donnie-msft commented on Jun 12, 2020

    @donnie-msft
    Contributor

    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

  4. jzabroski commented on Sep 16, 2021

    @jzabroski

    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?

  5. jzabroski commented on Sep 16, 2021

    @jzabroski

    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.

  6. jzabroski commented on Sep 16, 2021

    @jzabroski

    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>
  7. anangaur commented on Sep 16, 2021

    @anangaur
    Author

    /cc: @chgill-MSFT

  8. donnie-msft commented on Sep 16, 2021

    @donnie-msft
    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.

  9. jzabroski commented on Sep 17, 2021

    @jzabroski

    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.

  10. nkolev92 commented on Sep 20, 2021

    @nkolev92
    Member

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

  11. chrisraygill commented on Sep 20, 2021

    @chrisraygill
    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.

  12. jzabroski commented on Sep 21, 2021

    @jzabroski
    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.
  13. changed the title [-]Need for deprecation filter on Installed tab[/-] [+]Need for deprecation and vulnerabilty filter on Installed tab[/+] on Apr 8, 2022
  14. 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
  15. self-assigned this
    on May 1, 2023
  16. JonDouglas commented on Jul 7, 2023

    @JonDouglas
    Contributor

    This will be addressed by #12704

  17. changed the title [-]Need for deprecation and vulnerability filter on Installed tab[/-] [+]Deprecation and vulnerability filters on Installed tab[/+] on Aug 17, 2023
  18. nkolev92 commented on Oct 20, 2023

    @nkolev92
    Member

    #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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions