openhealthcare / opal-research

Research study plugin for OPAL
Other
4 stars 4 forks source link

As A User I would like new study lists to have the correct columns #54

Closed davidmiller closed 9 years ago

davidmiller commented 9 years ago

Currently, OPAL generates the episode_list.html template by looking at a set of column Schemas that are stored in a module global.

This does not play nicely with dynamically generated schema, and requires the server to be restarted whenever one adds a new study.

Now that we have the functions available in opal.utils.schema to generate this dynamically, we should refactor opal.views.core to make use of them.

davidmiller commented 9 years ago

Short term, this is now fixed - we've lost the module level global and the list columns are loaded dynamically on each request.

Medium term, we might look at further enhancements to the dynamic research schemas - to enable different schemas per study.