Part-DB-server/tests
d-buchmann 1686df968f
Implement extensive search (#1406)
* Implement advanced search

Up to 5 individual tokens (separated by spaces) can be given as search string.
Each token is individually searched for in all selected fields.

Examples (assuming the relevant fields are selected for search):
- a part named `foo` with a tag `bar` will be found with the search string "foo bar".
- a part named `bar baz` will be found with the search string "baz bar".
- a part with the ID 123 and in storage location `a_qux_b` will be found with the search string "qux 123".

* Add tests

These were created with the help of GPT-5.2.
Disclaimer: I don't have the experience to judge the quality or validity of the results.

* Restructure query buildup

* Update tests

* Move options from Settings to localStorage

* Consider mutual exclusivity of search options

If regex search is enabled, the other two options are disabled (only visually). This should give the user a fair idea of what's happening while keeping things as simple as possible.

* Added translations for the checkboxes

* Fix stimulus controller to allow handling multiple instances of the dropdown menu

* Added tooltips for the different search mode options

---------

Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2026-07-27 18:42:32 +02:00
..
API Reworked info provider system to merge all provider metadata into a unified DTO 2026-07-26 13:55:27 +02:00
assets Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
Command Enhance KiCad integration: API v2, batch EDA editing, field export control (#1241) 2026-03-01 22:10:13 +01:00
Controller Added tests for browser submission logic 2026-05-14 21:29:18 +02:00
DataTables/Filters Implement extensive search (#1406) 2026-07-27 18:42:32 +02:00
Doctrine Moved from phpunit annotation to attribute 2026-06-25 12:12:34 +02:00
Entity Removed useless setAccessible() calls 2026-06-25 10:54:13 +02:00
EnvVarProcessors Ran rector and made tests final 2026-02-14 23:32:43 +01:00
EventListener Ran rector and made tests final 2026-02-14 23:32:43 +01:00
EventSubscriber Added more tests 2026-05-11 21:50:33 +02:00
Exceptions Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Form/InfoProviderSystem Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Helpers Warn if ProjectBuild passed lot if null 2026-06-25 12:07:54 +02:00
Repository Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Security Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Serializer Return full path and sort structures by full pathes in list tools 2026-07-25 21:03:05 +02:00
Services Reworked info provider system to merge all provider metadata into a unified DTO 2026-07-26 13:55:27 +02:00
Settings Refactored size checks for attachments and check base64 upload length 2026-07-09 19:33:11 +02:00
State/Mcp Reworked info provider system to merge all provider metadata into a unified DTO 2026-07-26 13:55:27 +02:00
Twig Moved remaining twig extensions to new attributes system 2026-02-15 00:23:30 +01:00
Validator Test some more edge cases in tests 2026-05-11 23:13:46 +02:00
.gitignore Initial commit 2019-02-23 16:49:38 +01:00
ApplicationAvailabilityFunctionalTest.php Add custom KiCad autocomplete list settings (#1342) 2026-04-15 00:01:00 +02:00
bootstrap.php Updated phpunit recipe 2025-07-13 16:53:41 +02:00
DatatablesAvailabilityTest.php Ran rector and made tests final 2026-02-14 23:32:43 +01:00
object-manager.php Fixed PHPstan issues 2023-08-28 22:39:29 +02:00
SettingsTestHelper.php Run rector 2025-07-14 00:26:40 +02:00
symfony-container.php Added declare strict types to all files 2023-06-11 18:59:07 +02:00