[PR #18723] [MERGED] Closes #18024: Add URL pattern for scripts to reference them by module.name #15429

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18723
Author: @atownson
Created: 2/24/2025
Status: Merged
Merged: 2/25/2025
Merged by: @jeremystretch

Base: mainHead: issue_18024


📝 Commits (3)

  • dc9d54c Add URL pattern for scripts to reference them by module.name
  • 71fc474 Change _get_script function name and syntax
  • e1bcfdf Fix formatting issue

📊 Changes

2 files changed (+11 additions, -0 deletions)

View changed files

📝 netbox/extras/urls.py (+3 -0)
📝 netbox/extras/views.py (+8 -0)

📄 Description

Closes: #18024

Added script URL patterns to include the module and name references. Added a function to return the specified script when referenced by either the PK or the module.name pattern. The new URL patterns should match the existing URL patterns for the API.


🔄 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/18723 **Author:** [@atownson](https://github.com/atownson) **Created:** 2/24/2025 **Status:** ✅ Merged **Merged:** 2/25/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `issue_18024` --- ### 📝 Commits (3) - [`dc9d54c`](https://github.com/netbox-community/netbox/commit/dc9d54c3c1d07849b0eb392bf682b298694151d0) Add URL pattern for scripts to reference them by module.name - [`71fc474`](https://github.com/netbox-community/netbox/commit/71fc4743ebabad41ad4edc2f0277fe1d06679767) Change _get_script function name and syntax - [`e1bcfdf`](https://github.com/netbox-community/netbox/commit/e1bcfdfdaa844581eefc580dc0e43ec3dcb79402) Fix formatting issue ### 📊 Changes **2 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/urls.py` (+3 -0) 📝 `netbox/extras/views.py` (+8 -0) </details> ### 📄 Description ### Closes: #18024 Added script URL patterns to include the `module` and `name` references. Added a function to return the specified script when referenced by either the PK or the module.name pattern. The new URL patterns should match the existing URL patterns for the API. --- <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:52 +01:00
adam closed this issue 2025-12-30 00:21:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15429