export.js
/**
 * Start export of complete aggregate packages: dataset and dashboards with deps
 */
Start export of complete aggregate packages: dataset and dashboards with deps
Start export of complete aggregate packages : dataset and dashboards with deps
function exportDashboard() {
	console.log("1. Downloading metadata");
	var promises = [
		dependencyExport("dashboard", currentExport.dashboardIds)
	];
	Q.all(promises).then(function (results) {
		promises = [
			indicators(),
			categoryOptionGroupSetStructure(),
			saveObject("indicatorGroups", currentExport.indicatorGroupIds),
			userGroups(),
			users()
		];
		Q.all(promises).then(function (results) {
			promises = [
				indicatorTypes(),
				legendSets(),
				customObjects()
			];
			Q.all(promises).then(function (results) {
				console.log("✔ Downloaded metadata successfully");
				processDashboard();
			});
		});
	});
}
function exportDashboard ( ) { console . log ( "1. Downloading metadata" ) ; var promises = [ dependencyExport ( "dashboard" , currentExport . dashboardIds ) ] ; Q . all ( promises ) . then ( function ( results ) { promises = [ indicators ( ) , categoryOptionGroupSetStructure ( ) , saveObject ( "indicatorGroups" , currentExport . indicatorGroupIds ) , userGroups ( ) , users ( ) ] ; Q . all ( promises ) . then ( function ( results ) { promises = [ indicatorTypes ( ) , legendSets ( ) , customObjects ( ) ] ; Q . all ( promises ) . then ( function ( results ) { console . log ( "✔ Downloaded metadata successfully"); processDashboard ( ) ; } ) ; } ) ; } ) ; }
Start export of complete aggregate packages: dataset and dashboards with deps
Start export of complete aggregate packages : dataset and dashboards with deps
//Do initial dependency export //Get indicators and categoryOptionGroupSets from favourites //Get indicator groups from conf files //Get legends from data elements, indicators and favourites //Get indicator types from indicators