-
Notifications
You must be signed in to change notification settings - Fork 253
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
Ignore old custom field data #533
Comments
I'm sorry, the reproducer might be incomplete. During process of fixing the data I found out assigning and unassigning the custom field starts RQ task |
Hmmm... This is interesting. So you're saying that the worker was unable to complete the task and it resulted in this bizarre behavior? |
Exactly (let me join this conversation as a @Thetacz colleague :-) ) - it is impossible to edit such an object (record) and this error is shown by nautobot. |
Okay thanks. Need to try to reproduce this and I'll follow up! |
So there are realistically two bugs here.
Additionally, we should probably create a command to normalize custom field data in the event one of these jobs fails. Muck like the trace paths command. |
Environment
We used to have a custom field
asw_vulnerabilityscan
assigned to IP Addresses. It is no longer assigned to this model, but still exists and is assigned to other models. But our DB contains this field for 1036 of such IPs. Editing any of these is not possible as it crashes on the field being set.AFAICT is it great to keep this data as long as the field exists since it is very easy to missclick and remove the field from some model by accident. But form validation should ignore these.
Steps to Reproduce
Expected Behavior
No issues found.
Observed Behavior
Unable to edit, old custom field data breaks for validation.
The text was updated successfully, but these errors were encountered: