Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rack face not clear when site is cleared #17695

Open
Theyouth1 opened this issue Oct 8, 2024 · 1 comment
Open

Rack face not clear when site is cleared #17695

Theyouth1 opened this issue Oct 8, 2024 · 1 comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@Theyouth1
Copy link

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 Theyouth1 added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Oct 8, 2024
@arthanson arthanson added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation and removed status: needs triage This issue is awaiting triage by a maintainer status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Oct 9, 2024
@arthanson arthanson self-assigned this Oct 9, 2024
@arthanson
Copy link
Collaborator

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 arthanson removed their assignment Oct 10, 2024
@arthanson arthanson added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation and removed status: accepted This issue has been accepted for implementation labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants