Page MenuHomePhabricator

Display number of autoconfirmed users in Special:Statistics
Closed, DeclinedPublic

Description

As mentioned on T193396#4176321

Can we display autoconfirmed group on arwiki Special:Statistics? or it'll be hard?

Event Timeline

Urbanecm renamed this task from added autoconfirmed group on ar.wikipedia special:Statistics to Display number of autoconfirmed users in Special:Statistics.May 2 2018, 8:44 PM
Urbanecm edited projects, added MediaWiki-General; removed Wikimedia-Site-requests.

Is it for only arwiki or whole MediaWiki?

it'll be hard?

Of course not, According to core\includes\specials\SpecialStatistics.php

# Skip generic * and implicit groups
if ( in_array( $group, $this->getConfig()->get( 'ImplicitGroups' ) )
	|| $group == '*' ) {
	continue;
}

For Skiping, Special:Statistics takes value from $wgImplicitGroups (From includes/DefaultSettings.php)

/**
 * Implicit groups, aren't shown on Special:Listusers or somewhere else
 */
$wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];

At this point, there are three possibilities.

  • If it is whole MediaWiki, then Someone needs to remove 'autoconfirmed' from core/includes/DefaultSettings.php
  • If it is only Wikimedia-cluster, then Someone needs to re-define $wgImplicitGroups in wmf-config/CommonSettings.php, which will bad practise.
  • If it is only arwiki, then Someone needs to add 'wgImplicitGroups' in wmf-config/InitialiseSettings.php

Thank you for the config variable! I'm not sure if just removing autoconfirmed from $wgImplicitGroups will help, because "$wgImplicitGroups is an array of groups that aren't shown in Special:Listusers and on a few other places".

For shoiwing only stats, We can do it by just replace it

# Skip generic * and implicit groups expect autoconfirmed
$ImplicitGroups = $this->getConfig()->get( 'ImplicitGroups' );
$ImplicitGroups_without_autoconfirmed = array_diff($ImplicitGroups, array('autoconfirmed'));
if ( in_array( $group, $ImplicitGroups_without_autoconfirmed )
	|| $group == '*' ) {
	continue;
}

But recently I see that Stats were 0, Looking into SiteStats::numberingroup, I found that SiteStats::numberingroup takes $group for SQL query, and autoconfirmed is not present in ug_group, Sorry was thought autoconfirmed will present in table :(

Is it for only arwiki or whole MediaWiki?

  • If it is only arwiki, then Someone needs to add 'wgImplicitGroups' in wmf-config/InitialiseSettings.php

We request this for ar.wiki, but @Urbanecm fix this task name T193673#4176367

I think it'll be for whole MediaWiki, probably

Firstly the MediaWiki engine must support this. If it will be displayed out of the box or after turning certain config variable on is up to futher discussion. Currently, it isn't possible.

The autoconfirmed right is check on each usage and never stored in the database and therefor not countable on stats. Thats why it is an implict right, not an explicit right.

autoconfirmed can changed when the autoconfirmend condition are changed (for example Tor user have other conditions than normal users), so there is no count for this.

I would say this is a WONTFIX, similar to T32159

Closing task as declined as per technical implementation arguments in previous comment.

Vvjjkkii renamed this task from Display number of autoconfirmed users in Special:Statistics to irdaaaaaaa.Jul 1 2018, 1:12 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot raised the priority of this task from High to Needs Triage.Jul 3 2018, 2:01 AM