netbox
netbox copied to clipboard
Support the assignment of tags to objects during bulk CSV import
NetBox version
v3.0.3
Feature type
New functionality
Proposed functionality
Enable the assignment of tags to objects during bulk import of CSV data. This was originally proposed specifically for IP addresses under #6420, but should apply to all objects which support tags.
Use case
This would enable users to assign tags directly to objects at the time of creation, and avoid needing to edit objects in bulk later to add the tags.
Database changes
No response
External dependencies
No response
Probably above my knowledge level, but trying to get this to work and will submit fore review here
This patch provides support to add a comma seperated list of tags, within a CSV Import of the 'providers' model. I'm playing around with one thing though: the tags column is required on import if setup this way.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.
Any hints @jeremystretch why my attempt at solving this results in an 'always required' tags column in the CSVimport? https://github.com/sdktr/netbox/commit/1a73410d8d840f8c22da0852b1f04144fc1c94e9
@sdktr Perhaps open a draft PR and ask for comments on it.
@sdktr it sounds like you have a potential solution for this? If so can you open a draft PR and we can check it.