Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 458643 - [Profile] Application version annotations accumulate
Summary: [Profile] Application version annotations accumulate
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Others (show other bugs)
Version: 1.0.1   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: SR2   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 09:40 EST by Christian Damus CLA
Modified: 2015-01-30 08:54 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2015-01-28 09:40:33 EST
Papyrus Luna RC1a

When migrating a package from one version of a profile to the latest, Papyrus adds a new version annotation to the profile application but does not delete the previous.  Consequently, they accumulate indefinitely, to no benefit.

This does not happen in the Mars development stream.

Steps to reproduce:

0. Create a profile and a model in Papyrus.
1. Apply the profile to the model.
2. See the Papyrus-specific version annotation in the ProfileApplication.
3. Change the profile and define it again.
4. Close and re-open the model that has the profile applied.
5. Migrate the profile to the new version when prompted.
6. See a new version annotation in the ProfileApplication and that the previous is still there.
Comment 1 Christian Damus CLA 2015-01-28 10:26:57 EST
Fixed in Luna SR2:  commit ff4d20b2ccae70483fcfa3cfa852d195bfd84255.

The Mars stream seems not to have this problem because the profile externalization feature changed the profile migration command to replace the existing annotation if there was one.  However, the Luna fix is more general (removing all existing annotations, even if more than one) to clean up models that already accumulated numerous annotations.

This fix is ported forward to Mars:  commit 570ea5eaaf22fa4bdca5992f387b3fa78f1ba2c1
Comment 2 Toni Siljamäki CLA 2015-01-28 10:39:40 EST
Great, thanx!