When editing Device, removing Rack attribute does not remove Rack Face attribute
NetBox Edition
NetBox Community
NetBox Version
v4.4.1
Python Version
3.12
Steps to Reproduce
- from existing Device, click on Edit
- in Edit dialogue, click the (x) on right side of Rack field to remove attribute value
- Position attribute is cleared, but Rack Face attribute remains set
- Click Save and get error "Cannot select a rack face without assigning a rack."
Expected Behavior
Rack Face attribute value should be cleared, as Position is
Observed Behavior
When trying to save, error "Cannot select a rack face without assigning a rack" was received, and Position attribute was reset to previous value.
+1, thanks for raising this and can confirm same behaviour on v4.3.7 (this isn't new behaviour, goes back a few major versions but I never bothered raising it).
Should be fixed with the introduction of the new method by #20387 (#20375). May need to edit the bulk edit buttons though, will investigate this in a bit.
Should be fixed with the introduction of the new method by #20387 (#20375). May need to edit the bulk edit buttons though, will investigate this in a bit.
Any update on this?
I need a better way to track stuff like this... completely dropped off my radar. I don't know why I was talking about Bulk Edit buttons (maybe a hallucination similar to artificial intelligence but real intelligence instead).
Either way, the issue appears to be that the face isn't cleared and I am wondering if we should just silently clear it when there is no rack and position in the request.