netbox icon indicating copy to clipboard operation
netbox copied to clipboard

When editing Device, removing Rack attribute does not remove Rack Face attribute

Open postilion opened this issue 3 months ago • 4 comments

NetBox Edition

NetBox Community

NetBox Version

v4.4.1

Python Version

3.12

Steps to Reproduce

  1. from existing Device, click on Edit
  2. in Edit dialogue, click the (x) on right side of Rack field to remove attribute value
  3. Position attribute is cleared, but Rack Face attribute remains set
  4. 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

Image

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.

Image

postilion avatar Sep 18 '25 09:09 postilion

+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).

AliMickey avatar Sep 18 '25 12:09 AliMickey

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.

DanSheps avatar Oct 06 '25 14:10 DanSheps

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?

jnovinger avatar Oct 30 '25 13:10 jnovinger

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.

DanSheps avatar Dec 11 '25 14:12 DanSheps