[PR #10802] [MERGED] 7376 csv tags #13700

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10802
Author: @arthanson
Created: 10/31/2022
Status: Merged
Merged: 11/4/2022
Merged by: @jeremystretch

Base: featureHead: 7376-csv-tags


📝 Commits (7)

  • 8165326 7376 add tags to CSV import
  • 2bdab1a 7376 change help text
  • fbf38bb 7376 validate tags
  • a040a9a 7376 fix tests
  • 8b2ec94 7376 add tag validation tests
  • 450f68c Introduce CSVModelMultipleChoiceField for CSV import tag assignment
  • 462fe81 Clean up CSVImportTestCase

📊 Changes

9 files changed (+165 additions, -61 deletions)

View changed files

📝 netbox/circuits/forms/bulk_import.py (+4 -4)
📝 netbox/dcim/forms/bulk_import.py (+26 -26)
📝 netbox/ipam/forms/bulk_import.py (+16 -17)
📝 netbox/netbox/forms/base.py (+8 -2)
netbox/netbox/tests/test_import.py (+84 -0)
📝 netbox/tenancy/forms/bulk_import.py (+4 -4)
📝 netbox/utilities/forms/fields/csv.py (+15 -1)
📝 netbox/virtualization/forms/bulk_import.py (+5 -5)
📝 netbox/wireless/forms/bulk_import.py (+3 -2)

📄 Description

Fixes: #7376

Adds tags as an allowed (optional) field to CSV import. Tried import and update on several different models and it worked. Note: Have not tested on all the effected models as it should be common code.


🔄 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/10802 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 10/31/2022 **Status:** ✅ Merged **Merged:** 11/4/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `7376-csv-tags` --- ### 📝 Commits (7) - [`8165326`](https://github.com/netbox-community/netbox/commit/8165326bb71563d08e069facf50bf3a58a9bc378) 7376 add tags to CSV import - [`2bdab1a`](https://github.com/netbox-community/netbox/commit/2bdab1abc0a64103731e79ff6bf233318694f0c9) 7376 change help text - [`fbf38bb`](https://github.com/netbox-community/netbox/commit/fbf38bbad741378f4d49cdef9b11b96b38501106) 7376 validate tags - [`a040a9a`](https://github.com/netbox-community/netbox/commit/a040a9aa15f0101c4b18fa512ed05a142f14d30e) 7376 fix tests - [`8b2ec94`](https://github.com/netbox-community/netbox/commit/8b2ec9444b221f1a835292feb4bc9b8c3834bc07) 7376 add tag validation tests - [`450f68c`](https://github.com/netbox-community/netbox/commit/450f68c40e449fd9275b3d501d0202f808ff6260) Introduce CSVModelMultipleChoiceField for CSV import tag assignment - [`462fe81`](https://github.com/netbox-community/netbox/commit/462fe816d6ef036fcc3d580ff594b703ba6bcdb5) Clean up CSVImportTestCase ### 📊 Changes **9 files changed** (+165 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/forms/bulk_import.py` (+4 -4) 📝 `netbox/dcim/forms/bulk_import.py` (+26 -26) 📝 `netbox/ipam/forms/bulk_import.py` (+16 -17) 📝 `netbox/netbox/forms/base.py` (+8 -2) ➕ `netbox/netbox/tests/test_import.py` (+84 -0) 📝 `netbox/tenancy/forms/bulk_import.py` (+4 -4) 📝 `netbox/utilities/forms/fields/csv.py` (+15 -1) 📝 `netbox/virtualization/forms/bulk_import.py` (+5 -5) 📝 `netbox/wireless/forms/bulk_import.py` (+3 -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: #7376 <!-- Please include a summary of the proposed changes below. --> Adds tags as an allowed (optional) field to CSV import. Tried import and update on several different models and it worked. Note: Have not tested on all the effected models as it should be common code. --- <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:20:20 +01:00
adam closed this issue 2025-12-29 23:20:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13700