Skip to content

PM UI: fix action generation during install preview - #3645

Merged
dtivel merged 1 commit into
dev-feature-OE.PMUIfrom
dev-dtivel-oe-pmui-fix-action
Sep 8, 2020
Merged

dtivel merged 1 commit into
dev-feature-OE.PMUIfrom
dev-dtivel-oe-pmui-fix-action

Conversation

@dtivel

@dtivel dtivel commented Sep 8, 2020 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#9994
Regression: Yes

  • Last working version: dev branch
  • How are we preventing it in future: add tests

Fix

Details: use the correct package identity when creating actions.

Also, this PR fixes a string.Format(...) usage bug and removes some dead code.

Testing/Validation

Tests Added: Yes

@dtivel
dtivel requested a review from a team as a code owner September 8, 2020 13:32
CreateProjectActionId(),
projectId,
packageIdentity,
resolvedAction.Action.PackageIdentity,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the primary fix. The test for it is here.

{
throw new ArgumentException(
string.Format(Strings.ProjectWithIdNotFound, CultureInfo.CurrentCulture, projectId),
string.Format(CultureInfo.CurrentCulture, Strings.ProjectWithIdNotFound, projectId),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a secondary fix. The test for it is here.

@dtivel
dtivel merged commit 1760680 into dev-feature-OE.PMUI Sep 8, 2020
@dtivel
dtivel deleted the dev-dtivel-oe-pmui-fix-action branch September 8, 2020 17:15
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.

3 participants