stable

Clone or download

Read-only

Be able to sort custom properties with REST

Part of story #24197 search for Documents with criteria Custom metadata can now be sorted excepted the Multi List custom metadata. Here a minimal payload example: { "sort": [ { "name": "field_5", "order": "desc" } ], "offset": 0, "limit": 50 } Note: The sort of the ID column will be done in a dedicated commit Change-Id: I8a5ecf8c8abeb663f99442c6977e896e0002b899

Modified Files

Name
M plugins/docman/include/Docman_ItemDao.class.php +4 −3 Go to diff View file
M plugins/docman/include/Docman_ReportColumn.php +5 −0 Go to diff View file
M plugins/docman/include/Docman_SqlReportColumn.php +38 −0 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchReportBuilder.php +15 −5 Go to diff View file
M plugins/docman/include/REST/v1/SearchResource.php +3 −0 Go to diff View file
A plugins/docman/include/Search/ColumnCannotBeSortedException.php +41 −0 Go to diff View file
M plugins/docman/include/Search/ColumnReportAugmenter.php +5 −0 Go to diff View file
A plugins/docman/include/Search/SearchColumnSortChecker.php +44 −0 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +4 −0 Go to diff View file
M plugins/docman/site-content/pt_BR/LC_MESSAGES/tuleap-docman.po +4 −0 Go to diff View file
A plugins/docman/tests/unit/Docman_SqlReportColumnTest.php +106 −0 Go to diff View file
A plugins/docman/tests/unit/REST/v1/Search/SearchColumnSortCheckerTest.php +118 −0 Go to diff View file