Author Topic: clone structure as new version - full structure clone  (Read 5228 times)

demian

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
clone structure as new version - full structure clone
« on: April 30, 2024, 06:02:21 pm »
consider this structure for example
MyModel/
├─ <<version>> v1/
│  ├─  ModelDiagram
│  ├─ <<table>> bar
│  ├─ <<table>> foo
├─ <<version>> v2/


If I do right click on v1 -> clone structure as new version and enter details for v2, I end up with a new version of ModelDiagram under v2 with elements as links to the tables in v1.

The problem with that is that if I want to add or remove attributes, I not only modify v2 but also v1. I would like the option to have a full clone as new version so that i can keep track of the changes to my model over time and not make changes to previous versions of the model. Consider that in many cases my application needs to support several versions at the same time.

At the moment, I circumvent this by right click on v1 -> copy -> copy full structure for duplication and manually set the stereotype of v2 as version. But this doesn't link it back the diagram in v2 to v1 in terms of diagram versions

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1080
  • Karma: +28/-8
    • View Profile
Re: clone structure as new version - full structure clone
« Reply #1 on: May 01, 2024, 11:18:44 pm »
There is a recent thread on this subject in the General Board - please see https://sparxsystems.com/forums/smf/index.php/topic,48387.0.html.
The problem with that is that if I want to add or remove attributes, I not only modify v2 but also v1. I would like the option to have a full clone as new version so that i can keep track of the changes to my model over time and not make changes to previous versions of the model. Consider that in many cases my application needs to support several versions at the same time.
To modify just attributes you need to first clone an element in the v2 diagram, this will create copy with the version incremented.