learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
815 stars 692 forks source link

Refactor FacilityConfig and Facility fetching out of core into the plugins that need it #12708

Open rtibbles opened 1 month ago

rtibbles commented 1 month ago

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