Bug 484860 - Refresh is not automatically launched after a compartment specification update
Summary: Refresh is not automatically launched after a compartment specification update
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-12-23 09:36 EST by Etienne Juliot CLA
Modified: 2016-01-04 05:54 EST (History)
2 users (show)

See Also:


Attachments
Example to reproduce (175.02 KB, application/zip)
2015-12-28 09:59 EST, Esteban DUGUEPEROUX CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Etienne Juliot CLA 2015-12-23 09:36:09 EST
For the new region / compartment feature of Sirius 3.1, there are several use cases where the modification in the VSM is not taken in account in live (odesign and sample in the same workspace).
So, specifier needs to call manually the refresh for each modification.

A simple use case to reproduce this behavior:
- create a container with vertical stack, on e sub container which contains on Node.
- try the sample.
- add a new node in the same container. Save.
-> the sample is not refreshed automatically.
Comment 1 Esteban DUGUEPEROUX CLA 2015-12-28 09:59:43 EST
Created attachment 258924 [details]
Example to reproduce

I don't reproduce your refresh issue with the attached sample, could you test with it and update it to be able to have a reproduction scenario?
Comment 2 Etienne Juliot CLA 2016-01-04 03:56:40 EST
I downloaded your attachment and I can easily reproduce the bug:
just modify the Domain class of ChildrenMapping from basicfamily.Person to basicfamily.Woman.
When you will save the .odesign file, nothing appears: you need to manually call the refresh.
Comment 3 Etienne Juliot CLA 2016-01-04 04:27:32 EST
I tested this scenario with freeform and list styles: it occurs only with compartments.
Comment 4 Maxime Porhel CLA 2016-01-04 05:47:56 EST
Steps to reproduce: 
 . Unzip the provided reproduction case and launch a runtime. 
 . Create a basic family model, populate it with a Man A father of Man B father and a Man C, 
 . Create a session, activate the provided Persons viewpoint and create a diagram
 . Open the family tree editor and place the diagram and the editor side by side
 . In the tree editor, set B as father of Man C
 . C should appear as a sub node of B in the diagram.
Comment 5 Maxime Porhel CLA 2016-01-04 05:49:29 EST
(In reply to Maxime Porhel from comment #4)
> Steps to reproduce: 
>  . Unzip the provided reproduction case and launch a runtime. 
>  . Create a basic family model, populate it with a Man A father of Man B, AND a Man C, 
>  . Create a session, activate the provided Persons viewpoint and create a
> diagram
>  . Open the family tree editor and place the diagram and the editor side by
> side
>  . In the tree editor, set B as father of Man C
>  . C should appear as a sub node of B in the diagram.
Comment 6 Maxime Porhel CLA 2016-01-04 05:54:57 EST
Note that if i put 
> aql:self.members->select(m | m.father =  null and m.mother = null)
as semantic candidates expression of the root mapping PersonMapping, the issue does not occurs. 

It might come from the fact that a same semantic element is candidate for a root container and candidate for a sub node of another container at the same time.