netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Rack face not clear when site is cleared

Open Theyouth1 opened this issue 1 year ago • 1 comments

Deployment Type

Self-hosted

NetBox Version

v4.1.3 Community

Python Version

3.12

Steps to Reproduce

  1. Create a device.
  2. Assign it to a site
  3. Assign it to a location
  4. Assign it to a rack
  5. Set rack face
  6. Set Position
  7. Save
  8. Edit device again
  9. Press x next to Site (Note: all fields clear bar rack face)
  10. press save
  11. Error prompt "Race face: Cannot select a rack face without assigning a rack"
  12. Press x for Rack face.
  13. 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.

Theyouth1 avatar Oct 08 '24 05:10 Theyouth1

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.

arthanson avatar Oct 10 '24 16:10 arthanson

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.

github-actions[bot] avatar Apr 24 '25 04:04 github-actions[bot]

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.

github-actions[bot] avatar May 26 '25 04:05 github-actions[bot]