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

fix: do not cache unsupported origins in config #571

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Nov 6, 2021

@kitsonk kitsonk requested a review from lucacasonato November 6, 2021 23:13
@CLAassistant
Copy link

CLAassistant commented Nov 6, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

I feel like we might want to save the "No" when the user explicitly opts out by pressing "No". If they cancel though, we should do nothing. That way we won't prompt the user again about a specific registry once we eventually get around to re-fetching the manifest every 24 hours (the old extension did this).

@kitsonk
Copy link
Contributor Author

kitsonk commented Nov 7, 2021

@lucacasonato you are right... good catch, I will amend.

@kitsonk
Copy link
Contributor Author

kitsonk commented Nov 9, 2021

Actually that is what it does. If you say "No" (specifically not "Enable") it will set that origin as false instead of true, so it follows the behaviour you describe.

And denoland/deno#9931 should address the reloading of not found origins daily.

Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

Must have misread then. LGTM!

@kitsonk kitsonk merged commit 4e1036c into denoland:main Nov 9, 2021
@kitsonk kitsonk deleted the fix_no_cache_registry branch November 9, 2021 10:54
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