Page MenuHomePhabricator

Add summary of on-wiki technical contributions
Closed, ResolvedPublic

Description

From local TODO:

  • /api/sul/[username] - wikimedia sul account info/ldap info (if found)
  • /api/sul/[username]/wiki - wikimedia centralauth (only for wikis with advanced rights)
  • /api/sul/[username]/wiki/edits - wikimedia js/css/json file edits
  • /api/sul/[username]/phabricator - phabricator account info (if found)

Last endpoint here is to enable searching wider contributions via a MediaWiki username, so another text box on the main page. We can potentially discover a user's LDAP account if it's connected to a Phabricator account that's also connected to a MediaWiki account.

Event Timeline

Chlod triaged this task as Medium priority.Dec 7 2025, 11:24 AM
Chlod moved this task from Backlog to Enhancements on the Tool-techcontribs board.
Chlod changed the task status from Open to In Progress.Aug 16 2026, 11:33 AM
Chlod claimed this task.

Last point here accidentally became first point: T432584. Will work on the rest now.

Chlod closed this task as Resolved.EditedAug 20 2026, 5:17 PM

Well, I didn't really follow the API plan in the task description, but the API now exists and the relevant contribution set also now shows up on the tool.

  • /api/sul/[username] - The user, account creation date (by best guess, method is indicated), wikis with at least one edit, and user groups on all wikis
  • /api/sul/[username]/edits - User's technical contribution count, per wiki and per category

and already pre-existing...

  • /api/sul/[username]/ldap - Wikimedia SUL account's LDAP account, if linked (source of truth is LDAP, with Phabricator fallback)
  • /api/sul/[username]/phabricator - Wikimedia SUL account's Phabricator account, if linked (source of truth is Phabricator)
  • /sul/[username] - Get tech contributions by a Wikimedia SUL account name. Permalink will still show /uid/[username] if a developer account was found.

Highlighted user groups are: steward, admin, interface admin, and template editor.

Samples of the newfangled display (which shows up on the top of the page):

There's actually more data that's in the .../edits endpoint (namely a per-wiki breakdown of template/module/CSS/JS/JSON edits), but perhaps that can be used in the future.