Rack face not clear when site is cleared #10330

Closed
opened 2025-12-29 21:30:08 +01:00 by adam · 3 comments
Owner

Originally created by @Theyouth1 on GitHub (Oct 8, 2024).

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.

Originally created by @Theyouth1 on GitHub (Oct 8, 2024). ### 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.
adam added the type: bugstatus: needs ownerpending closurenetboxseverity: low labels 2025-12-29 21:30:08 +01:00
adam closed this issue 2025-12-29 21:30:08 +01:00
Author
Owner

@arthanson commented on GitHub (Oct 10, 2024):

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 commented on GitHub (Oct 10, 2024): 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.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 24, 2025):

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] commented on GitHub (Apr 24, 2025): 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](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (May 26, 2025):

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] commented on GitHub (May 26, 2025): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10330