Page MenuHomePhabricator

Let getLocationAgnosticMwApi accept API options
Closed, ResolvedPublic

Description

This would allow passing in additional options like { anonymous: true }, which would tell ForeignApi (and centralauth's version thereof) to not perform the token requests, when they're not needed.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 650140 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[wikibase/javascript-api@master] Let getLocationAgnosticMwApi accept API options

https://gerrit.wikimedia.org/r/650140

Above patch should suffice, but needs someone with wikibase/javascript-api repo knowledge/access to CR.

Change 650140 merged by jenkins-bot:
[wikibase/javascript-api@master] Let getLocationAgnosticMwApi accept API options

https://gerrit.wikimedia.org/r/650140

Actually - is there a timeline for releasing the next version of this repo?
It looks like (except for this patch) nothing has happened in this repo for the past 8 months, so I'm worried it'll sit around for a long time.
If there's no plan to release this soon, that's ok - in that case MediaSearch can simply reimplement something like getLocationAgnosticMwApi.

Change 678228 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/MediaSearch@master] Use a copy of getLocationAgnosticMwApi

https://gerrit.wikimedia.org/r/678228

Moving a copy of this into MediaSearch extension. This way, we are no longer blocked by the wikibase/javascript-api's release schedule (which hasn't had a release in almost a year), and can lose that dependency.

Removing Wikidata tags since this ticket is no longer relevant for them, nor does it require any action on their part.

Change 678228 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@master] Use a copy of getLocationAgnosticMwApi

https://gerrit.wikimedia.org/r/678228