Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
morenoju
Partner - Specialist
Partner - Specialist

Gitoqlok: Sharing scripts and sheets between apps

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:

morenoju_0-1635277140528.png

However, if I try to do so, I get the following error:

morenoju_1-1635277162968.png

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...

1 Solution

Accepted Solutions
morenoju
Partner - Specialist
Partner - Specialist
Author

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.

View solution in original post

6 Replies
morenoju
Partner - Specialist
Partner - Specialist
Author

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:

morenoju_0-1635357145156.png

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?

Maria_Halley
Support
Support

@morenoju

 

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.

morenoju
Partner - Specialist
Partner - Specialist
Author

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.

morenoju
Partner - Specialist
Partner - Specialist
Author

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.

Maria_Halley
Support
Support

@morenoju

 

I'm glad to hear that you got it to work.

 

And thank you for sharing the solution!