Page MenuHomePhabricator

site info for extensions doesn't include git version and date
Closed, ResolvedPublic

Description

Special:Version on some wikis includes the date and hash of an extension from its git repository, e.g. https://wikitech.wikimedia.org/wiki/Special:Version

But the siteinfo API query for extensions does not return this information,
e.g. https://wikitech.wikimedia.org/w/api.php?action=query&meta=siteinfo&siprop=extensions

It would be nice if siteinfo provided this info. One use case is finding out the version of an extension that a wiki is running, so remote browsertests can run matching code.

The code is in SpecialVersion::getVersionLinkedGit() but it's not factored well for reuse (returns a string). Maybe GitInfo.php should provide this information to callers.


Version: unspecified
Severity: normal

Details

Reference
bz58606

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:30 AM
bzimport set Reference to bz58606.
bzimport added a subscriber: Unknown Object (MLST).

bug 48418 requests extra info from siteinfo. Gerrit 65299 returns additional info about extensions, including its commit hash, but not the date.

  • This bug has been marked as a duplicate of bug 48418 ***