mumuki / mumuki-platform

Documentation and issues for the Mumuki Platform.
MIT License
1 stars 2 forks source link

Stop copying user and organizations in each application #256

Closed flbulgarelli closed 6 years ago

flbulgarelli commented 7 years ago

Currently, user and organization information is duplicated across all applications, making migrations and sync hard, introducing a lot of messages and reducing maintainability - right diagram.

In order to make future migrations easier and have a single source of truth for users and organizations, we should keep it only in office, and expose a non-rest API with eventual caching for consuming it - left diagram -.

image

flbulgarelli commented 6 years ago

This is not trivial so solve.

Since https://github.com/mumuki/mumukit-platform/pull/13 most of the user, organization and course logic is reused across all the apps. Moreover, office is deprecated, son there is no more a data duplication between it and laboratory.

There is no easy way of solving data duplication between classroom and laboratory - after all, classroom has just cache semantics now - and bibliotheca only stores a few data.

Thus, this is no more a real issue now.