Closed (fixed)
Project:
Entity Legal
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2022 at 08:59 UTC
Updated:
23 Feb 2022 at 07:54 UTC
Jump to comment: Most recent
Comments
Comment #3
saidatomComment #4
dimilias commentedI have two more issues with the implementation. First, we are lacking tests.
Second, the module has 3 entities. EntityLegalDocument, EntityLegalDocumentVersion and EntityLegalDocumentAcceptance.
The acceptance entity holds users that have accepted a specific version. We need somehow to be able to cleanup these acceptances once a version is deleted.
Please, note, that this should not be done with a direct deletion. It would be better to be a batched or cron process because in a large scale website, there might be millions of entities to delete.
Comment #5
saidatom@idimopoulos delete the actual accepted versions was already implemented in old code. If you check delete from EntityLegalDocument they are deleting child's in that case documents and accepted versions. Do we need to implement that new approach to delete the accepted versions in batch/cron?
Comment #6
dimilias commented@saidatom, no the new changes suffice for the scope of the ticket. Users are now able to delete documents. If the accepted versions are also cleaned, that is fine for me. +1 RTBC here.
Comment #7
dimilias commentedPlease, note that the failing tests are irrelevant. There is a separate ticket for this and the new test is working fine.
Comment #9
claudiu.cristeaThank you!
Comment #10
claudiu.cristeaFix credits.