Qlik Community

Qlik Sense EA Powertools

Discussion board where members can learn more about Qlik Sense Powertools.

Highlighted
Partner
Partner

QMC Utilities Source Control Assistant - doesn't support master visualizations

Hello,

 

I am testing out the Source Control Assistant, which first off is an awesome tool, as an app mostly will restore to it's original state after being stored in .json format. 

However, master visualizations are not restored, and I've been digging a bit into why this is. First off, the tool uses the node utility serializeapp (https://github.com/mindspank/serializeapp) to convert the app objects into .json format. I'm no JS wiz so I don't really understand whether this actually saves what is required to  restore master visualizations, but from what I can see it does (it is stored as masterobjects.json in the backuped file).

Hence it seems that the missing functionality might lie in the Source Control Assistants, as it doesn't successfully recreate the master objects (visualizations) when restoring backed up files.  

 

Does anyone with a bit more insight into the project have an idea of whether this is fixable? 

 

Update: I found that visualizations (master objects) are not imported into the restored app.  It started working by adding these lines to the file restoreApp.js in the folder C:\Program Files\Qlik\Sense\EAPowerTools\QMCUtilities\plugins\scLite\lib (starting on row 88):

.then(function(foo)
{
logger.info("Adding masterobjects to " + x.appId, {module:'restoreApp'});
var masterobjects = loadFile(inputPath + "/masterobjects.json");
return importAppObjects(x, masterobjects.masterobjects);
})
.then(function(masterobjectIDs)
{
logger.info(masterobjectIDs, {module:'restoreApp'});
x.ids.push({"type":"masterobject","ids": masterobjectIDs});
return;
})

1 Reply
Partner
Partner

Re: QMC Utilities Source Control Assistant - doesn't support master visualizations

Thank you for posting this. The code snippet you provided fixed that issue for me.

 

Does anybody know if these tools are getting any development attention? I am often questioned by clients looking for an effective SC solution for Qlik and the QMC Utilities are a reasonable solution but I fear the eventual obsolescence of the code.

 

Thanks

 

Chris