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

Local feeds no longer show a 0 Download Count #4273

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

donnie-msft
Copy link
Contributor

@donnie-msft donnie-msft commented Sep 20, 2021

Bug

Fixes: NuGet/Home#11012

Regression? Last working version:

Description

Local feeds have defaulted the Download Count to 0. However, this causes hits to the Global Packages Folder to erroneously display a 0, and an unnecessary 0 to be shown when a Local package source is selected.

This PR introduces a new bug that I believe is lower impact and less misleading than the current behavior: when a V2 feed is used, and in the details pane, the installed version is selected in the Versions dropdown, the Download Count will be hidden. (see below).

Before/After setting count to null for local feeds.

image

Before / After with nuget.org source

image

Before / after with a V2 feed & same version selected in details (new bug w/ this PR)

image

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added - Also included manual test screenshots above.
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

Copy link
Contributor

@jebriede jebriede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think this is the appropriate behavior for when the download count is undefined, it should be null which this default does. Just one comment about updating the code comment.

@donnie-msft donnie-msft marked this pull request as ready for review September 20, 2021 22:38
@donnie-msft donnie-msft requested a review from a team as a code owner September 20, 2021 22:38
@donnie-msft
Copy link
Contributor Author

@erdembayar please review if you can. I think you may have the most recent experience in this area.

@donnie-msft donnie-msft merged commit f71876e into dev Sep 21, 2021
@donnie-msft donnie-msft deleted the dev-donnie-msft-nullDownloadCount branch September 21, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: PM UI shows 0 download count when selected package is already installed
4 participants