stable

Clone or download

Read-only

feat: Ability to search on Status

If status is activated in docman ยป admin ยป properties, then Status criterion is displayed in Search criteria panel. ALlowed values are hard coded like it is done when you edit properties of an item in the modal. Part of story #24197: search for Documents with criteria Change-Id: I1bb894434ffc744e472528cc9160f9de85a28814

Modified Files

Name
M plugins/docman/include/REST/v1/Folders/SearchReportBuilder.php +14 โˆ’0 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 +7 โˆ’1 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/SearchReportBuilderTest.php +25 โˆ’1 Go to diff View file
M plugins/document/include/Tree/DocumentTreeController.php +6 โˆ’1 Go to diff View file
M plugins/document/include/Tree/ListOfSearchCriterionPresenterBuilder.php +33 โˆ’3 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.test.ts +2 โˆ’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 โˆ’2 Go to diff View file
M plugins/document/scripts/document/helpers/get-rest-body-from-search-params.ts +1 โˆ’0 Go to diff View file
M plugins/document/scripts/document/helpers/get-router-query-from-search-params.test.ts +10 โˆ’5 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 +3 โˆ’1 Go to diff View file
M plugins/document/scripts/document/helpers/is-query-empty.ts +2 โˆ’1 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 +1 โˆ’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 +61 โˆ’8 Go to diff View file