Page MenuHomePhabricator

Get license of an extension via API
Open, LowPublic

Description

Hello,

It would be nice to have a way to get the license of an extension with the API.
This would allow external tools to only list extensions compatible with some license requirements.

Event Timeline

Rudloff created this task.Aug 18 2016, 12:42 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 18 2016, 12:42 PM
Aklapper renamed this task from Get license info with API to Get license of an extension via API.Aug 21 2016, 5:58 PM
Aklapper triaged this task as Low priority.

Unless I'm misunderstanding the request, this can already be done via action=query&meta=siteinfo&siprop=extensions - https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=extensions. For each extension, the name of the license and a link to it are given if they are defined. This was added as part of T50418 in https://gerrit.wikimedia.org/r/65299.

Restricted Application added a project: Core Platform Team. · View Herald TranscriptJul 24 2019, 4:54 PM
Anomie added a subscriber: Anomie.Jul 24 2019, 5:07 PM

It seems to me it's more likely asking for a new feature in ExtensionDistributor, rather than being about the extensions actually installed on a wiki.

Aklapper closed this task as Declined.Jul 24 2019, 6:26 PM

Boldly declining per last two comments.
Either this already exists (see DannyS712's comment) or it should be implemented outside of MediaWiki core (see Anomie's comment).

Legoktm reopened this task as Open.Jul 24 2019, 6:36 PM
Legoktm removed a project: MediaWiki-API.
Legoktm added a subscriber: Legoktm.

Right, this is a feature request for ExtensionDistributor . The currently existing API is for extensions that are installed, not those that are available to be downloaded from the distributor.

or it should be implemented outside of MediaWiki core (see Anomie's comment).

But don't we track ExtensionDistributor tasks here in Phabricator too?

I'm going to reopen on that basis, at least until the CPT Triage meeting.

Argh, I missed that tag on this task. Sorry and thanks for the correction!