Page MenuHomePhabricator

MediaWiki-Action-APIComponent
ActivePublic

Details

Description

Tasks about MediaWiki core' Action API.

This includes:

  • Api framework (e.g. the ApiBase and ApiQuery base classes, and its central features such as generators, batching, and continuation).
  • "api.php" entrypoint and related configuration and service wiring.
  • ApiSandbox feature (previously MediaWiki-extensions-ApiSandbox).

In general however, tasks about specific APIs should instead be filed instead under the component (e.g. use MediaWiki-Recent-changes for issues with the recentchanges API). For the time being, tasks about core built-in API modules that don't fall under any component may be reported here.

Documentation: https://www.mediawiki.org/wiki/API
Maintainer: MediaWiki-Engineering
Parent project: MediaWiki-General

See also: MediaWiki-REST-API

Recent Activity

Yesterday

gerritbot added a project to T378147: Block API: Add support for multiblocks: Patch-For-Review.
Fri, Nov 29, 7:34 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
gerritbot added a comment to T378147: Block API: Add support for multiblocks.

Change #1099149 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/core@master] ApiBlock: Start adding multiblocks support to the action=block API

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

Fri, Nov 29, 7:34 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Samwilson updated the task description for T378147: Block API: Add support for multiblocks.
Fri, Nov 29, 5:53 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Samwilson added a comment to T378147: Block API: Add support for multiblocks.

We talked a bit the other day about how to interpret having both a user and blockid param, and I think we decided to throw an error if both are provided. The description currently says "No need for a username/ip", but I don't think we want to support changing the target of a block, so I'll change that.

Fri, Nov 29, 5:49 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)

Thu, Nov 28

Nikerabbit merged task T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction] into T380126: Translate error validator gets confused if there are pre tags in the content.
Thu, Nov 28, 1:11 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Maintenance_bot removed a project from T371621: ApiUsageException: Could not normalize image parameters for [file].pdf.: Patch-For-Review.
Thu, Nov 28, 12:31 PM · MediaWiki-Action-API, User-brennen, Wikimedia-production-error
gerritbot added a comment to T371621: ApiUsageException: Could not normalize image parameters for [file].pdf..

Change #1089710 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@master] SpecialMediaSearch: Add error handling for search API errors

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

Thu, Nov 28, 11:34 AM · MediaWiki-Action-API, User-brennen, Wikimedia-production-error

Tue, Nov 26

Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

If my hypothesis about what caused this is right then the fix for T380126 in WMF-5 will have caused this error to stop happening. Otherwise more details (i.e what the parameters of the API request are) will be needed to debug.

Tue, Nov 26, 1:15 AM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error

Mon, Nov 25

BPirkle closed T245717: ApiQuerySiteInfo: add/remove user groups sometimes given as an object instead of array as Invalid.

Closing per last comment. If there is still work to be done, this can be reopened.

Mon, Nov 25, 11:23 PM · Platform Engineering (Icebox), User-DannyS712, MediaWiki-User-management, MediaWiki-Action-API
Xqt placed T195992: API claims query is over 12mb but it is not up for grabs.
Mon, Nov 25, 6:58 PM · Pywikibot, User-revi, Pywikibot-replace.py, MediaWiki-Action-API
Xqt closed T195992: API claims query is over 12mb but it is not as Resolved.

Haven't seen this error anymore, neither with Pywikibot 9.3.1 not with the current master 9.6.0. Maybe it is solved upstream somehow :

Mon, Nov 25, 6:28 PM · Pywikibot, User-revi, Pywikibot-replace.py, MediaWiki-Action-API

Fri, Nov 22

Aklapper added a project to T380629: Special:ApiSandbox error when the 'groupdescription' is not set for an 'aggregategroup' action: MediaWiki-Action-API.

I don't immediately see how this is related to the Translate extension but feel free to correct me

Fri, Nov 22, 5:36 PM · Unplanned-Sprint-Work, LPL Essential (LPL Essential 2024 Nov-Dec), MW-1.44-notes (1.44.0-wmf.6; 2024-12-03), MediaWiki-extensions-Translate

Thu, Nov 21

JWheeler-WMF moved T378147: Block API: Add support for multiblocks from CommTech Backlog to Jackal (not a fox) Fox on the Community-Tech board.
Thu, Nov 21, 5:12 PM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
thcipriani moved T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction] from Untriaged to Nov 2024 on the Wikimedia-production-error board.
Thu, Nov 21, 4:40 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Krinkle added a project to T299760: Circular continue response with generator categorymembers and large category: MediaWiki-Categories.
Thu, Nov 21, 2:31 PM · MediaWiki-Categories, MediaWiki-Action-API

Tue, Nov 19

dmaza moved T378148: Unblock API: Add support for multiblocks from Ready for dev to In development on the Community-Tech (Jackal (not a fox) Fox) board.
Tue, Nov 19, 10:12 PM · Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
dmaza claimed T378148: Unblock API: Add support for multiblocks.
Tue, Nov 19, 10:11 PM · Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Aklapper placed T215121: Expose actor IDs via the API up for grabs.

@roman-stolar: Removing task assignee as this open task has been assigned for more than two years - See the email sent to task assignee on October 11th.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome! :)
If this task has been resolved in the meantime, or should not be worked on by anybody ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!

Tue, Nov 19, 6:13 PM · Platform Team Workboards (S&F Workboard), MediaWiki-Action-API
karapayneWMDE updated subscribers of T378309: parsedcomment API property for external watchlist items should be rendered externally.

@Ifeatu_Nnaobi_WMDE , @WMDECyn , this looks like one for your team. happy to chat about the details if needed

Tue, Nov 19, 3:23 PM · Wikidata Integration in Wikimedia projects, MediaWiki-extensions-WikibaseClient, Wikidata, Growth-Team, Wikidata Change Dispatching & Watchlists, MediaWiki-Watchlist, MediaWiki-Action-API
karapayneWMDE removed a project from T378309: parsedcomment API property for external watchlist items should be rendered externally: Wikidata Dev Team.
Tue, Nov 19, 3:20 PM · Wikidata Integration in Wikimedia projects, MediaWiki-extensions-WikibaseClient, Wikidata, Growth-Team, Wikidata Change Dispatching & Watchlists, MediaWiki-Watchlist, MediaWiki-Action-API

Mon, Nov 18

Pppery added a project to T282574: API:Block invalid page restriction should return warning rather than fatal error: MediaWiki-Action-API.
Mon, Nov 18, 6:52 PM · MediaWiki-Action-API, Trust and Safety Product Team, MediaWiki-Blocks
Aklapper renamed T379353: CreateAccount API call does not set the 'Email' field from Issue with CreateAccount API call to CreateAccount API call does not set the 'Email' field.
Mon, Nov 18, 3:56 PM · MediaWiki-Action-API
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Mon, Nov 18, 10:28 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Mon, Nov 18, 10:21 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Mon, Nov 18, 10:18 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Mon, Nov 18, 10:16 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Mon, Nov 18, 10:16 AM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378148: Unblock API: Add support for multiblocks.
Mon, Nov 18, 10:14 AM · Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)

Sun, Nov 17

Tacsipacsi added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

Why Special:Watchlist, why not Special:EditWatchlist or Special:EditWatchlist/raw? All three can be equally appropriate, so none of them is really appropriate.

Sun, Nov 17, 6:12 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

Pass Special:UserLogin or Special:Watchlist respectively?

Sun, Nov 17, 6:09 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Tacsipacsi added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

And the ApiUsageException tree should pass a title to truly render this class of errors moot once and for all.

Sun, Nov 17, 10:24 AM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error

Sat, Nov 16

Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

Actually I could totally imaging this happening:

Sat, Nov 16, 10:47 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

Note that the template call doesn't need to be in the message - it's far more likely to be in the parameters to the message. There are a bunch of messages that include parameters with user controlled text that could trigger in this context, but the only ones that are at all plausible are AbuseFilter and Translate's syntax checker for invalid translate syntax.

Sat, Nov 16, 10:29 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].
Sat, Nov 16, 10:16 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].
Sat, Nov 16, 9:51 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

In order for it to reach the place in the stack trace it does, it must produce AS_HOOK_ERROR or AS_HOOK_ERROR_EXPECTED. The latter case can only ever trigger with the hookaborted message, which is pure, so that's a non-starter.

Sat, Nov 16, 9:50 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Pppery added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

Ideally we would know what that message is that is doing something weird. Unfortunately the stack trace doesn't tell us.

Sat, Nov 16, 9:33 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error
Tacsipacsi added a comment to T379808: PHP Deprecated: Use of MediaWiki\Parser\Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from MediaWiki\Extension\Translate\HookHandler::translateRenderParserFunction].

This was supposed to be fixed by rETRA68d2e8d5ffe7: Avoid calling Parser::getPage() when no title is set but something is parsing an interface message without the interface message flag set.

Sat, Nov 16, 9:25 PM · MediaWiki-Action-API, MediaWiki-extensions-Translate, User-brennen, Wikimedia-production-error

Fri, Nov 15

Pppery removed a project from T89318: Replace on-wiki API documentation with Special:ApiHelp transclusion: Web-APIs-Hub.
Fri, Nov 15, 7:42 PM · MediaWiki-Action-API, Documentation
Pppery reopened T89318: Replace on-wiki API documentation with Special:ApiHelp transclusion as "Open".
Fri, Nov 15, 7:42 PM · MediaWiki-Action-API, Documentation
Samwalton9-WMF added a comment to T16712: API: logevents do not have a namespace filter.

lenamespace was added with gerrit 135283

Fri, Nov 15, 12:30 PM · MediaWiki-Action-API
thiemowmde added a comment to T379115: Messages "Apihelp-query+revisions-param-startid" and "Apihelp-query+revisions-param-endid" have wrong wording.

I really don't know what else I could add. The change currently suggested in https://gerrit.wikimedia.org/r/1089273 is wrong or at least misleading. Start enumeration from this revision's ID sounds like the entries would be filtered and odered based on their revision ids. But this is not what happens. The entries are filtered and ordered starting with the timestamp of the revision identified by the revision id in start.

Fri, Nov 15, 8:51 AM · Patch-For-Review, I18n, MediaWiki-Action-API

Thu, Nov 14

Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Thu, Nov 14, 9:27 PM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Thu, Nov 14, 9:27 PM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Thu, Nov 14, 9:26 PM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378147: Block API: Add support for multiblocks.
Thu, Nov 14, 9:23 PM · Patch-For-Review, Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378148: Unblock API: Add support for multiblocks.
Thu, Nov 14, 9:12 PM · Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Cparle updated the task description for T378148: Unblock API: Add support for multiblocks.
Thu, Nov 14, 9:11 PM · Community-Tech (Jackal (not a fox) Fox), MediaWiki-Action-API, Multiblocks (Actual multiblocks)
Wargo added a comment to T379115: Messages "Apihelp-query+revisions-param-startid" and "Apihelp-query+revisions-param-endid" have wrong wording.

Yes, this is how it converts them internally. But purpose is to provide (in API call) ID to startid and if you want to provide timestamp instead, start.

Thu, Nov 14, 3:16 PM · Patch-For-Review, I18n, MediaWiki-Action-API
thiemowmde added a comment to T379115: Messages "Apihelp-query+revisions-param-startid" and "Apihelp-query+revisions-param-endid" have wrong wording.

I'm really sorry, but I don't understand what you mean. There is an existing field for providing a timestamp called "start". But that's not what's discussed here. I found it helpful to read the code to understand better how the different "start"/"startid" and "end"/"endid" fields interact.

Thu, Nov 14, 12:25 PM · Patch-For-Review, I18n, MediaWiki-Action-API