Skip to content

Conversation

@dominoFire
Copy link
Contributor

@dominoFire dominoFire commented Sep 27, 2022

Bug

Fixes: NuGet/Home#12102

Regression? Last working version: Yes, 17.3

Description

  1. Adds a special case to GetInstalledAndTransitivePackagesAsync (gitpa) API to calculate transitive origins:
    • If we have installed packages, transitive packages and no transitive origins data, and the gitpa API is requesting transitive origins, then, the API will calculate transitive origins data and cache the results
  2. Relaxes a condition to match package-typed dependencies from PackageSpec objects. This way, we are ensuring we will show installed packages found in assets file.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added: 6 new unit tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A: No product changes.

Validation

Animations provided below to compare the effects of this PR.

Before

The bug appears during package installation in PM UI: transitive packages are not shown after installing a package with transitive dependencies.

before_fix

After

Transitive packages appear after installing a package in PM UI.

after_fix

@dominoFire dominoFire force-pushed the dev-dominofire-fixcache branch from 526de01 to 5c4cac3 Compare September 28, 2022 06:45
@dominoFire dominoFire marked this pull request as ready for review September 28, 2022 07:32
@dominoFire dominoFire requested a review from a team as a code owner September 28, 2022 07:32
Copy link
Contributor

@erdembayar erdembayar left a comment

Choose a reason for hiding this comment

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

LGTM, just 2-3 comments.

@dominoFire dominoFire requested review from a team and erdembayar September 28, 2022 21:24
@dominoFire dominoFire requested review from a team and erdembayar September 28, 2022 22:29
erdembayar
erdembayar previously approved these changes Sep 28, 2022
nkolev92
nkolev92 previously approved these changes Sep 28, 2022
Fernando Aguilar and others added 8 commits September 28, 2022 22:25
Tests: Added 1 test

Tests: Fixed test
Tests: Added more tests

Tests: Reacommodated test

Tests: Reverted test to ease reviewing

Tests: Min-changeset
…s/PackageReferenceProject.cs

Co-authored-by: Erick Yondon <[email protected]>
@dominoFire dominoFire dismissed stale reviews from nkolev92 and erdembayar via c38583a September 29, 2022 05:25
@dominoFire dominoFire force-pushed the dev-dominofire-fixcache branch from 925f7df to c38583a Compare September 29, 2022 05:25
@dominoFire dominoFire requested review from a team, erdembayar and nkolev92 September 29, 2022 06:47
@dominoFire dominoFire merged commit 1a08294 into dev Sep 29, 2022
@dominoFire dominoFire deleted the dev-dominofire-fixcache branch September 29, 2022 17:13
AdmiringWorm added a commit to chocolatey/NuGet.Client that referenced this pull request Dec 19, 2022
Insert 6.4.0-rc.123 into rel/d17.4 on 11/07/2022 23:47:12

* tag '6.4.0.123': (60 commits)
  fix a logic error that caused AbandonedMutexException while executing migrations (release-6.4.x) (NuGet#4895)
  unblock source build failing due to fatal: transport 'file' not allowed error (NuGet#4867) (NuGet#4874)
  Signing:  update to August 2022 CTL (NuGet#4791) (NuGet#4850)
  Merged PR 422933: Prefer BCL Directory create API over helper class (7.0.1xx-rc2)
  Fix empty combobox when package is not present in project file (NuGet#4844) (NuGet#4848)
  Fix component detection alert for microsoft.owin package (NuGet#4841) (NuGet#4845)
  Make release label RC, move to escrow mode
  Adds special case to include transitive origins in GetInstalledAndTransitivePackagesAsync API (NuGet#4824)
  Add longPathAware manifest to NuGet.Build.Tasks.Console (NuGet#4830)
  VsPackageInstallerServices should not post ProjectNotNominatedException faults (NuGet#4814)
  Skip test GetOrCreateAsync_WithUnhandledExceptionInPlugin_Throws (NuGet#4831)
  Improve OptProf pipeline job run names (NuGet#4825)
  Increase HttpClientHandler.MaxConnectionsPerServer to 64 to improve PM UI performance in Visual Studio (NuGet#4798)
  Suppress CA2213 warnings to unblock dev branch (NuGet#4823)
  Ensure IsVsOfflineFeed is calculated correctly on 64-bit machines (NuGet#4817)
  Add better handling of AggregateExceptions in static graph-based restore (NuGet#4809)
  Add Component Detection task into each pipeline (NuGet#4813)
  Localizes nuget.exe with default, embedded resource assembly lookup (NuGet#4773)
  Removes BrowseObjectBase class in NuGet Solution Explorer (NuGet#4807)
  Improve TryCreateContext  (NuGet#4762)
  ...
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]: The transitive package doesn’t show in “Installed” tab until reopening the solution

4 participants