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

Fixes: #18353 - Don't cache CACHE_KEY_CATALOG_ERROR if ISOLATED_DEPLOYMENT is True #18371

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

bctiemann
Copy link
Contributor

Fixes: #18353

Skips caching the result of an errored call to get_catalog_plugins if ISOLATED_DEPLOYMENT == True. This call to the catalog API already has a short-circuit which returns {} and skips making the API call if ISOLATED_DEPLOYMENT is True; this change makes it so that the error popup does not appear and the errored result is not cached so that if the setting is turned off, the API call attempt will occur again right away.

@jeremystretch jeremystretch merged commit 32422d1 into main Jan 9, 2025
6 checks passed
@jeremystretch jeremystretch deleted the 18353-dont-cache-plugin-catalog-error-isolated branch January 9, 2025 20:21
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.

plugin list should not try to load from api.netbox.oss.netboxlabs.com when ISOLATED_DEPLOYMENT = True
2 participants