archimatetool / archi-modelrepository-plugin

coArchi - a plug-in to share and collaborate on Archi models.
154 stars 53 forks source link

Incorrect display of object ids in the name and in the "id" property #154

Closed rdm1234 closed 4 years ago

rdm1234 commented 4 years ago

Version of Archi, Operating System

Archi version: 4.7.1. OS: Windows 10.

Version of this plug-in

0.6.2.

Any other plug-ins installed?

No other plug-ins.

Expected Behaviour

For objects, the id property has a value in the guid format (example: id="0a2084f0-9ee8-42ba-bb4a-b909c27bf943"). The git object name has the format {ObjectTypeName}_{Guid}.xml (example: BusinessRole_0a2084f0-9ee8-42ba-bb4a-b909c27bf943.xml).

image

Actual Behaviour

The id property has a value in the format id_{shortGuid} (example: id="id-55b13613d71b41048339c0d339f37af8"). The object name has the format {ObjectTypeName}_id-{shortGuid}.xml (example: BusinessRole_id-55b13613d71b41048339c0d339f37af8.xml).

image

Steps to Reproduce the Behaviour

  1. Create new object
  2. Push commit
jbsarrodie commented 4 years ago

Ids have been changed in Archi 4.7 to be always prefixed by 'id-'. This makes sure that generated ids are always valid in an XML context and thus enable round-trip when using exchange file format.

See https://github.com/archimatetool/archi/issues/625 for more information

Phillipus commented 4 years ago

In fact, you shouldn't care what the format is. Don't look into the internals, this stuff is not API.