[PR #14903] [MERGED] Fixes #14703: Catch exceptions when rendering dashboard and revert to default #14478

Closed
opened 2025-12-29 23:24:42 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14903
Author: @jeremystretch
Created: 1/23/2024
Status: Merged
Merged: 1/24/2024
Merged by: @jeremystretch

Base: developHead: 14703-invalid-dashboard


📝 Commits (1)

  • d2e6911 Fixes #14703: Catch exceptions when rendering dashboard and revert to default

📊 Changes

2 files changed (+14 additions, -5 deletions)

View changed files

📝 netbox/extras/dashboard/utils.py (+3 -3)
📝 netbox/netbox/views/misc.py (+11 -2)

📄 Description

Fixes: #14703

  • Extend get_default_dashboard() to allow passing a specific dashboard configuration
  • Wrap the call to get_layout() in a try/except and fall back to the (hard-coded) default config

🔄 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/14903 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/23/2024 **Status:** ✅ Merged **Merged:** 1/24/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14703-invalid-dashboard` --- ### 📝 Commits (1) - [`d2e6911`](https://github.com/netbox-community/netbox/commit/d2e6911dd292b04afb315195ad4883911a12be78) Fixes #14703: Catch exceptions when rendering dashboard and revert to default ### 📊 Changes **2 files changed** (+14 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/dashboard/utils.py` (+3 -3) 📝 `netbox/netbox/views/misc.py` (+11 -2) </details> ### 📄 Description ### Fixes: #14703 - Extend `get_default_dashboard()` to allow passing a specific dashboard configuration - Wrap the call to `get_layout()` in a `try`/`except` and fall back to the (hard-coded) default config --- <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-29 23:24:42 +01:00
adam closed this issue 2025-12-29 23:24:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14478