[PR #12997] [MERGED] Fixes syntax error on reports #14094

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12997
Author: @abhi1693
Created: 6/25/2023
Status: Merged
Merged: 6/29/2023
Merged by: @jeremystretch

Base: developHead: fix/12842-faulty-reports


📝 Commits (2)

📊 Changes

2 files changed (+71 additions, -62 deletions)

View changed files

📝 netbox/extras/models/reports.py (+5 -2)
📝 netbox/templates/extras/report_list.html (+66 -60)

📄 Description

Fixes: #12842

I could not figure how to also display the exception on the UI, however this now solves the blocker when the report was unable to load either due to ImportError or SyntaxError. A user can delete the report and upload the fixed version.

image

To ease with the issue, I have added a logger when the exception is caught.


🔄 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/12997 **Author:** [@abhi1693](https://github.com/abhi1693) **Created:** 6/25/2023 **Status:** ✅ Merged **Merged:** 6/29/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix/12842-faulty-reports` --- ### 📝 Commits (2) - [`9b93d1b`](https://github.com/netbox-community/netbox/commit/9b93d1bd5ace40c614954e4e4d7a8658feee2d96) fixes syntax error on reports #12842 - [`a20931a`](https://github.com/netbox-community/netbox/commit/a20931a014a5875874f233cc60de67a6c0cb8317) remove the extra filter #12842 ### 📊 Changes **2 files changed** (+71 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/models/reports.py` (+5 -2) 📝 `netbox/templates/extras/report_list.html` (+66 -60) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #12842 <!-- Please include a summary of the proposed changes below. --> I could not figure how to also display the exception on the UI, however this now solves the blocker when the report was unable to load either due to ImportError or SyntaxError. A user can delete the report and upload the fixed version. ![image](https://github.com/netbox-community/netbox/assets/5083532/11f62915-5cdd-4165-8cef-2eeed5004791) To ease with the issue, I have added a logger when the exception is caught. --- <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:22:27 +01:00
adam closed this issue 2025-12-29 23:22:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14094