Skip to main content

Suggest an Idea

Vote for your favorite Qlik product ideas and add your own suggestions.

Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Add a spinner or an option to show progress/feedback in the reload API methdod (ConfigureReload)

piersbatchelor_vl
Partner - Contributor III
Partner - Contributor III

Add a spinner or an option to show progress/feedback in the reload API methdod (ConfigureReload)

When calling method ConfigureReload, there is an error message shown to the user OR "Reload in Progress"

The data still refreshes, but there is no feedback to the user that the reload is still in progress. This should be clear to the user since developers can't get feedback from the API that the reload is complete, so we can't show this ourselves at the moment.

Tags (2)
2 Comments
John_Teichman
Former Employee
Former Employee

Hello @piersbatchelor_vl,

Thanks for your idea. Going forward, please apply one, and only one, label to your ideas. We use the labels to route ideas to the appropriate product managers. The review process is slowed down when there are multiple labels on an idea. Please see the submission guidelines for more information on the labels.

Jeffrey_Goldberg
Employee
Employee

HI @piersbatchelor_vl ,

you should be able to assess reload status using this api endpoint in qrs: https://help.qlik.com/en-US/sense-developer/June2020/Subsystems/RepositoryServiceAPI/Content/Sense_R...

I wrote some old code a while back that runs until the reload is complete:

function progressCheck(id, callback) {
    //console.log(reload);
    var path = "/executionsession";
    path += "?filter=id eq " + id;
    logger.debug('progressCheck::PATH::' + path, { module: 'reloadmetrics' });
    return qrsInteract.Get(path)
        .then(function(reloadProgress) {
            if (reloadProgress.body === undefined || reloadProgress.body.length == 0) {
                logger.info('reloadMetrics::progressCheck::Task Complete', { module: 'reloadmetrics' });
                return callback(null, 'Reload Complete');
            } else {
                var reloadStep = reloadProgress.body[0].executionResult.details.length;
                logger.debug('reloadMetrics::progressCheck::' + reloadProgress.body[0].executionResult.details[reloadStep - 1].message, { module: 'reloadmetrics' });
                return progressCheck(id, callback);
            }
        })
        .catch(function(error) {
            logger.error('reloadMetrics::progressCheck::' + error, { module: 'reloadmetrics' });
            return callback(error);
        });
}

 

If you want to show a message you just have it display while the reload is not complete.

 

Regards,

 

Jeff G

 

Status changed to: Closed - Already Available