foam-framework / foam

Feature-Oriented Active Modeller
Apache License 2.0
787 stars 55 forks source link

Apps: support multiple dao+model per app #408

Closed jacksonic closed 8 years ago

jacksonic commented 8 years ago

Refactor model+daoFactory into a DataConfig. Apps like the Event/Convention lobby display would need daos for events, presenters, locations, or other browseable things. Moving model and daoFactory into a separate model also makes it easy to make admin browsers, as the menu can select which dataConfig you want and then a single BrowserConfig targets a single DataConfig. Everything (except dao content) should still serialize inside a single AppConfig.

Apps that require only a single DataConfig will just have an array of one DataConfig.

AppConfig.dataConfigs = [];

jacksonic commented 8 years ago

Found some bugs in Admin app creation picker list, Questionnaire model picker

jacksonic commented 8 years ago

Refactor to allow export of the DAOs that the DataConfigs make available, so a DAOKeyView could use them. i.e. each DataConfig produces a DAO on the view context.

jacksonic commented 8 years ago

One more bug in DAO wizard pages found