Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Add metadata to models and submodels #6

Open
jharmison-redhat opened this issue Jan 20, 2021 · 0 comments
Open

Add metadata to models and submodels #6

jharmison-redhat opened this issue Jan 20, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jharmison-redhat
Copy link
Member

Models and submodels should have metadata applied to them that enables us to template fields automatically. Right now, the form is hand-constructed in a manner divorced from the actual model definitions, and then models are derived from the manually-constructed fields.

In an ideal situation, a combination of macros and looping should be able to handle any schema config model thrown at it and build the form correctly. This would enable us to change the model schema, without making corresponding changes to the form. This won't happen without building some of the extra data displayed on the form into the models themselves. We will need to ensure that we're doing so in a way that doesn't cause problems with model validation, but I think some classmethods that return the appropriate metadata should be fine.

The form should be updated to match the new metadata embedded in the models.

@jharmison-redhat jharmison-redhat added the enhancement New feature or request label Jan 20, 2021
@jharmison-redhat jharmison-redhat self-assigned this Jan 20, 2021
@jharmison-redhat jharmison-redhat added this to the 1.0.0 milestone Jan 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant