wiki:Modules/MolgenisSettings

Version 2 (modified by Morris Swertz, 13 years ago) (diff)

--

Brainstorm on MOLGENIS settings

I was thinking on something like this:

As an administrator I want to have a user interface that lists all possible options and allows me to change their settings. As an administrator I want to add new user options. As a user I want to keep my settings between user settings. (e.g. filters on forms).

The basic data structure may be:

<entity name="MolgenisOption" implements="Identifiable,Nameable">
  <description>Options that one can set on a MOLGENIS system (open ended). E.g. 'db_user', 'db_password', ". But in the future also more fancy settings like 'ui_theme'.</description>
  <field name="Description" nillable="true"/>
  <field name="adminOnly" type="boolean" default="true"/>
</entity>

<entity name="MolgenisSettings" implements="Identifiable">
  <description>Values that have been set on the options. Can be global or user specific</description>
  <field name="option" type="xref" xref_entity="MolgenisOption" description="Setting is for this option"/>
  <field name="user" type="xref" nillable="true" xref_entity="MolgenisUser" description="This setting is specific for this user. If null this is a global setting."/>
  <field name="value"/>
</entity>

N.B. Actually what we need is almost like a 'Measurement' and 'ObservedValue?' ;-) Because setting an option is almost like applying a protocol? And each protocol would be a screen in the admin panel? Seems we may need to make them extend from a more general interface ;-)