Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Reuse normal field types for modvars #97

Open
Guite opened this Issue Oct 9, 2011 · 0 comments

Comments

Projects
None yet
1 participant
Owner

Guite commented Oct 9, 2011 edited

In the DSL of MOST we have entity fields and variables (config settings). In the generated modules we use Forms for both areas (editing an entity vs. changing the config).

We should remove variables and instead reuse the entity field elements (like StringField or EmailField) for modeling configuration settings, too.

The generator can still generate the current config pages from that, as there is still a big difference: modvars described in a model are not contained by an entity element, but by a modvars element. So the idea of this ticket is to get rid of modvar field type elements (like IntegerVar or StringVar), as these seem to be redundant.

Benefits:

  • no additional / special model elements requiring separate processing in all layers
  • several existing constraints, options and behavioural extensions can be reused for config settings
  • less elements needed in the ModuleStudio editors palette
  • eventually even the separate table editor for variables could be removed

Tasks:

  • think about the consequences thoroughly (e.g. maybe hide some options in the properties view if a field is contained in a variable container)
  • change meta model to reflect new possibilities, add hints about obsolete states in model element descriptions
  • update validation accordingly, throw error for obsolete model elements to motivate the change in application models
  • update editors, add hints about required changes in model element descriptions (status line)
  • update generator for config pages, reusing existing form field implementations
  • update validation and generator chapters in user manual (e.g. doctrine extension related properties are ignored for modvars of course)

#139 is about removing meta model support for special modvar elements afterwards.

@ghost ghost assigned Guite Nov 6, 2013

@Guite Guite modified the milestones: Enhancements, Future Aug 27, 2014

@Guite Guite modified the milestones: 0.8.0, Future Apr 23, 2017

@Guite Guite modified the milestones: 1.1.0, 1.0.2 Sep 6, 2017

@Guite Guite deleted a comment from rgasch Sep 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment