Rack face not clear when site is cleared
Deployment Type
Self-hosted
NetBox Version
v4.1.3 Community
Python Version
3.12
Steps to Reproduce
- Create a device.
- Assign it to a site
- Assign it to a location
- Assign it to a rack
- Set rack face
- Set Position
- Save
- Edit device again
- Press x next to Site (Note: all fields clear bar rack face)
- press save
- Error prompt "Race face: Cannot select a rack face without assigning a rack"
- Press x for Rack face.
- Press save as a work around
Expected Behavior
All fields associated with Location should auto clear when parent item is removed. Aka when Site is clear rack face should also auto clear.
Observed Behavior
When clearing the Site field with the x. Rack Face doesn't clear.
This is a bit more involved as rack and location are DynamicModelChoice fields which auto-clear based on query_params being linked to $site. face, however is a char field and we don't currently have a mechanism for auto-clearing fields based on another field.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.
This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.