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

Add Symbols Feature flag #6207

Merged
merged 1 commit into from
Jul 25, 2018
Merged

Add Symbols Feature flag #6207

merged 1 commit into from
Jul 25, 2018

Conversation

shishirx34
Copy link
Contributor

Addresses #6169

Also, I have reduced the reload duration to 5 minutes for configuration, it was 1 hour. This feature flag will be used in subsequent PRs to allow/prevent symbols upload until we go live with this feature.

@@ -10,7 +10,7 @@ namespace NuGetGallery
{
public class ContentObjectService : IContentObjectService
{
private const int RefreshIntervalHours = 1;
private const int RefreshIntervalMinutes = 5;

Copy link
Contributor

Choose a reason for hiding this comment

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

Why changing this ? What it would be the impact?

Copy link
Contributor

Choose a reason for hiding this comment

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

These content configuration objects will refresh more often.
If we change configuration, it will take less time for us to see it change.
We've determined that 1 hour has been too long, and we would like to increase the frequency to every 5 minutes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

An hour was way too long for any config change to take effect. We've been wanting to reduce this for a while. I consulted with @scottbommarito and decided 5 mins seems appropriate. There shouldn't be any perf impact by this change.


namespace NuGetGallery.Services
{
public sealed class SymbolsConfiguration : ISymbolsConfiguration
Copy link
Contributor

Choose a reason for hiding this comment

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

This is basically a clone of CertificatesConfiguration, right?

IMO we should write a base class that both can use so we don't have to keep rewriting this.
Bonus points if the base class is resusable by ILoginDiscontinuationConfiguration as well.
I don't think it would take very long.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I agree, however, we are going to get rid of CertificatesConfiguration and I would rather not spend time on not strictly required refactoring right now. I have opened an issue to track this.

Copy link
Contributor

@cristinamanum cristinamanum left a comment

Choose a reason for hiding this comment

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

One comment regarding the content refresh interval time.

@shishirx34 shishirx34 merged commit 7df2d84 into dev Jul 25, 2018
@shishirx34 shishirx34 deleted the symbols-feature-flag branch September 10, 2018 20:13
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