ES-DOC / esdoc-questionnaire

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

Deal w/ CIM_Reference #492

Closed allynt closed 7 years ago

allynt commented 7 years ago

Deal w/ references.

allynt commented 7 years ago

Sometimes they can just be URLs. But in the case of CIM_Reference, I ought to intercept the call to "add a new relationship" w/ an ES-DOC webservice that brings back the appropriate already published documents. Like references, these should not be rendered as an inline subform but as a URI to some external resource.

allynt commented 7 years ago

However, the above technique assumes that the target documents already exist. What do I do if they are not there yet?

How about instead of looking for existing documents, I use a list of canonical names (or some other unique but agreed-upon identifier)? Of course there would be different lists for different properties and this would break the generality of the Q, but I can live w/ that for the sake of making the UI pretty.

allynt commented 7 years ago

Note that this covers more than just models. For example, NumericalRequirements referenced by Conformances.

allynt commented 7 years ago

References should not by default specify a specific version; this will force the viewer to always get the latest version.

allynt commented 7 years ago

Handled as part of #416.