kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Create a composable for total progress fetching and points calculation

Open rtibbles opened this issue 1 year ago • 2 comments

Currently total points fetching is handled in vuex state and with an action:

State: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/index.js#L13 Action: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/actions.js#L270 Mutations: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/actions.js#L270 https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/mutations.js#L21 Getter: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/getters.js#L21

These should all be replaced by a composable that has a global progress state, and all references for fetching, mutations, and state should go through the composable.

This composable should be added to the core API spec to facilitate import across plugins.

rtibbles avatar Aug 28 '24 18:08 rtibbles

Hi @rtibbles, I'd like to be assigned this issue.

nathanaelg16 avatar Aug 29 '24 15:08 nathanaelg16

Thank you @nathanaelg16 - you have been assigned!

rtibbles avatar Aug 29 '24 15:08 rtibbles