Page MenuHomePhabricator

Show global contribution info in the infobox and popup
Open, Needs TriagePublic

Description

We intend to display the number of edits across all wikis from the IP on both the infobox and popup.

AC

  • The number of edits across all wikis from the IP is provided by the IP Info APIs

Notes

  1. The value can be retrieved from the ipinfo_ip_changes table with the following:
$centralDB = 'wikishared';

$ipHex = IPUtils::toHex( $ip );
$n = MediaWikiServices::getInstance()
  ->getDBLoadBalancerFactory()
  ->getMainLB( $centralDB )
  ->getConnection( ILoadBalancer::DB_REPLICA )
  ->selectRowCount(
    '*',
    'ipinfo_ip_changes',
    [
      'ipc_ip_hex' => $ipHex,
    ]
  );

Event Timeline

phuedx renamed this task from Global contribution info in the popup to Show global contribution info in the infobox and popup.Nov 10 2021, 12:34 PM
phuedx updated the task description. (Show Details)