Last modified: 2013-10-04 22:18:58 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 T56428, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54428 - Expose proposed ping info in the API
Expose proposed ping info in the API
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 54426
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-21 15:00 UTC by Mark A. Hershberger
Modified: 2013-10-04 22:18 UTC (History)
5 users (show)

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


Attachments

Description Mark A. Hershberger 2013-09-21 15:00:27 UTC
The information in the bug 54426 should be exposed in an API call to the wiki that is making the call.  This information might be added to meta=siteinfo.
Comment 1 MZMcBride 2013-09-21 15:02:31 UTC
Can you be more specific in this bug, please?
Comment 2 Mark A. Hershberger 2013-09-21 15:10:16 UTC
(In reply to comment #1)
> Can you be more specific in this bug, please?

 * Logo URL
 * A single line description (tagline) for the wiki
 * Perhaps a longer description of what the wiki is intended for what is needed.
Comment 3 MZMcBride 2013-09-21 15:52:32 UTC
(In reply to comment #2)
>  * Logo URL

This should be trivial.

>  * A single line description (tagline) for the wiki

I suppose we can use the value of [[MediaWiki:Tagline]] for this. But I imagine most wikis won't have customized this message.

>  * Perhaps a longer description of what the wiki is intended for what is
> needed.

What do you propose to use for this?
Comment 4 Brad Jorsch 2013-09-21 15:56:52 UTC
Bug 54426 is requesting an extension. That extension should provide its API calls, not core.
Comment 5 Mark A. Hershberger 2013-09-24 02:34:17 UTC
(In reply to comment #4)
> Bug 54426 is requesting an extension. That extension should provide its API
> calls, not core.

I meant the information being sent to the ping server (Comments 1,2,3 in bug 54426) should be made available via the API.
Comment 6 Brad Jorsch 2013-09-24 13:35:13 UTC
(In reply to comment #5)
> I meant the information being sent to the ping server (Comments 1,2,3 in bug
> 54426) should be made available via the API.

You really should list what you're actually requesting here.

"Logo URL" could well be added to siteinfo.

If by "A single line description (tagline) for the wiki" you mean MediaWiki:Tagline, then that's already available: https://en.wikipedia.org/w/api.php?action=query&meta=allmessages&ammessages=Tagline. If you mean something else, then as far as I know it doesn't actually exist in core which makes it impossible to be added to the API in core.

"Perhaps a longer description" also suffers from the "does not actually exist" problem, and so also cannot be added.

As for "URL for wiki", if you're accessing the API you probably already know it. But just in case, it's easy enough to determine from the 'articlepath' and other variables returned by https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo.

For "Wiki name", that's also in https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo as 'sitename'.

"Version being installed" doesn't make any sense in the API, since the wiki is already installed. But if you want the version currently running, that's also in https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo as 'generator' and possibly also 'git-hash'.

"Activated extensions" is already available as https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=extensions.
Comment 7 Gerrit Notification Bot 2013-09-24 13:35:38 UTC
Change 85846 had a related patch set uploaded by Anomie:
API: Add output of wgLogo to meta=siteinfo

https://gerrit.wikimedia.org/r/85846
Comment 8 Gerrit Notification Bot 2013-10-04 19:39:09 UTC
Change 85846 merged by jenkins-bot:
API: Add output of wgLogo to meta=siteinfo

https://gerrit.wikimedia.org/r/85846
Comment 9 Brad Jorsch 2013-10-04 20:35:04 UTC
Since the one actually-existing item that was missing has now been added, I'm marking this RESOLVED.
Comment 10 Mark A. Hershberger 2013-10-04 22:18:58 UTC
(In reply to comment #6)
> "Perhaps a longer description" also suffers from the "does not actually
> exist" problem, and so also cannot be added.

I guess I need to add create a bug for this that depends on bug #54431.

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


Navigation
Links