tm1py icon indicating copy to clipboard operation
tm1py copied to clipboard

Confusing GIT behaviour

Open scrumthing opened this issue 5 years ago • 10 comments

Describe what did you try to do with TM1py Using the new git functions in tm1py and the ARC plugin by @rclapp.

Describe what's not working the way you expect Didn't get the expected result? Describe: I did a push via Python. Everything arrived in GIT as expected. Afterwards without changing anything I pushed via the ARC plugin and a couple of processes were changed. If I do two pushes back to back via ARC or via Python no changes in GIT occur.

Not sure where to place that but I think here is a good way to start asking questions. Anyone encountered something similar? Not sure if that is a rest api issue or a Python issue or an ARC-plugin issue.

scrumthing avatar Feb 04 '21 10:02 scrumthing

Any chance the processes have an odbc data source?

Sent from my mobile phone

On Feb 4, 2021 2:56 AM, Christoph Hein [email protected] wrote:

Describe what did you try to do with TM1py Using the new git functions in tm1py and the ARC plugin by @rclapphttps://github.com/rclapp.

Describe what's not working the way you expect Didn't get the expected result? Describe: I did a push via Python. Everything arrived in GIT as expected. Afterwards without changing anything I pushed via the ARC plugin and a couple of processes were changed. If I do two pushes back to back via ARC or via Python no changes in GIT occur.

Not sure where to place that but I think here is a good way to start asking questions. Anyone encountered something similar? Not sure if that is a rest api issue or a Python issue or an ARC-plugin issue.

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/481, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEK7GZQHNF7VUO3Y4PTKVCLS5J4M7ANCNFSM4XCTJ7WQ.

rclapp avatar Feb 04 '21 17:02 rclapp

I have to check. It is a test system with a PlanningSample and some additional stuff. Those PlanningSample ones could have a broken ODBC connections but others which get updated definitely have none. Very confusing. 🤔

scrumthing avatar Feb 04 '21 18:02 scrumthing

Okay, I looked more and found the following difference between the two commits. The UIData gets changed. Very strange. Isn't that one of those fields which only exists to be compatible with old architect? arc_GitIntegration01

scrumthing avatar Feb 04 '21 19:02 scrumthing

Seems like the JSON string encoding is different, that is an odd one.

From: Christoph Hein [email protected] Reply-To: cubewise-code/tm1py [email protected] Date: Thursday, February 4, 2021 at 11:06 AM To: cubewise-code/tm1py [email protected] Cc: "Clapp, Ryan" [email protected], Mention [email protected] Subject: Re: [cubewise-code/tm1py] Confusing GIT behaviour (#481)

Okay, I looked more and found the following difference between the two commits. The UIData gets changed. Very strange. Isn't that one of those fields which only exists to be compatible with old architect? [arc_GitIntegration01]https://user-images.githubusercontent.com/8442014/106942347-5f487600-6724-11eb-9894-e7e66e112e8e.PNG

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/481#issuecomment-773537319, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEK7GZXTV3KW6553PRIPTBDS5LV2DANCNFSM4XCTJ7WQ.

rclapp avatar Mar 03 '21 06:03 rclapp

Yes. It definitely is. Not sure if I should address this with IBM or if it is a frontend thing. Maybe the headers between tm1py and the arc plugin are different. But to be honest I have no clue.

scrumthing avatar Mar 05 '21 07:03 scrumthing

This is definitely related to encoding. I think Arc does something differently than TM1py.

MariusWirtz avatar Mar 05 '21 14:03 MariusWirtz

But how can that be an issue if the processes are untouched. Very confusing and totally annoying because you now have useless changes documented. :-/ Maybe I will open an issue with the other guys and tell them it is their fault because tm1py is the de-facto standard for interacting with the tm1 rest api. :-D

scrumthing avatar Mar 08 '21 10:03 scrumthing

It looks like the one on the right is not encoded with UTF-8. The separator in the UIData is the "form feed" character which appears on the left.

cubewise-tryan avatar Mar 08 '21 22:03 cubewise-tryan

Hi @scrumthing,

please install the issue branch and see if it resolves the issue pip install https://github.com/cubewise-code/tm1py/archive/issue/process-ui-data-encoding.zip --upgrade

MariusWirtz avatar Mar 08 '21 22:03 MariusWirtz

Hey @MariusWirtz , thanks for your help but unfortunately that does not fix the problem. It still does not work properly. But I think we are on the right track here.

Bug_Git_Python

scrumthing avatar Mar 09 '21 20:03 scrumthing

It should have been resolved in the meantime.

@scrumthing, please reopen if this is still an issue.

MariusWirtz avatar Jan 23 '24 19:01 MariusWirtz