stable

Clone or download

Read-only

feat: Ability to search against the filename

Like for title or other text properties, user can use glob patterns to search `lorem*`, `*lorem`, … Part of story #24197: search for Documents with criteria Change-Id: Ie32d49c91397a03a878c5772157ac1d0b9c7b9f6

Modified Files

Name
M plugins/docman/db/install.sql +2 −1 Go to diff View file
A plugins/docman/db/mysql/updates/2022/202202211726_add_filename_index.php +45 −0 Go to diff View file
M plugins/docman/include/Docman_SqlFilterFactory.php +2 −0 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchReportBuilder.php +9 −0 Go to diff View file
M plugins/docman/include/REST/v1/SearchResource.php +10 −0 Go to diff View file
A plugins/docman/include/Search/FilterFilename.php +35 −0 Go to diff View file
A plugins/docman/include/Search/SqlFilterFilename.php +34 −0 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/SearchReportBuilderTest.php +28 −0 Go to diff View file
M plugins/document/include/Tree/ListOfSearchCriterionPresenterBuilder.php +5 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.test.ts +5 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchCriteriaPanel.test.ts +3 −0 Go to diff View file
M plugins/document/scripts/document/helpers/build-advanced-search-params.test.ts +2 −0 Go to diff View file
M plugins/document/scripts/document/helpers/build-advanced-search-params.ts +1 −0 Go to diff View file
M plugins/document/scripts/document/helpers/get-rest-body-from-search-params.test.ts +3 −0 Go to diff View file
M plugins/document/scripts/document/helpers/get-router-query-from-search-params.test.ts +2 −0 Go to diff View file
M plugins/document/scripts/document/helpers/get-router-query-from-search-params.ts +3 −0 Go to diff View file
M plugins/document/scripts/document/helpers/is-query-empty.test.ts +2 −0 Go to diff View file
M plugins/document/scripts/document/helpers/is-query-empty.ts +1 −0 Go to diff View file
M plugins/document/scripts/document/router/get-search-props-from-route.test.ts +8 −0 Go to diff View file
M plugins/document/scripts/document/router/get-search-props-from-route.ts +1 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +2 −0 Go to diff View file
M plugins/document/site-content/fr_FR/LC_MESSAGES/tuleap-document.po +3 −0 Go to diff View file
M plugins/document/tests/unit/Tree/ListOfSearchCriterionPresenterBuilderTest.php +36 −15 Go to diff View file