Repository navigation
Conversation
sbanni
approved these changes
Sep 10, 2020
rrelyea
approved these changes
Sep 10, 2020
Contributor
|
I'm assuming this will work with most PMC operations? Install, Uninstall, Update? |
Contributor
Author
|
It will work with any PMC operation that calls |
dtivel
deleted the
dev-dtivel-oe-pmui-propagate-actionsexecuted-event
branch
September 10, 2020 16:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#10012
Regression: Yes
Fix
Details: Executing the
Update-Packagecommand (among others) in Package Manager Console (PMC) raises theISolutionManager.ActionsExecutedevent by callingISolutionManager.OnActionsExecuted(...). With recent remoting work, this code path isn't used any more by PM UI (like when a package is installed/updated/uninstalled in PM UI). Instead, a similar actions executed event is raised by callingINuGetUIContext.RaiseProjectActionsExecuted(...). Until PMC is made remoteable,NuGetUIContextwill need to listen for theISolutionManager.ActionsExecutedevent and propagate the event asINuGetUIContext.ProjectActionsExecuted. This change will not result inINuGetUIContext.ProjectActionsExecutedfiring twice for one operation.Because the lowest common parameter type for both of these events is a simple string (representing the project ID of the affected project), the new event (
INuGetUIContext.ProjectActionsExecuted) has been updated to pass project ID's instead of executed actions.Testing/Validation
Tests Added: Yes