DumbAssets
DumbAssets copied to clipboard
Import with multiple tags
The import template suggests multiple tags can be provided in a quoted, comma-separated list:
Name,Manufacturer,Model,Serial,Purchase Date,Purchase Price,Notes,URL,Warranty,Warranty Expiration,Lifetime,Secondary Warranty,Secondary Warranty Expiration,Tags,Quantity
Test Name,Test Manufacturer,Test Model,Test Serial,2025-07-03,123.45,Test Notes,https://example.com,Test Warranty,2025-07-03,false,Test Secondary Warranty,2025-07-03,"tag1,tag2,tag3",1
But each row is just naively split on commas, so the quotes are included verbatim and multiple tags don't currently work:
https://github.com/DumbWareio/DumbAssets/blob/c423e8e1a81965f144939090aab1ad61a08f314a/public/managers/import.js#L215
In my case this leads to some surprising "Name is required" errors because it's looking in the wrong column (I'm trying to migrate an existing spreadsheet where the column best suited for tags is first, so commas there offset everything).
#103