Ignore old custom field data
See original GitHub issueEnvironment
- Python version: 3.6.8
- Nautobot version: 1.0.1
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
- Create custom field
- Assign it to some object
- Create instance of such object
- Fill in the custom field
- Unassign the custom field from the object
- Try to edit the created instance
Expected Behavior
No issues found.
Observed Behavior
Unable to edit, old custom field data breaks for validation.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
SOQL - ignore custom field if non existent in object
In Case you don't want to check explicitly all the fields, You can follow below approach to iterate through all the fields to...
Read more >How do I disable a custom field on JIRA Cloud?
Solved: Hi there, We have a custom field on our project that we're not gonna use anymore, but we want to keep its...
Read more >How do I remove old "InActive" Custom Fields? - Help
How do I remove old "InActive" Custom Fields? First issue, the 3 custom field limitation is causing an issue where the API only...
Read more >Remove old custom field name - ACF Support
Is there a way to remove the custom field names that are already store in my database? I created a list of fields...
Read more >How To Delete Custom Fields From Wordpress Without ...
Here's a quick and easy way to delete old custom field data from your Wordpress database... without having to go into PHPMyAdmin.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Okay thanks. Need to try to reproduce this and I’ll follow up!