Page MenuHomePhabricator

Switch wikilambda_fetch/wikilambdaload_zobjects from Action API to REST API
Open, LowPublic

Description

For scalability. They don't need user-specific access, and we'll be hitting them quite a lot from client-side code.

  • Provide wikilambda_fetch equivalent via the REST API system (patch)
  • Add wikilambdaload_zobjects extras to above API (patch)
  • Add tests
  • Migrate function-orchestrator
  • Migrate front-end
  • Ensure new API is documented
  • Deprecate old Action API endpoints
  • Drop old Action API endpoints

Event Timeline

Jdforrester-WMF renamed this task from Consider switching wikilambda_fetch from Action API to REST API to Consider switching wikilambda_fetch/wikilambdaload_zobjects/etc. from Action API to REST API.Feb 24 2021, 5:30 PM
Jdforrester-WMF updated the task description. (Show Details)

Change #1018807 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Introduce rest/wikifunctions/v0/fetch/<zids> REST API

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

Change #1018808 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] RESTAPI/FetchHandler: Add getDependencies feature from ApiQueryZObjects

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

Jdforrester-WMF changed the task status from Open to In Progress.Apr 11 2024, 5:15 PM
Jdforrester-WMF claimed this task.
Jdforrester-WMF triaged this task as High priority.

Change #1018807 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Introduce rest/wikifunctions/v0/fetch/<zids> REST API

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

Jdforrester-WMF renamed this task from Consider switching wikilambda_fetch/wikilambdaload_zobjects/etc. from Action API to REST API to Switch wikilambda_fetch/wikilambdaload_zobjects from Action API to REST API.Apr 16 2024, 3:49 PM

Change #1018808 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] RESTAPI/FetchHandler: Add getDependencies feature from ApiQueryZObjects

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

Aklapper changed the task status from In Progress to Open.Apr 11 2025, 10:20 PM
Aklapper subscribed.

Resetting task status from "In Progress" to "Open" as this task has been "in progress" for more than one year (see T380300). Feel free to set that status again, or rather break down into smaller subtasks.

Change #1172504 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/extensions/WikiLambda@master] RESTAPI: Enable Varnish cache by fixing typo in "s-maxage"

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

Change #1172504 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] RESTAPI: Fix typo in "s-maxage" to enable Varnish caching

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

Jdforrester-WMF lowered the priority of this task from High to Low.Sep 30 2025, 6:24 PM

Stalled on cache eviction strategy discussion.