stable

Clone or download

Read-only

feat: Delete a file version from Document

In the hidden versions view, as soon as user has sufficient permissions and there are more than one version, a version can be deleted. Part of story #28263: edit office document stored in Document Change-Id: Ibe3648cdf79479af8436bd23996956088683c73b

Modified Files

Name
M plugins/docman/include/Docman_VersionFactory.class.php +3 −11 Go to diff View file
M plugins/docman/include/REST/ResourcesInjector.php +3 −0 Go to diff View file
A plugins/docman/include/REST/v1/Files/FileVersionsDeletor.php +61 −0 Go to diff View file
A plugins/docman/include/REST/v1/Files/FileVersionsResource.php +70 −0 Go to diff View file
A plugins/docman/include/REST/v1/Files/UnableToDeleteVersionException.php +27 −0 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentation.php +9 −0 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationBuilder.php +2 −0 Go to diff View file
A plugins/docman/include/Version/IDeleteVersion.php +30 −0 Go to diff View file
A plugins/docman/include/Version/IRetrieveVersion.php +28 −0 Go to diff View file
M plugins/docman/include/Version/VersionDao.php +10 −0 Go to diff View file
A plugins/docman/include/Version/VersionNotFoundException.php +27 −0 Go to diff View file
A plugins/docman/include/Version/VersionRetriever.php +40 −0 Go to diff View file
A plugins/docman/tests/unit/REST/v1/Files/FileVersionsDeletorTest.php +168 −0 Go to diff View file
M plugins/docman/tests/unit/REST/v1/ItemRepresentationBuilderTest.php +12 −0 Go to diff View file
M plugins/docman/tests/unit/REST/v1/ItemRepresentationCollectionBuilderTest.php +4 −0 Go to diff View file
A plugins/docman/tests/unit/Stubs/IDeleteVersionStub.php +57 −0 Go to diff View file
A plugins/docman/tests/unit/Stubs/IRetrieveVersionStub.php +52 −0 Go to diff View file
M plugins/document/package.json +1 −0 Go to diff View file
M plugins/document/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/document/scripts/document/api/version-rest-querier.ts +6 −2 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersions.vue +1 −1 Go to diff View file
D plugins/document/scripts/document/components/Versions/HistoryVersionsContent.test.ts +0 −64 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersionsContent.vue +13 −53 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersionsContentRow.test.ts +125 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersionsContentRow.vue +206 −0 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +9 −0 Go to diff View file
M plugins/document/scripts/document/po/pt_BR.po +7 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +1 −0 Go to diff View file