Book a Demo

Author Topic: Reset project GUID  (Read 11606 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Reset project GUID
« on: September 30, 2020, 05:10:33 pm »
Hello project admins,


When saving a copy of a project (aka copying a base project), you have the option of resetting GUIDs. However, this resets all GUIDs in the project. There is one which should have its own separate option: the project GUID itself.

I'm not sure where this GUID is stored, but you can retrieve it from the Object Model Api attribute Repository.ProjectGUID.

Now base project copying might not be used that much, but consider project transfers. In a transfer, the project GUID is retained.

Transferring projects can be done for different reasons: backing up the old project, testing something in a throwaway copy, or setting up a new project with most of the contents from the old. If you're setting up a new project you don't want the project GUID to remain, even though you might well want the project to contain the same-GUID model content.

Now resetting GUIDs is a sensitive operation, so I don't think it should be available in the project admin GUI.
Instead, it should be an option during transfer:
  • Do not reset GUIDs (the backup and throwaway cases, as today)
  • Reset project GUID only (the new-project-with-same-content case)
  • Reset all GUIDs
And the checkbox in the Save As dialog should be replaced with a similar set of options.

The default should be to reset the project GUID.

I'm right, right? Makes perfect sense to me.


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Reset project GUID
« Reply #1 on: September 30, 2020, 05:20:44 pm »
I agree, except for the default setting.

I mostly use project transfer for
- (functional) backups
- actual transfers (mostly migration scenarios, e.g. from a .eap file on a shared drive to SQL Server)

In all of these scenario's I would expect the project guid to remain the same.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Reset project GUID
« Reply #2 on: September 30, 2020, 10:19:01 pm »
I agree, except for the default setting.

I mostly use project transfer for
- (functional) backups
- actual transfers (mostly migration scenarios, e.g. from a .eap file on a shared drive to SQL Server)

In all of these scenario's I would expect the project guid to remain the same.

Geert
I agree with Geert and for the same reasons.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!