Page 1 of 1
Stop Automated/Random Changes To TI Processes (Code Control)
Posted: Fri Mar 07, 2014 12:47 pm
by mce
Hi,
Each time when we save a TI processes, regardless of any changes in the TI process, it keeps changing a line of the .pro file that starts with 565. This line is automatically generated and updated by TI everytime a TI process changes.
Here is an example of this line in a pro file.
Code: Select all
565,"yqxzORL[lI;8LmvyyBwXS^Z3Zapc7;HH8sCEoIAgZ0Qr[emuQZY6_XSlVIe\DBhl=au>DmLHX=LW1jnGS`Z:bDts\P?`3P]d]\Ne_gBk46g\[j5\DwMbz7Rvqk_A`CbK<]TI?9:uZfohGAOaR>7ifdw3q7O2C82n][5eUc@c4pS??2pQ@hNdYQnqQI90WTCFHYrYoKX`"
Here is my question:
Is there a way to stop TM1 updating or changing this line of the pro files in everytime we save the file?
Unfortunately this changing line of the pro files broke my code revision control system.
Regards,
Re: Automated Changes To Processes
Posted: Fri Mar 07, 2014 3:21 pm
by Wim Gielis
Hello
Can I ask you why you would need that property? Or put differently, can't you ignore it?
Are you checking the timestamp of the *.PRO file maybe?
Re: Automated Changes To Processes
Posted: Fri Mar 07, 2014 6:48 pm
by Duncan P
That's not the only line that can sometimes have random values that are nothing to do with what you have entered in the process.
Unfortunately the only guaranteed way to avoid false changes is to write a program to strip the process down to the bits of it that you use and store that in your SCM system. However getting the list of which line headings correspond to which features is not trivial. It would require hours of very careful experimentation to know that you had got the lot. I vaguely remember that the one you are looking at is a (loosely) encrypted version of the password for the ODBC connection - which you are probably not even using anyway.
The problem is that entries for features that you don't happen to be using (e.g. ODBC entries for a text source) are still filled with random junk, and get saved with new random junk every time you change anything.
Re: Automated Changes To Processes
Posted: Fri Mar 07, 2014 7:02 pm
by Alan Kirk
What Duncan said. (And his memory is correct, 565 is the encrypted data source password for ODBC/ODBO, though it was unencrypted in versions prior to 8.3.)
Which leads me to my point; the headings can change from version to version. Not so much that a heading is used in something different in version y compared to version x, but rather that a heading may disappear, or a new heading may appear without any change to the actual TI code. I'd therefore be wary of relying on the .pro files alone for software control. I don't know what you're using or how but you'd probably need to just extract the code from the four tabs to be sure that nothing changes. (And even that wouldn't cover you against parameter or data source changes.)
Re: Automated Changes To Processes
Posted: Fri Mar 07, 2014 11:43 pm
by Harvey
Yes, this "feature" makes it very difficult to detect changes correctly for a revision control system.
I find it very annoying, but it's usually enough for me to just manually roll back the ones I know for sure haven't changed. This would be a lot more difficult in a large project with multiple team members, so it would be nice if it weren't the case.
However, I wouldn't look for the changes to come from IBM. Look for a way to deal with it within your particular revision control system, or by scripting something to avoid the conflict.
Re: Automated Changes To Processes
Posted: Sat Mar 08, 2014 10:54 am
by mce
Thanks for the replies.
I have about 200 processes in a TM1 server and we have a number of TM1 servers instances and each server has about 80% of the processes shared between different instances. Moreover we are working in a team of TM1 developers.
In order to manage and control the changes to the processes and to other code objects and to synchronize the shared ones across different environments, we use a code revision control system (subversion) and file comparison tools (such as winmerge).
However, having TM1 process files automatically and randomly changing in each save makes it very difficult to track changes to the process files. A process file seems to have changed, although it is effectively the same except the line that starts with 565 code, which does not make any difference to the way the process works.
I think IBM should fix this issue to avoid process files keep changing in each and every time regardless of having any ODBC password in the TI process.
Kind regards
Re: Automated and Random Changes To TI Processes
Posted: Sat Mar 08, 2014 11:00 am
by Duncan P
Given the general tone does this now make sense in the Enhancements section, just in case an IBM TM1er happens to be passing by?
Re: Automated and Random Changes To TI Processes
Posted: Sat Mar 08, 2014 11:06 am
by mce
Duncan P wrote:Given the general tone does this now make sense in the Enhancements section, just in case an IBM TM1er happens to be passing by?
Yeah, it would be good if moderators can move this topic to Enhancements category of the Forum, if it is possible.
Re: Automated and Random Changes To TI Processes
Posted: Sun Mar 09, 2014 10:02 pm
by Alan Kirk
mce wrote:Duncan P wrote:Given the general tone does this now make sense in the Enhancements section, just in case an IBM TM1er happens to be passing by?
Yeah, it would be good if moderators can move this topic to Enhancements category of the Forum, if it is possible.
Done; the heading of the thread has been tweaked to show the nature of the enhancement requested.