mountetna / magma

Data server with friendly data loaders
GNU General Public License v2.0
5 stars 2 forks source link

Attribute groups #97

Open graft opened 5 years ago

graft commented 5 years ago

Many models have several sets of related attributes. For example, a 'sample' model might have data relating to its processing and to properties of its tissue of origin. These attributes currently attach to the model in one unordered lump.

Organizing these attributes could be done by normalizing them into their own record (e.g. SampleProcessing SampleTissue), but this would result in model proliferation. A softer solution is merely to allow attributes to belong to a 'group' within the model, which gives them some conceptual separation without requiring any changes in database structure. This might produce, e.g., a more legible model map.

To add this we need to: 1) Add a 'group' option to the attribute defintion that is visible in the model's json template. 2) Add a 'group' function that sets this option for a group of attributes.

graft commented 5 years ago

Vague, not useful. Closing this for now.

graft commented 3 years ago

It was decided this was un-vague and useful, mostly to increase the legibility of model maps. :expressionless: