Bug 539364 - Property page override has unexpected behavior when applied on a subclass
Summary: Property page override has unexpected behavior when applied on a subclass
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 6.0.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-09-24 05:23 EDT by Yvan Lussaud CLA
Modified: 2018-09-28 09:39 EDT (History)
1 user (show)

See Also:


Attachments
VSM to reproduce (20.20 KB, application/x-zip-compressed)
2018-09-28 09:24 EDT, Jessy Mallet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yvan Lussaud CLA 2018-09-24 05:23:56 EDT
Sirius 6.1.0

- create a property page for an EClass A
 - create the corresponding group
- create a property page override for a sub EClass B of the previous EClass A
 - set the domain class to B
 - create the corresponding group

In my case the override is in a diagram extension.

Actual behavior
- for an element A the page is present but empty
- for an element B the override is used

Expected behavior:
- for an element A the page is present and the original group is used
- for an element B the override is used

I report this bug here because the override mechanism is implemented in Sirius.
Comment 1 Jessy Mallet CLA 2018-09-28 09:24:42 EDT
Created attachment 276046 [details]
VSM to reproduce
Comment 2 Jessy Mallet CLA 2018-09-28 09:33:51 EDT
Steps to reproduce :

- import the attached VSP and import BasicFamily metamodel definition (from Sirius example) in your workspace,
- launch your runtime,
- create new "Basic Family Sample model" from Sirius example,
- select "persons" Viewpoint and create "Persons" diagram on Familiy element,
- click on Man or Woman to see their properties 

Actual behavior :
- for a Woman, the page "Page1" is present but empty --> KO
- for a Man, the page "Page1" used the override group specifieded in VSM --> OK

Expected behavior:
- for a Woman, the page "Page1" should not be present (because we have changed the domain class of the override group)  
- for a Man, the page "Page1" used the override group specifieded in VSM
Comment 3 Jessy Mallet CLA 2018-09-28 09:39:38 EDT
Thanks for your detailed bug report.
We have reproduced this issue and we reckon it is valid. 
Nevertheless it's not yet in the scope of a release.