Open-MBEE/exec-cameo-mdk

ownedRuleId and view gen issues

Closed this issue · 1 comments

Seems that during view generation, the view pushes ownedRuleId, with the view constraint, to mms.

During validation, this shows up as a diff - because the view constraint is not persisted in the model.

If the empty ownedRuleId is pushed to mms, the subsequent view generation for that view results in loss of any ve added pe, updating the view to have only md generated data. I think this may be because during view generation, it's trying to recreate the constraint but without the mms only view constraint (or maybe the empty ownedRuleId overrode it to be empty??), any existing pe connections from mms are lost, but not entirely sure

the ownedRuleId may be a red herring - from the mms history, it seems like the validation push of the view wiped out the _contents - the commit action checks for that, but can it be that its' stripped out of the server object before then?