Page MenuHomePhabricator

Re-enable recent changes patrol to fiwiki
Closed, ResolvedPublic


Hi we would like to re-enable the recent changes patrolling to finnish wikipedia.

Patrolling was toggled off in fiwiki at September 2012 because fiwiki enabled the FlaggedRevs extension and patrolling become redundant (phab T41942) and now there was discussion in fiwiki at 26. may 2016 and it was ok for community to toggle it back on. Reason for this is that when $wgUseRCPatrol is enabled with the Flagged Revision flagged revisions are marked as patrolled in Recent Changes so tools like Real time recent changes [1] and RCFeed [2] would be more usable. It was also tested in testwiki that patrol markings should be working when both flaggedrevs and patrolling are enabled.

About user rights. There should be no autopromote for patrollers, but just "patrol" user right for "editor" and "reviewer" and "autopatrol" user right for user group "autoreview". I think that change to the flaggedrevs.php setting would be something like:

$wgGroupPermissions['editor']['patrol'] = true;
$wgGroupPermissions['editor']['autopatrol'] = true;
$wgGroupPermissions['reviewer']['patrol'] = true;
$wgGroupPermissions['reviewer']['autopatrol'] = true;
$wgGroupPermissions['autoreview']['autopatrol'] = true;

However there is other changes needed to other config files too (InitialiseSettings.php?), but i don't know what technically is needed for enabling the patrolling so please just implement needed changes :)


Event Timeline

Urbanecm moved this task from Backlog to Working on on the User-Urbanecm board.
Urbanecm moved this task from Backlog to Working on on the Wikimedia-Site-requests board.

Change 308764 had a related patch set uploaded (by Urbanecm):
Enable RC patrol for fiwiki and some permissions changes

Will be deployed at September 07 13:00-14:00 UTC. This might change due to my time availability.

Hmm, I think that there is still old autopromote for patroller group which should be removed at InitialiseSettings.php?

'wmgAutopromoteExtraGroups' => [

	'fiwiki' => [
		'patroller' => [ '&',
				[ APCOND_EDITCOUNT, 1000 ],
				[ APCOND_AGE, 100 * 86400 ],

Sorry, I understood your task wrong. I thought I shouldn't set up any kind of autopromote and not I should remove autopromoting. Fixed, see the patch.

May I suggest to stop using FlaggedRevs-like usergroup names (if FR are
removed) and name the groups autopatrolled and patroller?

It looks fine to me and thanks for the fast response.

@MarcoAurelio This is for me or for @Zache?

Just thinking out loud. Don't worry :)

@MarcoAurelio, currently we don't have in fiwiki plans to remove FR.

Ah, then I misread the request. I though you were requesting this because
you wanted to remove FlaggedRevs, which is not the case. Sorry and thank

And still one suggested change. I think that the values should be key => value pairs as the other values in groupOverrides are (?)


'editor' => [ 'patrol', 'autopatrol'], // T144817
'reviewer' => [ 'patrol', 'autopatrol' ], // T144817
'autoreview' => [ 'autopatrol' ], // T144817


'editor' => [ 'patrol'  => true, 'autopatrol' => true], // T144817
'reviewer' => [ 'patrol' => true, 'autopatrol' => true ], // T144817
'autoreview' => [ 'autopatrol' => true ], // T144817

Change 308764 merged by jenkins-bot:
Enable RC patrol for fiwiki and some related changes

It should be deployed. Please test it and if something will be wrong, reopen this task and describe what.

Thank you, it seems to be working as planned.

For other who are using the FlaggedRevs and planning to enable the recent changes patrol for getting the rc_patrolled flag. In finnish wikipedia we also locally hide the RCPatrol UI elements from UI with following local CSS:

.unpatrolled { display:none }
.patrollink { display:none }
.mw-enhanced-rc > .unpatrolled { 
	display: inline;  
	visibility: hidden;