I cleaned up some test pages from the handbooks today. While doing so after hitting the delete button, I was presented with refresh and informed by way of $message that I needed to fill out the log message. This seems unnecessary to fill out a log message that will be deleted with the node anyway?

CommentFileSizeAuthor
#10 378658-Revisions-2.patch938 bytesmgifford
#7 378658-Revisions.patch784 byteswebernet

Issue fork drupalorg-378658

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gábor hojtsy’s picture

Right. The code for this lives in the drupalorg project: in DRUPAL-6--1 in drupalorg.module and in HEAD in drupalorg_handbook.module. Both needs to be fixed, so it will be fine now (DRUPAL-6--1) and after the redesign (HEAD) as well.

webernet’s picture

Issue tags: +drupal.org upgrade

This is rather annoying...

sepeck’s picture

Would it be possible to write the log messages to the User Activity Log? Deletes being a destructive act, I can see this as being valuable to review delete actions not just for Drupal.org but other multi-user sites.

gábor hojtsy’s picture

Any patches against the drupal.org module, where this was implemented are welcome!

dman’s picture

I have no idea about the code involved, but being required to add a log message when deleting sounds like a really good feature!
Of course, not so much if the message gets deleted along with the node, but as a workflow thing it sounds sensible - even if the current situation is not by design - or in fact broken

webernet’s picture

Project: Drupal.org site moderators » Drupal.org customizations
Component: Content moderation » Code
Status: Active » Needs review

Would something like this work?

webernet’s picture

StatusFileSize
new784 bytes
avpaderno’s picture

I have no idea about the code involved, but being required to add a log message when deleting sounds like a really good feature!

It would be good if the log message would be passed to watchdog(); in this way it would be possible to track who deleted the page, and why. Should not it better to log a message when deleting any kind of nodes?

avpaderno’s picture

Version: » 6.x-3.x-dev
mgifford’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Issue summary: View changes
StatusFileSize
new938 bytes

I think this will work in D7. I added a watchdog message too for general tracking of the handbooks.

drumm’s picture

Title: Deleting a handbook page requires adding a log message » Deleting a documentation page requires adding a log message

This also applies to the new documentation pages.

avpaderno’s picture

Should the patch still change the code for book nodes? Book nodes are not used anymore for documentation pages.