stable

Clone or download

Read-only

feat: Display coauthors of a File version

If you update manually the db table `plugin_docman_version_coauthor` to insert a bunch of user_id for a given File version, then they will be displayed in the Author column in Document UI. The decision to store coauthors alongside author is taken to allow to introduce the feature without breaking everything in both Docman internal API and REST API. Part of story #28263: edit office document stored in Document Change-Id: I5cd3403f16ed2949a23bd79699d1c0a0a38aded7

Modified Files

Name
M plugins/docman/db/install.sql +7 −0 Go to diff View file
A plugins/docman/db/mysql/updates/2022/202211031410_add_coauthor_table.php +42 −0 Go to diff View file
M plugins/docman/db/uninstall.sql +1 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +2 −0 Go to diff View file
M plugins/docman/include/REST/v1/Files/FileVersionRepresentation.php +17 −0 Go to diff View file
M plugins/docman/include/REST/v1/VersionRepresentationCollectionBuilder.php +12 −0 Go to diff View file
A plugins/docman/include/Version/CoAuthorDao.php +37 −0 Go to diff View file
M plugins/docman/tests/unit/REST/v1/VersionRepresentationCollectionBuilderTest.php +12 −0 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersionsContentRow.test.ts +11 −0 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersionsContentRow.vue +5 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +1 −0 Go to diff View file