pipalacademy / self-hosting-101

MIT License
1 stars 0 forks source link

core: Learner App's base URL should be stored in the database #2

Closed nikochiko closed 2 years ago

nikochiko commented 2 years ago

The abstraction we have for learner-app (core.db.App) currently stores name, current_task, score, healthy, created, last_updated. The base URL though is generated each time during runtime from configuration of the treadmill app. I think the URL should be stored in the db (and be part of the same abstraction as other learner-app related attributes).

The treadmill app should only use the configuration provided for creation of new learner-apps. If there is any change in how learner-apps are hosted, the database should be updated.