ES-DOC / esdoc-questionnaire

ES-DOC Questionnaire (webform generator for creating CIM Documents). POC: @allynt
Other
2 stars 1 forks source link

Create the complete component hierarchy when first editing a specialized document. #534

Closed allynt closed 7 years ago

allynt commented 7 years ago

493 allows me to parse the component hierarchy of a specialization. And there is code in the "q_view.html" template to render it. However, the "get_new_realizations" fn only creates the cardinality_min number of properties for any given model. This means that if there is an optional hierarchical relationship property (like grid in cmip6.seaice) it never gets created and there is currently no way to add it after the fact (or even to recognise that it is missing).

Therefore, when cardinality_min is 0 but is_hierarchical is true, I should go ahead and created the corresponding property/model _but set "isactive" to false.

allynt commented 7 years ago

Add documentation to the component hierarchy explaining this usage.