Skip to content

Remote installed packages in PM UI in VSOe - #3485

Merged
sbanni merged 12 commits into
dev-feature-OE.PMUIfrom
dev-scoban-installedpackagesinternal
Aug 11, 2020
Merged

sbanni merged 12 commits into
dev-feature-OE.PMUIfrom
dev-scoban-installedpackagesinternal

Conversation

@sbanni

@sbanni sbanni commented Jun 29, 2020

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#9610
Regression: No

Fix

Details: Create remoting infrastructure for getting installed packages in the package manager UI in a Visual Studio Online Environment

Testing/Validation

Tests Added: No
Reason for not adding tests:
Validation: Tested locally and against a remote machine

@sbanni
sbanni force-pushed the dev-feature-OE.PMUI branch from 75abb88 to 0a65e12 Compare July 2, 2020 18:22
@sbanni
sbanni force-pushed the dev-scoban-installedpackagesinternal branch from 0202319 to f3f9d0c Compare July 2, 2020 18:34
@sbanni sbanni self-assigned this Jul 2, 2020
@sbanni
sbanni marked this pull request as ready for review July 2, 2020 21:17
@sbanni
sbanni force-pushed the dev-feature-OE.PMUI branch from 0a65e12 to 4897048 Compare July 14, 2020 22:11

@rrelyea rrelyea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🕐

@sbanni
sbanni force-pushed the dev-scoban-installedpackagesinternal branch from f3f9d0c to 58f02b4 Compare July 20, 2020 20:23
rrelyea
rrelyea previously approved these changes Jul 20, 2020

@rrelyea rrelyea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@sbanni
sbanni force-pushed the dev-scoban-installedpackagesinternal branch from e395418 to 4289c62 Compare August 5, 2020 22:45

@dtivel dtivel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks pretty fantastic, @sbanni. Thanks for the hard work.

var remoteBroker = await BrokeredServicesUtilities.GetRemoteServiceBrokerAsync();
using (var nugetProjectManagerService = await remoteBroker.GetProxyAsync<INuGetProjectManagerService>(NuGetServices.ProjectManagerService, cancellationToken: cancellationToken))
{
Assumes.NotNull(nugetProjectManagerService);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just curious: what is the pattern behind null-checking nugetProjectManagerService but not remoteBroker?

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.

GetRemoteServiceBrokerAsync has null checks in it and will never return null as it will end with calling 'new'.

@rrelyea
rrelyea dismissed stale reviews from themself August 6, 2020 18:17

revoking review

@rrelyea rrelyea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

/// <summary>
/// Contains information about a NuGetProject
/// </summary>
public interface IProjectContextInfo

@dtivel dtivel Aug 11, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Correct me if I'm mistaken, but it seems that by putting this type in this assembly, this assembly will be loaded in VS scenarios.

@nkolev92, can you please clarify what you mean by "[s]tandard VS scenarios" in #3330? When is it acceptable and unacceptable to load NuGet.VisualStudio.Internal.Contracts.dll?

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.

Yes this will be loaded in VS scenarios. Why is this not acceptable?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think I said this is unacceptable.

I seek to understand when it is acceptable and when it is not acceptable.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It will cause an RPS regression.

@sbanni
sbanni marked this pull request as ready for review August 11, 2020 17:43
@sbanni
sbanni merged this pull request into dev-feature-OE.PMUI Aug 11, 2020
@sbanni
sbanni deleted the dev-scoban-installedpackagesinternal branch August 11, 2020 19:46
rrelyea pushed a commit that referenced this pull request Aug 12, 2020
* Abstract NuGetProject to ProjectContextInfo in NuGet.Client UI
* Enable remoting of the Installed/Update tab in PM UI
dtivel pushed a commit that referenced this pull request Sep 3, 2020
* Abstract NuGetProject to ProjectContextInfo in NuGet.Client UI
* Enable remoting of the Installed/Update tab in PM UI
dtivel pushed a commit that referenced this pull request Sep 4, 2020
* Abstract NuGetProject to ProjectContextInfo in NuGet.Client UI
* Enable remoting of the Installed/Update tab in PM UI
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.

7 participants