(Go: >> BACK << -|- >> HOME <<)

Page MenuHomePhabricator

Consolidate all in-Vue API calls into our mixins/api.js file
Closed, ResolvedPublic

Description

We have a 'mixins/api.js' file destined to centralize all front-end API calls but many of them are distributed around vuex store actions.

We should move all of these into this file.

This will be helpful when we want to integrate other functionalities related to API calls and unified handling of returns (like, for example, show error toast messages)

Event Timeline

Jdforrester-WMF renamed this task from Take all front-end API calls to mixins/api.js to Consolidate all in-Vue API calls into our mixins/api.js file.Aug 18 2022, 5:32 PM

Change 835722 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] move all API calls in a single mixins/api.js file

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

Change 835722 abandoned by Jforrester:

[mediawiki/extensions/WikiLambda@master] move all API calls in a single mixins/api.js file

Reason:

No longer applies, sadly.

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

Jdforrester-WMF lowered the priority of this task from Medium to Low.Oct 12 2023, 4:51 PM

Change #1016393 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Centralize API calls in api.js mixin and fix error handling

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

Change #1016393 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Centralize API calls in api.js mixin and fix error handling

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

Change #1016778 had a related patch set uploaded (by Jforrester; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@wmf/1.42.0-wmf.25] Centralize API calls in api.js mixin and fix error handling

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

Change #1016778 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@wmf/1.42.0-wmf.25] Centralize API calls in api.js mixin and fix error handling

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

Mentioned in SAL (#wikimedia-operations) [2024-04-03T20:08:52Z] <jforrester@deploy1002> Started scap: Backport for [[gerrit:1016778|Centralize API calls in api.js mixin and fix error handling (T361598 T315432)]]

Mentioned in SAL (#wikimedia-operations) [2024-04-03T20:11:18Z] <jforrester@deploy1002> jforrester: Backport for [[gerrit:1016778|Centralize API calls in api.js mixin and fix error handling (T361598 T315432)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-04-03T20:23:50Z] <jforrester@deploy1002> Finished scap: Backport for [[gerrit:1016778|Centralize API calls in api.js mixin and fix error handling (T361598 T315432)]] (duration: 14m 58s)