stable

Clone or download

Read-only

feat: Ability to search against item id

We can now search a docman item with its id. This is an exact match, no pattern is accepted. Note: I18NRestException is updated to not pass null as error message in Exception in PHP 8.1. Part of story #24197: search for Documents with criteria Change-Id: Id450af602a0bb84fcb720fd5b3707654dd2a9626

Modified Files

Name
M plugins/docman/include/Docman_SqlFilterFactory.php +2 −0 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchReportBuilder.php +18 −3 Go to diff View file
A plugins/docman/include/Search/FilterItemId.php +36 −0 Go to diff View file
A plugins/docman/include/Search/SqlFilterItemId.php +38 −0 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/SearchReportBuilderTest.php +19 −1 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
A plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionNumber.test.ts +54 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionNumber.vue +53 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/Criteria/__snapshots__/CriterionNumber.test.ts.snap +21 −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/components/AdvancedSearch/SearchCriteriaPanel.vue +2 −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 +39 −18 Go to diff View file
M plugins/document/themes/_search.scss +4 −0 Go to diff View file
M src/common/REST/I18NRestException.php +1 −1 Go to diff View file