Archi Forum

Archi => General Archi Discussion => Topic started by: bigyin on May 05, 2020, 09:26:58 AM

Title: Is there an easy way to generate & manage a change log, recording everything
Post by: bigyin on May 05, 2020, 09:26:58 AM
As an architect which must share models I would like to have a change log and versioning etc. Ideally which takes a user context (user id etc) into account from the run environment.

I know it is possible to add the change log in git, but that would seem a very technical a solution to the overall intent. i.e. would like to go to help and ask for change history etc.

Any ideas or would this be a feature request.. of just a bad idea ..
Title: Re: Is there an easy way to generate & manage a change log, recording everything
Post by: Phil Beauvoir on May 05, 2020, 11:31:04 AM
There is no change tracking/versioning/logging in Archi itself, nor has such a feature been planned (would be a huge undertaking)
Title: Re: Is there an easy way to generate & manage a change log, recording everything
Post by: bigyin on May 05, 2020, 11:50:42 AM
In short term if I try to have 'mange by script' as an objective (not all but a lot of the changes can be defined by scripts etc) then I can write (from script) to a common log file etc.

Does Archi have any 'context information' that can be take from the environment e.g. User ID ..  I can (I assume as a weak programmer) use a Java library to get, but if in Archi already would like to be 'self contained'
Title: Re: Is there an easy way to generate & manage a change log, recording everything
Post by: Phil Beauvoir on May 05, 2020, 11:53:16 AM
> Does Archi have any 'context information' that can be take from the environment

This information can only be accessed via the Java system properties, and so JS would require a Java class System declaration.
Title: Re: Is there an easy way to generate & manage a change log, recording everything
Post by: Jean-Baptiste Sarrodie on May 05, 2020, 11:59:17 AM
Hi,

Quote from: bigyin on May 05, 2020, 09:26:58 AM
I know it is possible to add the change log in git, but that would seem a very technical a solution to the overall intent. i.e. would like to go to help and ask for change history etc.

The collaboration plugin fully hides the technical side of git: you never have to connect to a git server (except of course the very first time to create the repository and manage access rights) and everything is done from within Archi. You then get traceability of who done what and when.

Quote from: bigyin on May 05, 2020, 11:50:42 AM
Does Archi have any 'context information' that can be take from the environment e.g. User ID ..  I can (I assume as a weak programmer) use a Java library to get, but if in Archi already would like to be 'self contained'

No in jArchi API, but this can be done through java.lang.System:

var System = Java.type('java.lang.System');
console.log(System.getProperty("user.name"));


See https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#getProperties() for more options.

Regards,

JB
Title: Re: Is there an easy way to generate & manage a change log, recording everything
Post by: Hervé on May 05, 2020, 17:00:33 PM
Hi,

You may have a look to my database plugin (https://github.com/archi-contribs/database-plugin/tree/master/v2 (https://github.com/archi-contribs/database-plugin/tree/master/v2)).

It allows to store all your model components in a SQL database and maintains a history of all their versions.

Best regards