[PR #17932] [MERGED] Fixes: #17923, #17921 - Fix non-null constraint for script execution #15231

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17932
Author: @alehaa
Created: 11/4/2024
Status: Merged
Merged: 11/21/2024
Merged by: @jeremystretch

Base: developHead: 17923-fix-scripts


📝 Commits (2)

  • a19bdd0 Fix non-null constraint for script execution
  • d0ee689 Fix name of recurring jobs

📊 Changes

3 files changed (+2 additions, -4 deletions)

View changed files

📝 netbox/extras/jobs.py (+1 -3)
📝 netbox/extras/views.py (+0 -1)
📝 netbox/netbox/jobs.py (+1 -0)

📄 Description

Fixes: #17921

With c34a0e2, validation of job object fields is enabled, so ScriptJob must not set required fields to empty strings. Changes of this PR revert b18f193 and (hopefully) fix this issue not only for UI views, but for all interactions with scripts.


🔄 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/17932 **Author:** [@alehaa](https://github.com/alehaa) **Created:** 11/4/2024 **Status:** ✅ Merged **Merged:** 11/21/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `17923-fix-scripts` --- ### 📝 Commits (2) - [`a19bdd0`](https://github.com/netbox-community/netbox/commit/a19bdd0c9fb9cb3b6a7a3961b726f1e008313dc7) Fix non-null constraint for script execution - [`d0ee689`](https://github.com/netbox-community/netbox/commit/d0ee68968c5858468e9f68a8b5f75c20465c71de) Fix name of recurring jobs ### 📊 Changes **3 files changed** (+2 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/jobs.py` (+1 -3) 📝 `netbox/extras/views.py` (+0 -1) 📝 `netbox/netbox/jobs.py` (+1 -0) </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: #17921 <!-- Please include a summary of the proposed changes below. --> With c34a0e2, validation of job object fields is enabled, so ScriptJob must not set required fields to empty strings. Changes of this PR revert b18f193 and (hopefully) fix this issue not only for UI views, but for all interactions with scripts. --- <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:20:45 +01:00
adam closed this issue 2025-12-30 00:20:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15231