stable

Clone or download

Read-only

Replace string based by class based event of archive_deleted_item

This allows a more strict control of the parameters as all as having a dedicated treatment of artifact deletion so heavy treatment needed to archive an artifact are only run when archivedeleteditem plugin is actually active on system (this might extended for other plugins but not in the scope of this request). Note for testers: - docman and frs deletion / purge can be tested by running SYSTEM_CHECK by hand - svn deletion / purge can be tested by running codendi_daily by hand - git & artifact deletion / purge can be tested "directly" (no background task) Enjoy the consistency :p Part of request #13097 Artifact deletion or move should archive item only if archivedeleteditem plugin is installed Change-Id: Ic8fe06e748302033e6b72944a6fe0084ed6483a5

Modified Files

Name
M plugins/archivedeleteditems/include/archivedeleteditemsPlugin.class.php +15 −35 Go to diff View file
M plugins/docman/include/Docman_VersionFactory.class.php +15 −21 Go to diff View file
M plugins/docman/tests/DocmanActionsTest.php +12 −17 Go to diff View file
M plugins/docman/tests/Docman_SOAPActionsTest.php +20 −27 Go to diff View file
M plugins/docman/tests/ItemFactoryTest.php +18 −26 Go to diff View file
M plugins/docman/tests/VersionFactoryTest.php +23 −40 Go to diff View file
M plugins/fulltextsearch/tests/SystemEvent_FULLTEXTSEARCH_DOCMANTest.class.php +4 −2 Go to diff View file
M plugins/git/include/Git_Backend_Gitolite.class.php +11 −18 Go to diff View file
M plugins/svn/include/SVN/Repository/RepositoryManager.php +14 −17 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTask.php +8 −15 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveDeletedArtifactProvider.php +86 −0 Go to diff View file
M plugins/webdav/tests/WebDAVDocmanFileTest.php +6 −11 Go to diff View file
M plugins/webdav/tests/WebDAVDocmanFolderTest.php +5 −8 Go to diff View file
A src/common/Event/Events/ArchiveDeletedItemEvent.php +69 −0 Go to diff View file
A src/common/Event/Events/ArchiveDeletedItemFileProvider.php +57 −0 Go to diff View file
A src/common/Event/Events/ArchiveDeletedItemProvider.php +33 −0 Go to diff View file
M src/common/frs/FRSFileFactory.class.php +7 −16 Go to diff View file