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

[nonGallery] Fix break in githubvulnerabilities2db dependency injection #8516

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

drewgillies
Copy link
Contributor

@drewgillies drewgillies commented Apr 9, 2021

Address: #8515

Dependency injection was broken by the inclusion of the feature flag service in the package service constructor. Added a fake type for this and moved it and an additional fake into a fakes directory.

[this surfaced in BCDR analysis]

using System.Web;
using NuGetGallery;

namespace GitHubVulnerabilities2Db.Fakes
Copy link
Member

Choose a reason for hiding this comment

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

Consider putting these fake implementations in one of the shared projects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed offline. Will come back to that thought later if we see the need.

@drewgillies drewgillies merged commit dab79bb into dev Apr 13, 2021
@drewgillies drewgillies deleted the dg-fix-ghvulnerabilities2db-di branch April 13, 2021 04:02
@agr agr mentioned this pull request Apr 17, 2021
14 tasks
@drewgillies drewgillies changed the title Fix break in githubvulnerabilities2db dependency injection [nonGallery] Fix break in githubvulnerabilities2db dependency injection Apr 20, 2021
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.

4 participants