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

Filtering circuits by location not working #18585

Open
Azmodeszer opened this issue Feb 6, 2025 · 0 comments · May be fixed by #18641
Open

Filtering circuits by location not working #18585

Azmodeszer opened this issue Feb 6, 2025 · 0 comments · May be fixed by #18641
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@Azmodeszer
Copy link
Contributor

Deployment Type

NetBox Cloud

NetBox Version

v4.2.3

Python Version

3.11

Steps to Reproduce

  1. Attach a location to a circuit as a termination point.
  2. Go to the location and under "Related objects" click on circuits (or circuits terminations).
  3. https://netbox.local/circuits/circuits/?location_id=<id>

Expected Behavior

Only the attached circuit(s) show(s) up.

Observed Behavior

Filter not working, all circuits are being displayed.

@Azmodeszer Azmodeszer added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Feb 6, 2025
@jeremystretch jeremystretch 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 and removed status: needs triage This issue is awaiting triage by a maintainer labels Feb 7, 2025
@jnovinger jnovinger self-assigned this Feb 12, 2025
@jnovinger jnovinger added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Feb 12, 2025
jnovinger added a commit to jnovinger/netbox that referenced this issue Feb 13, 2025
This also fixes a related issue where selected filter is not shown in
the filter form.

Changes:
- Adds `CircuitFilterSet.location_id` field to enable filtering with
  incoming GET params
- Adds `CirciotFilterForm.location_id` field to enable filtering from
  list form
- Adds `location_id` to the Location fieldset on `CircuitFilterForm`
@jnovinger jnovinger linked a pull request Feb 13, 2025 that will close this issue
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: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants