You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It updates label value, but removes other primitive values from object, like description. Seems to keep complex objects.
Throws error on missing required primitive in complex object
Think this is actually related to the issue above where it doesn't keep the unchanged primitive values. If you try updating one field in Wave form, it will throw an error saying that the other unsent fields are required and missing, and if you edit all fields in Wave form, it throws an error saying "Missing required attribute 'seed'" which is a required attribute in Wave, but not shown in the UI. If you try submitting a form with all optional values (like Analyses -> Stability) it saves without error, but doesn't keep unchanged/previous values.
The text was updated successfully, but these errors were encountered:
@awesthouse not able to recreate this. Everything seems to work okey on the tests I've been doing.
Can you show the whole request going to DMSS?
Or, we can have a sit down together on this
Branch
https://github.com/equinor/dm-core-packages/tree/fix/form-payload
Entrypoint
SIMPOS -> "Analyses"-> "Positioning" -> "Line Tensions" -> pick a run
Partial update doesn't keep old values
Expected behavior
When only updating and passing some primitives, it should update the passed new values and keep old values for primitives not in payload.
Test form - Scenario form with fields label and description
Blueprint
https://github.com/equinor/dm-app-simpos/blob/main/application/app/data/SIMPOSDS/mtsmo/analysis/positioning/srs/Scenario.json
Example Payload
What happens
It updates label value, but removes other primitive values from object, like description. Seems to keep complex objects.
Throws error on missing required primitive in complex object
Think this is actually related to the issue above where it doesn't keep the unchanged primitive values. If you try updating one field in Wave form, it will throw an error saying that the other unsent fields are required and missing, and if you edit all fields in Wave form, it throws an error saying "Missing required attribute 'seed'" which is a required attribute in Wave, but not shown in the UI. If you try submitting a form with all optional values (like Analyses -> Stability) it saves without error, but doesn't keep unchanged/previous values.
The text was updated successfully, but these errors were encountered: