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)

I think we could consider this task in the context of T337089: [Epic] Implement global contributions feature, cc @mszabo @Niharika

I think it would be worthwhile to do this if T337089 makes this one easier to implement.

OK. For now, I think we should leave it to the side, but could be a nice improvement in the future.