Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I wanted to give a try to the feature in Gitoqlok that allows to share script sections and sheets between apps.
To do so, I created two apps : productApp (two sheets and two sections of script) and projectApp (pretty much blank). I wanted to test moving scripts and sheets from productApp to projectApp.
For productApp, in GitLab I've added a topic called "gitoqlik-lib" and marked the project visibility as "internal".
Now, if I go to projectApp's load script, I can see gitoqlok-productApp coming up as repositories I can import from:
However, if I try to do so, I get the following error:
Looking at the log:
>> 10/26/2021, 3:16:49 PM: [ERROR] "getAppDataFromRepository"
{"readyState":4,"responseText":"{\n \"message\": \"Not Found\",\n \"documentation_url\": \"https://docs.github.com/rest/reference/git#get-a-tree\"\n}\n","responseJSON":{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/git#get-a-tree"},"status":404,"statusText":"error"}
What can I do so the ProjectApp can import scripts from ProductApp? Is this an issue in my Gitoqlok or Gitlab configuration?
Maybe this is something @AlexPolorotov may know about...
I got a response from Gitoqlok:
"For now Gitoqlok supports "gitoqlok-lib" topic just for the Github repositories, and using it to Gitlab repo causes strange behaviour.This feature was conceived for the exchange of data through public repositories between different people.To import from your personal repositories using one gitlab account, it is not needed (so you can remove this topic and make an import successfully - you will see your repository in the list)."
I removed the topic and indeed, the import worked fine.
I'm guessing you have already found these instructions. But just in case you haven't
https://apolorotov.medium.com/how-to-use-git-with-qlik-sense-part-1-3af14e03cac3
Thanks for sharing the links, @Maria_Halley .
The actual instructions I have been following are from https://docs.gitoqlik.com/code-sharing/concept
I have been able to import script sections from @rwunderlich 's public application:
However, I can't import anything from my actual application because I always get the 404/not found error right after I click on the name of my app (gitoqlok-productApp).
Any idea of anything I may need to change in my personal space of GitLab or in the Gitoqlok config?
Sorry, but this is not my area of expertise. But I will move this thread to the App development forum, I think that you can get more help there.
Thank you, @Maria_Halley .
I've noticed that after adding "gitoqlik-lib" as a topic in my personal GitLab project my repository type in Gitoqlok has changed to "GitHub". I've reported it in the Gitoqlok Slack channel since this might be a bug. It may be related to the error that I'm seeing.
I got a response from Gitoqlok:
"For now Gitoqlok supports "gitoqlok-lib" topic just for the Github repositories, and using it to Gitlab repo causes strange behaviour.This feature was conceived for the exchange of data through public repositories between different people.To import from your personal repositories using one gitlab account, it is not needed (so you can remove this topic and make an import successfully - you will see your repository in the list)."
I removed the topic and indeed, the import worked fine.