Bug 470083 - Diagram not visible in model explorer after pull from Git
Summary: Diagram not visible in model explorer after pull from Git
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.1.0   Edit
Assignee: Maxime Porhel CLA
QA Contact: Jessy Mallet CLA
URL:
Whiteboard:
Keywords: triaged
Depends on: 466566 467508
Blocks: 470141
  Show dependency tree
 
Reported: 2015-06-12 10:44 EDT by Maxime Porhel CLA
Modified: 2015-10-16 09:10 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2015-06-12 10:44:51 EDT
+++ This bug was initially created as a clone of Bug #466566 +++

N.B. : This problem was first encountered using RTC but I was able to reproduce it using Git and even by just copying files into the project.

Steps to reproduce (with Git) :

1) Import the provided project. This project contains a main semantic resource and a controlled one. There is one aird file.
This project should be committed into a Git repository

2) Clone the Git repository to another place. Open a new workspace and import the project from Git

3) In the first workspace, create a representation (class diagram) on the sub-package (contained in the controlled semantic resource).

4) Extract this new diagram into a new aird file

5) Commit the modifications (1 modified aird and 1 new aird)

6) In the second workspace, pull the modifications.
=> the diagram is not visible in the tre under My.ecore. Though it is visible when unfolding the new aird file.

7) Close/Open the modeling project => the diagram is now visible in the semantic tree.


Steps to reproduce (without Git)

1) Import the provided projects in 2 different workspaces.

2) Execute steps (3) and (4) from above in the first workspace

3) Copy the 2 aird files (1 modified and 1 new) into the second workspace

4) You should face the same problem.
Comment 1 Eclipse Genie CLA 2015-06-12 10:57:33 EDT
New Gerrit change created: https://git.eclipse.org/r/50113
Comment 2 Maxime Porhel CLA 2015-06-15 11:14:19 EDT
The Gerrit test patchset has been abandoned.

The proposed test was unreliable: the workspace does not always the change on the main aird and ecore file. The IResourceDelta of the IResourceChangeEvent often contains only the delta for the added fragments and not for the modified files (modified using the test api EclipseTestsSupportHelper). In debug, the delta is often ok and then the reload behavior is correct.

The test will be replaced by a manual scenario.


See the scenario on Bug #466566
Comment 6 Maxime Porhel CLA 2015-06-16 03:22:41 EDT
After a last try, the test has been stabilized and merged.
Comment 7 Jessy Mallet CLA 2015-09-28 10:20:28 EDT
Validated with Sirius 3.1.0.201509241504
Comment 8 Pierre-Charles David CLA 2015-10-16 09:10:28 EDT
Available in Sirius 3.1.0.