[PR #12801] [CLOSED] #12624 and #12609 | Custom scripts and reports local file sync command #14050

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12801
Author: @Omripresent
Created: 6/2/2023
Status: Closed

Base: developHead: develop


📝 Commits (5)

  • f23d7e6 Add support loading module as python package or standalone file
  • 8dce984 Merge branch 'netbox-community:develop' into develop
  • 40cc97d Merge branch 'netbox-community:develop' into develop
  • b6283bf Create sync_managedfiles.py
  • a9081d0 Merge branch 'netbox-community:develop' into develop

📊 Changes

3 files changed (+117 additions, -9 deletions)

View changed files

netbox/extras/management/commands/sync_managedfiles.py (+80 -0)
📝 netbox/extras/scripts.py (+2 -1)
📝 netbox/extras/views.py (+35 -8)

📄 Description

Fixes: #12624 and #12609

Adding a command script to synchronize the ScriptModule and ReportModule models with the unmanaged files under SCRIPTS_ROOT and REPORTS_ROOT.

Also updates the lookup of ScriptModule and ReportModule Django and API views to account for single file and python package variations.


🔄 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/12801 **Author:** [@Omripresent](https://github.com/Omripresent) **Created:** 6/2/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (5) - [`f23d7e6`](https://github.com/netbox-community/netbox/commit/f23d7e6facac899710505ba547a8fd6a360c5dd5) Add support loading module as python package or standalone file - [`8dce984`](https://github.com/netbox-community/netbox/commit/8dce984f2eb93e3a80ec82a0af4135b75c736f86) Merge branch 'netbox-community:develop' into develop - [`40cc97d`](https://github.com/netbox-community/netbox/commit/40cc97dda174908bdf5e5b8e04c35a966c3896b7) Merge branch 'netbox-community:develop' into develop - [`b6283bf`](https://github.com/netbox-community/netbox/commit/b6283bffdde18bd42a35e119a19c8cb167aa9279) Create sync_managedfiles.py - [`a9081d0`](https://github.com/netbox-community/netbox/commit/a9081d0cda89aaa4132dcf39dbaf655610db4ca4) Merge branch 'netbox-community:develop' into develop ### 📊 Changes **3 files changed** (+117 additions, -9 deletions) <details> <summary>View changed files</summary> ➕ `netbox/extras/management/commands/sync_managedfiles.py` (+80 -0) 📝 `netbox/extras/scripts.py` (+2 -1) 📝 `netbox/extras/views.py` (+35 -8) </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: #12624 and #12609 <!-- Please include a summary of the proposed changes below. --> Adding a command script to synchronize the `ScriptModule` and `ReportModule` models with the unmanaged files under `SCRIPTS_ROOT` and `REPORTS_ROOT`. Also updates the lookup of `ScriptModule` and `ReportModule` Django and API views to account for single file and python package variations. --- <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:14 +01:00
adam closed this issue 2025-12-29 23:22:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14050