-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add 'Matches' Search Option for Better Usability #20795
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
base: main
Are you sure you want to change the base?
Add 'Matches' Search Option for Better Usability #20795
Conversation
|
Hello. Thank your for the feature. |
Thank you for your feedback regarding the "contains" operator. |
|
I noticed the need unit tests label was added. |
|
Yes, unit tests are required for every new feature added |
|
Currently, this is the Coding Standards checks that are failing. Running |
|
For tests, |
|
Thank you very much for your explanation. The test "GLPI CI / E2E and web tests using late PHP and MariaDB versions (pull_request)" failed on my PR, so I am currently working on fixing it. I appreciate your guidance. |
You can modify every file you need to add yout test case. Bu, be careful about "E2E" tests failures... We have issues with that test suite, it often break for completely unrelated reasons. |
Since GLPI v11; it is required to specify the environment used to run tests. So you have to add the A readme file to explain how to setup and run tests is missing in the Your new test case does not seems incorrect after a very quick review. |
Thank you very much for your explanation. I will review my code once again, and if any modifications are needed, I will make the changes accordingly.
Thank you for the clarification. I will retry with the --env=testing option. Also, thanks for opening the documentation fix (#20913). I really appreciate your help on my first contribution. |
|
In the "E2E" workflow, the "web tests" part is failing because of the add of the new option; that should not be hard to fix. Your new added test case seems to pass; that seems OK to me. |
|
I've tried to fix remaning issues; but I do not have rights to push on your repository. Patch is attached. |
|
I've opened another PR based on your branch + my test fix to target GLPI v11. Thanks for your contribution. |
|
I sincerely apologize for my late reply. I also tried running the tests on my side, but they kept failing and I wasn’t sure how to proceed, so I couldn’t get back to you sooner. Thank you so much for opening another PR and helping me get my first contribution finalized. I’m really grateful, and I’m very happy that my work could be part of GLPI. |
tests are failing
|
hi, @trasher |
cffbb48 to
9b672d5
Compare
|
This feature branch was rebased to the main branch also with squashing the multiple commits into a single commit, since the changes on main branch caused conflict. |
9b672d5 to
de53b03
Compare
de53b03 to
ee12a08
Compare

Checklist before requesting a review
Please delete options that are not relevant.
Description
Add 'Matches' Search Option for Better Usability #20713
A new matches search operator has been developed and proposed to enable faster and more flexible ticket searches using simple text.
In details, this contribution adds a new 'matches' search condition to complement the existing 'is' operator.
While the current UI relies on dropdowns for selecting values, this new option allows users to enter text directly when the exact value is known. It improves search speed and simplifies the process by avoiding dropdown loading.
This enhancement offers a more efficient and user-friendly way to perform targeted searches.
Screenshots (if appropriate):