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

Allow creation of ParameterValueSet with ValueArray that have values #318

Open antoineatstariongroup opened 10 months ago

antoineatstariongroup commented 10 months ago

Prerequisites

Description

It is not possible to create a Parameter with ParameterValueSet that already contains values inside the ValueArray: ParameterValueSet are create via side-effect server side. Same appears when modifying the Option/State dependency.

It should be possible to allow by-passing the side-effect if all provided ParameterValueSet are valid for the Parameter (all possible combination for Option/State dependency present).

On Create:

On Update:

System Configuration

samatstariongroup commented 7 months ago

I propose a way forward so we don't change the server behaviour too much and we add a dedicated section to the POST message.

now it looks like:

{
  "_create": [],
  "_update": [],
  "_delete": [],
  "_copy": [],
  "_values":[]
}

in the Values property we can put a list of ParameterValueSets (with reference to the container Parameter or PArameterOverride.