[PR #18371] [MERGED] Fixes: #18353 - Don't cache CACHE_KEY_CATALOG_ERROR if ISOLATED_DEPLOYMENT is True #15336

Closed
opened 2025-12-30 00:21:21 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18371
Author: @bctiemann
Created: 1/9/2025
Status: Merged
Merged: 1/9/2025
Merged by: @jeremystretch

Base: mainHead: 18353-dont-cache-plugin-catalog-error-isolated


📝 Commits (1)

  • 35a1f3c Don't cache CACHE_KEY_CATALOG_ERROR if ISOLATED_DEPLOYMENT is True

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 netbox/core/views.py (+1 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/18371 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 1/9/2025 **Status:** ✅ Merged **Merged:** 1/9/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `18353-dont-cache-plugin-catalog-error-isolated` --- ### 📝 Commits (1) - [`35a1f3c`](https://github.com/netbox-community/netbox/commit/35a1f3c168424693b39d329c2f7b4900c6e510f8) Don't cache CACHE_KEY_CATALOG_ERROR if ISOLATED_DEPLOYMENT is True ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/views.py` (+1 -1) </details> ### 📄 Description ### 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:21:21 +01:00
adam closed this issue 2025-12-30 00:21:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15336