stable

Clone or download

Read-only

feat: display custom properties as column

If docman administrators defined custom properties (text, string, date, list, multiple list), then the should appear in the search result columns and the corresponding item's value is displayed. For list with multiple values, they are displayed as a comma separated list of values, maybe we should find and alternative? A dedicate contribution will handle this if needed. Part of story #24197: search for Documents with criteria Change-Id: I01a7ea5005b29549db27db21e870aef3c2a99806

Modified Files

Name
M plugins/docman/include/Docman_MetadataFactory.class.php +6 −2 Go to diff View file
M plugins/docman/include/REST/v1/Folders/BuildSearchedItemRepresentationsFromSearchReport.php +12 −2 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchReportBuilder.php +11 −4 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchRepresentation.php +12 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/CustomPropertyDateRepresentation.php +33 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/CustomPropertyListRepresentation.php +36 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/CustomPropertyRepresentation.php +27 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/CustomPropertyStringRepresentation.php +33 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/ListOfCustomPropertyRepresentationBuilder.php +76 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/SearchColumn.php +58 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/SearchColumnCollection.php +65 −0 Go to diff View file
A plugins/docman/include/REST/v1/Search/SearchColumnCollectionBuilder.php +56 −0 Go to diff View file
M plugins/docman/include/REST/v1/SearchResource.php +12 −3 Go to diff View file
M plugins/docman/include/Search/AlwaysThereColumnRetriever.php +3 −0 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/BuildSearchedItemRepresentationsFromSearchReportTest.php +22 −1 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/SearchReportBuilderTest.php +34 −18 Go to diff View file
A plugins/docman/tests/unit/REST/v1/Search/ListOfCustomPropertyRepresentationBuilderTest.php +160 −0 Go to diff View file
A plugins/docman/tests/unit/REST/v1/Search/SearchColumnCollectionBuilderTest.php +97 −0 Go to diff View file
A plugins/docman/tests/unit/REST/v1/Search/SearchColumnCollectionTest.php +67 −0 Go to diff View file
A plugins/docman/tests/unit/REST/v1/Search/SearchColumnTest.php +46 −0 Go to diff View file
M plugins/document/include/Tree/Search/ListOfSearchColumnDefinitionPresenterBuilder.php +14 −22 Go to diff View file
M plugins/document/include/documentPlugin.php +3 −1 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellCustomProperty.test.ts +108 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellCustomProperty.vue +73 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodyResultRow.test.ts +2 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodyResultRow.vue +15 −1 Go to diff View file
M plugins/document/scripts/document/type.ts +24 −1 Go to diff View file
M plugins/document/site-content/fr_FR/LC_MESSAGES/tuleap-document.po +0 −6 Go to diff View file
M plugins/document/tests/unit/Tree/Search/ListOfSearchColumnDefinitionPresenterBuilderTest.php +4 −14 Go to diff View file