countnazgul / qs-backup-and-restore-app Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello,
I am really sorry to open an issue but I don't know how to join you...
My name is Maya and I am an apprentice. I would like to develop some extensions for my work but I don't know how to start and I am the only "computer scientist" in my service. I have nobody to ask and nobody to answer... Could you please help me ? Here is my address : [email protected]
Where can I join you ?
Thank you in advance !
Hi Stefan,
thank you for the fixing advice of the previous backup hanging issue posted by claire. Backup now works fine.
Unfortunately we have an additional restore hanging issue.
After opening the backup file we get the message "For delete: x; For insert: y; For update: z". After pressing the "Restore" button the green spinning wheel is running endless, no message appears or anything else happens.
We are running Qlik Sense 3.2 and tested it on Desktop and Server. I've tested it also with a very simple backup file (corresponding to a new created empty app). Beside the 10.1 backup-and-restore app version we've tested it also with the 10.0 und 9.4 version. Same issue in 10.0. In 9.4 no "For delete ... insert ... update " message appears and the "Restore" button never becomes active.
The backup and restore app would be a tremendous value for us. We are very thankful for a fixing hint.
tom
Just a minor one, but maybe it helps someone else:
My Qlik Sense Proxy is running the non default port 8080!
Therefore the mashup was not able to establish the websocket connection.
I had to add the port config to the .js file to make qsocks work!
backup-and-restore_fix_port8080.zip
Not a bug or anything
But you could flatten the promise chain if you want to
deleteObjects().then(function () {
insertObjects().then(function () {
updateObjects().then(function () {
setScript().then(function () {
setAppProperties().then(function () {
main.app.doSave().then(function () {
GenerateTable();
$('#loadingImg').css('visibility', 'hidden');
})
})
})
})
})
})
to
deleteObjects()
.then( insertObjects() )
.then( updateObjects() )
.then( setScript() )
//etc
Just a tip :)
Hi Stefan,
great extension. I tried to make a backup from a test-application by following the steps from Qlik Branch.
QS HUB -> DEV HUB -> Mashup “Backup and Restore” (right click “View”).
Then I see the html web surface. I choose the application, press open (and I get the message “test Application.qvf” open). I press the button “Backup”. The green circle starts to run. And it runs and runs (it’s a very small application).
Have I done something wrong? Or is it the April release or something else?
I have tried it with QS-Enterprise and Desktop – version.
Many many thanks in advance.
Daniel
Hi Stefan,
we'd like to use your extension, but wonder if it's still active and/or if we're missing something.
Basically the steps we're following are:
At this point everything seems to freeze forever. Are we missing any step ? Namely, we don't understand
if we've to create the json in some other way or using anything else.
Your help would be appreciated. Many thanks in advance. Best Regards.
Giuseppe Naldi
It was not importing this extension into QlikSense April 2020 version.
I downloaded the extension. I imported it to the server. It said it was invalid but loaded it anyway. I opened up the extension in the mashup editor. I selected a qvf, and clicked open. It opened. I clidked the Backup button, and it just spins and never does anything.
I unzipped into and placed it in the Desktop's Extension folder. The same thing happens.
I placed an alert in backup-and-restore.js on line 494 right after $("#serialize").on("click", function () {
The alert never pops up.
I have a suspicion that there is either a conflict, or the "require" statement on line 21 is not working, or some other dependency has not been fulfilled.
Someone else I was working with had an old version of the extension. He isn't having any problems on his Desktop. He zipped it up and gave it to me, and the same thing happened, both on my Desktop and the server. I am also posting this on Alexander's page.
I am running with Qlik Sense 3.2 SR1 and Desktop 3.1 SR4.
The Backup button does not appear to work in Firefox for applications in Qlik Desktop. To reproduce, open any app in the extension and click on the backup button.
Expected: the json file should start to download
Actual: nothing happens.
I stepped through the code and it appears that in the click handler at backup-and-restore.js:419, the method that is being used to download the blob (create an 'a' element, fill it with a new Blob[json], then click on it) doesn't work in Firefox.
We had trouble importing from a json file with the Euro sign and our German Umlaute.
The change to the backup_and_restore.js, that anguilla recommended in the Qlik Branch http://branch-test.qlik.com/#!/project/56728f52d1e497241ae698c7 worked for us. Seem like a fix, that should be made permanent
Ability to backup all avaiilable apps
Hi
This is an essential extension! But I cannot get it to work :-) I'm using Qlik Sense Server 3.0.
I have been able to restore a tiny app with almost no content. But for apps with more content, the green spinner just continues forever when it tries to restore.
Also, I notice that the "Restore" button is only enabled when I have opened the the same app that I'm attempting to restore, using the open button in the user interface. This makes sense, because it stops people from restoring one app onto a different app. However, is it possible to handle the scenario where I want to restore an app that I don't have. (E.g. I have accidentally deleted it.) I did try to create a completely empty app, and restore an existing app onto it. (The Restore button allowed this.) However, I don't know whether it's working, since I cannot restore apps at all.
Thanks a lot for your feedback!
Tor
I get this when trying to restore:
Uncaught (in promise) Object {code: 403, parameter: "REST HTTP error", message: "Forbidden"}
With version 0.10, I can see a list of apps, select and open one, but when I click Backup, the spinner goes on forever and no file is downloaded. Version 0.9.4 works fine. Tested as server plugin on Qlik Sense 3.0.4, browsers Chrome, IE, Firefox, and with Qlik Sense Desktop 3.1.3.
When opening the mashup, no apps are shown, the green circle keeps spinning and next to it says "No active document".
I am already authenticated with Sense (Enterprise) on the same server where the Backup and Restore extension is running, but for some reason no connection is established to the QS Server.
Looking at the developer console in Chrome, a couple of errors are reported:
extensions::messaging:65
Uncaught Error: Attempting to use a disconnected port objectPortImpl.postMessage @ extensions::messaging:65target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94(anonymous function) @ cleekiagent.js:8555
qsocks.bundle.js:162 WebSocket is already in CLOSING or CLOSED state.(anonymous function) @ qsocks.bundle.js:162tryCallTwo @ qsocks.bundle.js:1940doResolve @ qsocks.bundle.js:2066Promise @ qsocks.bundle.js:1960Connection.ask @ qsocks.bundle.js:156Global.getDocList @ qsocks.bundle.js:1256(anonymous function) @ backup-and-restore.js:457tryCallOne @ qsocks.bundle.js:1932(anonymous function) @ qsocks.bundle.js:1998flush @ qsocks.bundle.js:2648drainQueue @ qsocks.bundle.js:1849
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.