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

Regular expressions no longer work in the 'Quick search' bar #8481

Closed
Mizarv opened this issue Jan 28, 2022 · 2 comments
Closed

Regular expressions no longer work in the 'Quick search' bar #8481

Mizarv opened this issue Jan 28, 2022 · 2 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@Mizarv
Copy link

Mizarv commented Jan 28, 2022

NetBox version

3.1.5

Python version

3.7

Steps to Reproduce

  1. Open https://demo.netbox.dev/dcim/devices/
  2. Enter 'PP:B117|PP:B118' into the Quick search bar

Expected Behavior

Devices PP:B117 and PP:B118 should be displayed

Observed Behavior

No devices are displayed

@Mizarv Mizarv added the type: bug A confirmed report of unexpected behavior in the application label Jan 28, 2022
@kkthxbye-code
Copy link
Contributor

kkthxbye-code commented Jan 28, 2022

To provide some context:

I have seen others mention this before. The quick search bar was changed in 3.1.2 in the following PR #8073

The old quick search searched in only the loaded page, but it searched in all fields, with partial matches and regex support. The new way uses the q filter of the object that is being searched to look up all possible matches in the database. In most cases this searches a few fields with no support for partial matches (not sure if this is the case for all objects).

Obviously the old way was broken from a usability standpoint (only searching in the loaded page), sometimes making users increase their pagination setting, causing slow page loads. I could support a feature request for making the quick search better, but it would probably be blocked by the following feature request: #7016

@Mizarv Mizarv closed this as completed Jan 28, 2022
@jeremystretch
Copy link
Member

#7604 may also be relevant

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants