Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Y24-513 - As developers we want to move the fetching of ONT pools to a Pinia store so we can remove Vuex #2116

Open
2 tasks
stevieing opened this issue Dec 16, 2024 · 0 comments
Labels
Pinia Pinia Size: S Small - low effort & risk Technical Debt Technical debt Value: 3 Value to the insitute is average

Comments

@stevieing
Copy link
Collaborator

User story
As Pinia has now become the defacto recommended state management library for Vue 3, we are planning to migrate from VueX to Pinia. As part of clean migration, the conversion is planned module by module from VueX to Pinia.

  • Convert pacbio VueX module runs in store/traction/ont/pools to Pinia store
    • Convert to a Pinia store with id same as namespace in Vuex
    • Convert state, getters, action
    • Remove mutation
  • Convert usage inside components
  • Use Options API support of Pinia to maintain the existing code as much as possible

Acceptance criteria
To be considered successful ,the solution must allow replacement of following pacbio Vuex module to Pinia stores

  • move fetchPools and setPools to ONT Pinia store OntPools
  • move actions, mutations and state to Pinia store

Who are the primary contacts for this story
Steve/Seena

Additional context
This story has a non-blocking relationship with:

References
[Pinia]
[Migration (https://pinia.vuejs.org/)]
[Migration] (https://pinia.vuejs.org/cookbook/migration-vuex.html)

@stevieing stevieing added Size: S Small - low effort & risk Value: 3 Value to the insitute is average Technical Debt Technical debt Pinia Pinia labels Dec 16, 2024
@psd-issuer psd-issuer bot changed the title As developers we want to move the fetching of ONT pools to a Pinia store so we can remove Vuex Y24-513 - As developers we want to move the fetching of ONT pools to a Pinia store so we can remove Vuex Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pinia Pinia Size: S Small - low effort & risk Technical Debt Technical debt Value: 3 Value to the insitute is average
Projects
None yet
Development

No branches or pull requests

1 participant