Page MenuHomePhabricator

[WtC-M2] [QB] Migrate to Pinia
Closed, ResolvedPublic13 Estimated Story Points

Description

Blocked by T359828

Problem

In order to migrate the Query Builder's code base away from Vue 2 to Vue 3 and avoid the consequences of Vue 2's EOL, we will have to migrate various peer dependencies such as Vuex (@4.0).

Solution

As part of the preparation work to migrate the Query Builder's front-end from Vue to Vue Compat layer, we'll replace Vuex by Pinia. The latter store library brings certain advantages, such as a simpler API or better Typescript support.

Acceptance criteria
  • We migrate from Vuex to Pinia
Notes
  • Here's the Vuex to Pinia migration guide for reference
  • Considerations for the migration:
  • Typescript incompatibilities are fixed
  • Relevant code points are updated

Event Timeline

Arian_Bozorg renamed this task from [SW] [WtC-M1] [QB] Migrate to Pinia to [WtC-M2] [QB] Migrate to Pinia.Mar 18 2024, 11:04 AM
Arian_Bozorg updated the task description. (Show Details)

Change #1019736 had a related patch set uploaded (by Guergana Tzatchkova; author: Guergana Tzatchkova):

[wikidata/query-builder@master] Migrate to Pinia

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

Change #1019736 merged by jenkins-bot:

[wikidata/query-builder@master] Migrate to Pinia

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

Change #1036200 had a related patch set uploaded (by Hasan Akgün (WMDE); author: Hasan Akgün (WMDE)):

[wikidata/query-builder@master] Remove unnecessary comments and code

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

Both changes are now merged so this is theoretically done, when do we want to deploy this?

Change #1036200 merged by jenkins-bot:

[wikidata/query-builder@master] Remove unnecessary comments and code

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