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

Restore auto-add co-owner feature #6289

Merged
merged 8 commits into from
Aug 14, 2018
Merged

Restore auto-add co-owner feature #6289

merged 8 commits into from
Aug 14, 2018

Conversation

xavierdecoster
Copy link
Member

And select correct target account for package security policies.

@xavierdecoster
Copy link
Member Author

@joelverhagen @skofman1 this is the commit you may want to zoom into: 8ff0fcb

@@ -395,6 +395,9 @@ protected override void Load(ContainerBuilder builder)

RegisterCookieComplianceService(builder, configuration, diagnosticsService);

builder.RegisterType<MicrosoftTeamSubscription>()
.SingleInstance();
Copy link
Member

Choose a reason for hiding this comment

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

Does this really need to be a singleton? Would prefer if it was a new instance each time unless we are concerned and have measure performance impact.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to instance per lifetime-scope

Copy link
Contributor

@skofman1 skofman1 left a comment

Choose a reason for hiding this comment

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

:shipit:

private Lazy<List<UserSecurityPolicy>> _policies = new Lazy<List<UserSecurityPolicy>>(InitializePoliciesList, isThreadSafe: true);

internal const string MicrosoftUsername = "Microsoft";
internal const string Name = nameof(MicrosoftTeamSubscription);
Copy link
Member

Choose a reason for hiding this comment

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

This should be a const. Refactoring can break behavior here.

Copy link
Member Author

Choose a reason for hiding this comment

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

True. Updated.

@xavierdecoster xavierdecoster merged commit ac9e62d into dev Aug 14, 2018
@xavierdecoster xavierdecoster deleted the dev-issue1419 branch August 14, 2018 19:57
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