stable

Clone or download

Read-only

feat: Ability to search for a description

User can now search for documents matching a description pattern. Note: since we are starting to repeat ourselves, some important snippets related to management of search parameters have been extracted in dedicated file for better test coverage. Part of story #24197: search for Documents with criteria Change-Id: Ifa0bfba2a81f3d57cbad78afe0f9b85c245c0d0b

Modified Files

Name
M plugins/docman/include/Docman_MetadataFactory.class.php +7 −6 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchReportBuilder.php +35 −13 Go to diff View file
M plugins/docman/include/REST/v1/Search/PostSearchRepresentation.php +5 −0 Go to diff View file
M plugins/docman/include/REST/v1/SearchResource.php +2 −2 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/SearchReportBuilderTest.php +16 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.test.ts +4 −2 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.ts +2 −3 Go to diff View file
R plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionTitle.test.ts Go to diff View file
R plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionTitle.vue Go to diff View file
R plugins/document/scripts/document/components/AdvancedSearch/Criteria/__snapshots__/CriterionTitle.test.ts.snap Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchContainer.test.ts +81 −101 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchContainer.vue +5 −17 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchCriteriaPanel.test.ts +13 −15 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchCriteriaPanel.vue +15 −3 Go to diff View file
A plugins/document/scripts/document/helpers/build-advanced-search-params.test.ts +45 −0 Go to diff View file
A plugins/document/scripts/document/helpers/build-advanced-search-params.ts +36 −0 Go to diff View file
A plugins/document/scripts/document/helpers/get-rest-body-from-search-params.test.ts +56 −0 Go to diff View file
A plugins/document/scripts/document/helpers/get-rest-body-from-search-params.ts +29 −0 Go to diff View file
A plugins/document/scripts/document/helpers/get-router-query-from-search-params.test.ts +55 −0 Go to diff View file
A plugins/document/scripts/document/helpers/get-router-query-from-search-params.ts +38 −0 Go to diff View file
A plugins/document/scripts/document/helpers/is-query-empty.test.ts +48 −0 Go to diff View file
A plugins/document/scripts/document/helpers/is-query-empty.ts +29 −0 Go to diff View file
A plugins/document/scripts/document/router/get-search-props-from-route.test.ts +110 −0 Go to diff View file
A plugins/document/scripts/document/router/get-search-props-from-route.ts +49 −0 Go to diff View file
M plugins/document/scripts/document/router/index.js +2 −11 Go to diff View file
M plugins/document/scripts/document/type.ts +13 −1 Go to diff View file