Skip to content

Commit

Permalink
added opening of DIM session page after REST deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Aug 17, 2021
1 parent aabe33e commit 2b6653e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions daliuge-translator/dlg/dropmake/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,15 @@ function fillOutSettings(){
const create_session_url = "http://" + manager_host + ":" + manager_port + "/api/sessions";
const append_graph_url = "http://" + manager_host + ":" + manager_port + "/api/sessions/" + sessionId + "/graph/append";
const deploy_graph_url = "http://" + manager_host + ":" + manager_port + "/api/sessions/" + sessionId + "/deploy";
const mgr_url = "http://" + manager_host + ":" + manager_port + "/session?sessionId=" + sessionId

// fetch the graph from this server
//const graph = await fetch("/pgt_jsonbody?pgt_name="+pgtName).then(response => response.json());
//console.log("graph", graph);
const graph = await fetch("/pgt_jsonbody?pgt_name="+pgtName).then(response => response.json());
console.log("graph", graph);

// fetch the nodelist from engine
//const node_list = await fetch(node_list_url).then(response => response.json());
//console.log("node_list", node_list);
const node_list = await fetch(node_list_url).then(response => response.json());
console.log("node_list", node_list);

// build object containing manager data
const pg_spec_request_data = {
Expand Down Expand Up @@ -222,6 +223,6 @@ function fillOutSettings(){
})
}).then(response => response.json());
console.log("deploy graph response", deploy_graph);

window.open(mgr_url, '_blank').focus();

}

0 comments on commit 2b6653e

Please sign in to comment.