[PR #19639] [MERGED] Closes #17183 - Add Object Types Field to Tag Bulk Import Form #15687

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

📋 Pull Request Information

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

Base: mainHead: 17183-allow-tag-object-type-assignment-during-bulk-import


📝 Commits (2)

  • 0c15d7a feat(tags): Add object types field to Tag import form
  • 2ed7cad feat(tags): Add support for object types in tag tests

📊 Changes

2 files changed (+16 additions, -5 deletions)

View changed files

📝 netbox/extras/forms/bulk_import.py (+9 -1)
📝 netbox/extras/tests/test_views.py (+7 -4)

📄 Description

Fixes: #17183 - Add the ability to assign object types to a tag for CSV import

Adds support for assigning object types to Tags during CSV import, matching the functionality available in the web UI.

Proposed Functionality

  • Adds an object_types field to the Tag bulk import form.
  • Allows associating one or more object types with each Tag via CSV.

Use Case

Enables users to set object type associations via CSV, which is already possible through the GUI.

Example CSV

name,slug,color,object_types
Tag4,tag4,9e9e9e,"dcim.interface,virtualization.virtualmachine"

🔄 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/19639 **Author:** [@pheus](https://github.com/pheus) **Created:** 6/4/2025 **Status:** ✅ Merged **Merged:** 6/10/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `17183-allow-tag-object-type-assignment-during-bulk-import` --- ### 📝 Commits (2) - [`0c15d7a`](https://github.com/netbox-community/netbox/commit/0c15d7a1a965d3595f02284808d664d7e01104b8) feat(tags): Add object types field to Tag import form - [`2ed7cad`](https://github.com/netbox-community/netbox/commit/2ed7cad02268cf67c335e544f095239c3d0f2073) feat(tags): Add support for object types in tag tests ### 📊 Changes **2 files changed** (+16 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/forms/bulk_import.py` (+9 -1) 📝 `netbox/extras/tests/test_views.py` (+7 -4) </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: #17183 - Add the ability to assign object types to a tag for CSV import Adds support for assigning object types to Tags during CSV import, matching the functionality available in the web UI. ### Proposed Functionality - Adds an `object_types` field to the Tag bulk import form. - Allows associating one or more object types with each Tag via CSV. ### Use Case Enables users to set object type associations via CSV, which is already possible through the GUI. ### Example CSV ```csv name,slug,color,object_types Tag4,tag4,9e9e9e,"dcim.interface,virtualization.virtualmachine" ``` --- <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:23:25 +01:00
adam closed this issue 2025-12-30 00:23:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15687