Last modified: 2012-06-29 20:05:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38453, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36453 - Provide the git info on action=query&meta=siteinfo
Provide the git info on action=query&meta=siteinfo
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-02 17:26 UTC by Helder
Modified: 2012-06-29 20:05 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2012-05-02 17:26:17 UTC
On [[Special:Version]] it is shown the following:
+-----------+--------------------+
| Product   | Version            |
+-----------+--------------------+
| MediaWiki | 1.20wmf1 (3e1bae7) |
+-----------+--------------------+
| ...

Prior to git migration, there was an SVN revision number instead of the code "3e1bae7", and it was possible to get it from API by using the "rev" property in a query such as this:
https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&format=jsonfm

Now that MW is uses Git, there doesn't seems to be a way to get the "3e1bae7" because the "rev" is not defined.

The relevant code seems to be at
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/api/ApiQuerySiteinfo.php;h=e11d1105262af5ec919568c1240067a9cfe94558;hb=HEAD#l123

Could someone add an analogous code which would result in things such as "3e1bae7"?
Comment 1 Mark A. Hershberger 2012-05-04 17:42:11 UTC
[[Special:Version]] now shows "MediaWiki 1.20wmf1 (82f3370)" with 82f3370 linked to a non-existent revision.  Extensions are linked, though and the links are working.

Exposing this information via the API is probably necessary since the core and extensions don't all pull from the same repository.
Comment 2 Max Semenik 2012-06-29 20:05:23 UTC
https://gerrit.wikimedia.org/r/13501

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links