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

Saved filters are displayed on any models not only the assigned models #15638

Closed
julianstolp opened this issue Apr 5, 2024 · 2 comments
Closed
Assignees
Labels
beta Concerns a bug/feature in a beta release 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

@julianstolp
Copy link

Deployment Type

Self-hosted

NetBox Version

v4.0-beta1

Python Version

3.10

Steps to Reproduce

  1. Go to customization -> saved filters /extras/saved-filters/
  2. create a filter named Test and assign it to object type DCIM > Site
{
    "q": [
        ""
    ],
    "status": [
        "planned"
    ]
}
  1. Go to /dcim/devices/ and click on tab Filters select filter test hit search button
  2. Filter works as intended or returns any object, depending on whether the models share all elements of the filter

Expected Behavior

Filter not visible if the object type does not match the assigned model.

Observed Behavior

All filters are visible regardless of whether they match the object type or not.

@julianstolp julianstolp added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Apr 5, 2024
@arthanson
Copy link
Collaborator

@julianstolp this is working fine when I try it (v4.0-beta1) can you please check if there are other steps needed or special conditions.

@arthanson arthanson added status: revisions needed This issue requires additional information to be actionable and removed status: needs triage This issue is awaiting triage by a maintainer labels Apr 5, 2024
@julianstolp
Copy link
Author

I created the filter on your beta demo instance also happening there.

grafik
grafik

@jeremystretch jeremystretch added the beta Concerns a bug/feature in a beta release label Apr 5, 2024
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation severity: low Does not significantly disrupt application functionality, or a workaround is available and removed status: revisions needed This issue requires additional information to be actionable labels Apr 5, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release 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

No branches or pull requests

3 participants