STARIONGROUP / COMET-WebServices-Community-Edition

The Concurrent Design Platform Web Services that are compliant with ECSS-E-TM-10-25 Annex A and Annex C
https://www.stariongroup.eu
Other
11 stars 5 forks source link

The seed from annex C file does not support sampled function parameter type #300

Closed samatstariongroup closed 11 months ago

samatstariongroup commented 11 months ago

Prerequisites

Description

Seeding fails when an RDL contains a Sampled Function ParameterType. Seeding sould support all types.

Error: 23503: insert or update on table "ParameterBase" violates foreign key constraint "ParameterBase_FK_ParameterType"

DETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.

Steps to Reproduce

Solution Check if a referenced object's classtype has the correct version. SampledFunctionParameter is a version 1.2.0 object, while it is derived from ParameterType, which is a 1.0.0 objecttype. So in case of a Parameter set on an ElementDefinition, we need to remove the Parameter based on the fact that the ClassKind of the referenced object has the wrong version.

Other solution Make sure that the export to a specific version is not allowed when higher objects instances that are referenced have a version higher that the selected model export version.

System Configuration

NA

samatstariongroup commented 11 months ago

this is a duplicate of https://github.com/RHEAGROUP/COMET-WebServices-Community-Edition/issues/297