-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk update silently ignores mis-spelled header fields #13773
Comments
This isn't a bug, it's a feature. This allows a CSV file to be imported into NetBox that might contain extra fields that NetBox might not care about. So maybe this should be an FR? However, I will agree that maybe it makes sense to make the header name matching case-insensitive at least? That's bitten me a few times. |
I see the advantage of being able to ignore extra fields, but at least the very least there should be a warning or notice (along the lines of "Ignored non model fields Name, ...") about it. Silently ignoring the fields leaves the user in the dark about what happened. Case insensitivity would also be a good thing, I agree. |
In that case, that sounds like it could be the basis for at least two FR's.
And maybe even
|
I'll do my best :-) |
NetBox version
3.6.1
Python version
3.11
Steps to Reproduce
Try to change the name of some existing items, e.g. inventory items, using a header field that does not exactly match a field name of the corresponding model.
The data I stumbled across this was
Note the capitalised
Name
instead ofname
.Expected Behavior
NetBox displays an error message about the field having an incorrect name.
Observed Behavior
The input is accepted, but the data entered is silently ignored.
The text was updated successfully, but these errors were encountered: