We came across a scenario in our project, where we need to check logs for revision deletion if there is a content loss. Here is patch for adding log entried for revisions deleted.

Comments

Sharique created an issue. See original summary.

adriancid’s picture

Thanks for the patch, I think will be better to add a configuration option to use this feature, can you work adding the configuration in the module configuration page?

guilhermevp’s picture

StatusFileSize
new9.2 KB
new3.73 KB

Hi! I created the config in /admin/config/content/node_revision_delete.

1

Maybe the wording can be better, but it works.

Status: Needs review » Needs work

The last submitted patch, 3: 3216761-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adriancid’s picture

You need to update the existing tests and add one to test if the log is working.

miiimooo’s picture

Looking at this I wonder how useful it is: I guess if you have a copy of the db before deletion, you can look up the affected nodes based on revision id. But what would be nice is to also get the node id (or even title?)

adriancid’s picture

Status: Needs work » Closed (duplicate)
Related issues: +#3321626: Log revision deletion

Closing because we have a working patch in #3321626: Log revision deletion and I will give credit there