You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a useFacilities composable in kolibri-common that has module level state, to allow for easy replacement of the current actions, state, and getters where they are used.
Replace all references to the actions, state, getters, and mutations, to use the composable instead.
Create a useFacilities composable mock for testing purposes.
Update all frontend tests should to use the mock for the new useFacilities composable.
The getFacilities and getFacilityConfig actions (defined here: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/actions.js#L212) are used in the coach, device, facility, and user_auth plugins.
The state is defined here: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/index.js#L16
The two mutations are defined here: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/mutations.js#L2
And two getters are defined here: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/state/modules/core/getters.js#L4
The text was updated successfully, but these errors were encountered: