Page MenuHomePhabricator

Support sending only the specified section of a translatable page using Special:MassMessage
Closed, ResolvedPublic

Description

Translatable pages contain things such as language selector, instructions, categories, etc. which should not be included when sending a message.

Currently TechNews uses <section> tag to mark the real contents. This tag is provided by MediaWiki-extensions-LabeledSectionTransclusion. Special:MassMessage should detect if it is installed, see what sections are available on the page, and allow choosing one of them.

Event Timeline

Just wondering if the message prrocessing order should be selected as a applicable language before the Abuse Filter.

The current behaviour processes the message by Language Select after the Abuse FIlter.

Just had an example from Cantonese Wikipedia diff and it triggers several keywords that intended to filter out the phrases which only used in Chinese Wikipedia, however the actual phrases did not use in the Cantonese Wikipedia.
https://zh-yue.wikipedia.org/wiki/Special:Diff/1430495

I have no idea what do you mean, but since TechNews are not currently using the functionality described in the task (since it doesn't even exist yet), it cannot be cause what you described.

I've take the example above to explaining the symptoms for the one.

The actual diff for the page change are shown on the above link.

However the AbuseFilter was triggered by several keywords using the Abuse Filter using the added_lines value. (Although the keywords does not exist on both Cantonese and English texts, where English was the fallback text)

The actual value contained in added_lines variable (value pasted as link below) was the one before processed by the Language Select, so the order of precedence by the Language Select and Abuse Filter was the root cause that triggering with this symptom.
https://pastebin.com/M4G6YkTk

If you mean that text from other languages hit abuse filter, before they are hidden by subst, then this will no longer happen. But that is not related to this task, but one of the other subtasks.

I couldn't find any existing subtasks for this symptom. Looks likely it's necessary to create a new subtask onto the parent task.

I've added this one onto T254607 to explaining the issue stated above.

Change 631176 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/MassMessage@master] Add support for sending only the specified section of a page

https://gerrit.wikimedia.org/r/631176

Change 631176 merged by jenkins-bot:
[mediawiki/extensions/MassMessage@master] Add support for sending only the specified section of a page

https://gerrit.wikimedia.org/r/631176

Tested this on Meta. Latest changes to send sections of pages works well with translatable pages + language fallbacks.

Unrelated issue noticed

I tried sending this page: https://meta.wikimedia.org/wiki/User:APatro_(WMF)/T165128_TestPage before marking it for translations to this list: https://meta.wikimedia.org/wiki/Test_mass_message_delivery_list_for_APatro_(WMF)_2020-06-29

Getting the following error code: massmessage-page-section-invalid (https://www.mediawiki.org/wiki/Special:Log?type=massmessage&user=&page=&wpdate=&tagfilter=&subtype=failure)

I think this is because, the latest changes in the page that have the section have not been marked for translation.