[PR #20674] [MERGED] Fixes #20653: Add object_type_id filter for Jobs #16006

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20674
Author: @pheus
Created: 10/24/2025
Status: Merged
Merged: 11/4/2025
Merged by: @arthanson

Base: mainHead: 20653-fix-filtering-jobs-by-object-type


📝 Commits (1)

  • d7dcaad feat(filtersets): Add object_type_id filter for Jobs

📊 Changes

3 files changed (+31 additions, -5 deletions)

View changed files

📝 netbox/core/api/serializers_/jobs.py (+24 -2)
📝 netbox/core/filtersets.py (+5 -1)
📝 netbox/core/forms/filtersets.py (+2 -2)

📄 Description

Fixes: #20653

Summary

Fix Jobs list returning empty results when filtering by Object Type by introducing a proper object_type_id filter and exposing it in the Jobs filter form/fieldsets.

Changes

  • Add object_type_id to the Jobs FilterSet.
  • Update the Jobs filter form and fieldsets to include it.
  • No model/schema changes or migrations.

🔄 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/20674 **Author:** [@pheus](https://github.com/pheus) **Created:** 10/24/2025 **Status:** ✅ Merged **Merged:** 11/4/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `20653-fix-filtering-jobs-by-object-type` --- ### 📝 Commits (1) - [`d7dcaad`](https://github.com/netbox-community/netbox/commit/d7dcaad9a93ed2edcdb8d45376d98b28f9614da5) feat(filtersets): Add `object_type_id` filter for Jobs ### 📊 Changes **3 files changed** (+31 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/api/serializers_/jobs.py` (+24 -2) 📝 `netbox/core/filtersets.py` (+5 -1) 📝 `netbox/core/forms/filtersets.py` (+2 -2) </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: #20653 <!-- Please include a summary of the proposed changes below. --> #### Summary Fix Jobs list returning empty results when filtering by **Object Type** by introducing a proper `object_type_id` filter and exposing it in the Jobs filter form/fieldsets. #### Changes - Add `object_type_id` to the Jobs FilterSet. - Update the Jobs filter form and fieldsets to include it. - No model/schema changes or migrations. --- <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:25:17 +01:00
adam closed this issue 2025-12-30 00:25:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16006