Page MenuHomePhabricator

Make it easier to figure out from the log what message content was sent using MassMessage
Open, LowPublicFeature

Description

As discussed at https://meta.wikimedia.org/w/index.php?title=Meta:Requests_for_help_from_a_sysop_or_bureaucrat&oldid=9615966#Revisiting_massmessage_rights, we currently maintain a log of MassMessage deliveries at (for example) m:Special:Log/massmessage.

However, this log does not currently include a link to a copy of the message that was sent and it requires tedious manual work to cross-reference a message delivery with its message content at the moment. The current log entry is roughly:

LivingBot (talk | contribs | block) sent a message to Global message delivery/Targets/Signpost (''The Signpost'': 20 August 2014)

"Global message delivery/Targets/Signpost" is a permalink to the delivery targets/input list, but the text "a message" could also possibly be a link to a copy of the message stored somewhere in the wiki database.

One idea is to have a page such as "Project:MassMessage archive" that gets overwritten with each delivery, providing a record of the message that was sent using a permalink. Or perhaps use "Project:MassMessage archive/dated/subpage/id" as a page title format instead and don't overwrite.

Another idea is to unconditionally post the message being delivered to the initiator's talk page, which would also provide a usable permalink.

One consideration here is that it may be possible in the future to send multiple versions or variants of a message at once, so creating a snapshot of the message(s) being sent may become more complex in the future. I'm thinking of translated messages in particular.


Version: unspecified
Severity: enhancement

Details

Reference
bz69953

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:38 AM
bzimport added a project: MassMessage.
bzimport set Reference to bz69953.
bzimport added a subscriber: Unknown Object (MLST).

I like the idea of using a page that keeps getting overwritten. One crude workaround for the message variants issue would be to just wrap the raw message as entered by the sender in <pre><nowiki>, since the output really isn't all that important for purposes of record keeping.

Tgr set Security to None.
Tgr subscribed.

Messages can also contain substed templates which is difficult to represent accurately in a page revision. (Of course, a log of message texts would be useful even if that bit would be inaccurate.)

I would support keeping track of messages this way if possible. For the record, the log entry referred to is defined in the function pasted below

public static function logToWiki( Title $spamlist, User $user, $subject ) {
		$logEntry = new ManualLogEntry( 'massmessage', 'send' );
		$logEntry->setPerformer( $user );
		$logEntry->setTarget( $spamlist );
		$logEntry->setComment( $subject );
		$logEntry->setParameters( [
			'4::revid' => $spamlist->getLatestRevID(),
		] );
		$logid = $logEntry->insert();
		$logEntry->publish( $logid );
	}
Nemo_bis renamed this task from Make it easier to figure out what message was sent using MassMessage to Make it easier to figure out from the log what message content was sent using MassMessage.Feb 17 2020, 9:36 AM

One idea is to have a page such as "Project:MassMessage archive" that gets overwritten with each delivery, providing a record of the message that was sent using a permalink. Or perhaps use "Project:MassMessage archive/dated/subpage/id" as a page title format instead and don't overwrite.

Another idea is to unconditionally post the message being delivered to the initiator's talk page, which would also provide a usable permalink.

I also like either idea. As Tgr notes, the wikitext can be anything, so the text would need to be in <pre> tags , or otherwise unparsed, so that the entirety of the submitted wikitext is shown. Both the sender's user talk and an archive page may not be suitable targets for the specific wikitext, for instance if it relies on templates which don't exist on the sending wiki.

Nikerabbit changed the subtype of this task from "Task" to "Feature Request".Jan 26 2022, 10:01 AM
Aklapper triaged this task as Low priority.Feb 4 2022, 10:51 AM
Aklapper removed a subscriber: Tbayer.