stable

Clone or download

Read-only

feat: Display obsolescence date column in search results

As soon as the obsolescence date property is used, the corresponding column is displayed in search results. If an item has no obsolescence date defined, nothing is displayed for now. A design check will probably change thinks when we will have more columns to better see how it fits. Note: CellString has been updated to use a slot instead of a prop, for a simpler usage. Note: Existing Cell* tests have been updated to have only needed Item properties for the test. This will prevent to update every tests whenever we add a new property in the Item interface. Part of story #24197: search for Documents with criteria Change-Id: Ica2ad76521db6eeaaf5fd726c1f9745319811684

Modified Files

Name
M plugins/docman/include/REST/v1/Folders/BuildSearchedItemRepresentationsFromSearchReport.php +10 −7 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchRepresentation.php +10 −0 Go to diff View file
M plugins/document/include/Tree/Search/ListOfSearchColumnDefinitionPresenterBuilder.php +9 −4 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellDescription.test.ts +1 −31 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellId.test.ts +1 −31 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellLocation.test.ts +2 −16 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellObsolescenceDate.test.ts +54 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellObsolescenceDate.vue +38 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellOwner.test.ts +1 −26 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellStatus.test.ts +1 −1 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellStatus.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellString.test.ts +7 −3 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellString.vue +1 −5 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellTitle.test.ts +4 −64 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 +2 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +1 −0 Go to diff View file
A plugins/document/tests/unit/Tree/Search/ListOfSearchColumnDefinitionPresenterBuilderTest.php +124 −0 Go to diff View file