Commit 98266645f0a5fae710999a0f28ae783017e3a2a4
Exists in
master
and in
99 other branches
Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_IHM
Showing
10 changed files
with
59 additions
and
48 deletions
Show diff stats
desktop.php
... | ... | @@ -7,7 +7,6 @@ |
7 | 7 | |
8 | 8 | |
9 | 9 | require_once('php/config.php'); |
10 | - | |
11 | 10 | // error_reporting(E_ALL); |
12 | 11 | if (!isset($_POST['username'])) { |
13 | 12 | header('Location: index.html'); |
... | ... | @@ -107,6 +106,8 @@ |
107 | 106 | var max_uploaded_file_size = '<?php echo MAX_UPLOADED_FILESIZE; ?>'; |
108 | 107 | var guestSessionDuration = '<?php echo GuestSessionDuration*60; ?>'; // in secs |
109 | 108 | var maxGuestTimeInterval = '<?php echo MaxGuestTimeInterval; ?>'; // in days |
109 | + | |
110 | + var gatewayTimeout = '<?php if (defined('GATEWAY_TIMEOUT')) echo GATEWAY_TIMEOUT; else echo 300000; ?>'; // in msec | |
110 | 111 | |
111 | 112 | var logExecTime = <?php echo (LOG_EXEC_TIME === TRUE ? 'true' : 'false'); ?>; |
112 | 113 | |
... | ... | @@ -166,15 +167,23 @@ |
166 | 167 | Ext.onReady(function () { |
167 | 168 | //TODO update jobsStatus onLogin |
168 | 169 | Ext.Ajax.extraParams = {sessionID : sessionID}; |
169 | - Ext.Ajax.timeout = 600000; | |
170 | - Ext.Ajax.on('requestexception', function(conn, response, options, e) { | |
170 | + Ext.Ajax.timeout = gatewayTimeout; // msec ; should be the same value (or less) as gateway timeout | |
171 | + | |
172 | + Ext.Ajax.on('requestexception', function(conn, response, options, e) { | |
173 | + | |
171 | 174 | if (loadMask && loadMask.isMasked()) |
172 | 175 | loadMask.hide(); |
173 | - if (response && response.statusText) | |
174 | - myDesktopApp.errorMsg(response.statusText); | |
176 | + | |
177 | + if (response && response.statusText) { | |
178 | + if (response.timedout) | |
179 | + myDesktopApp.errorMsg('Request processing time exceeds gateway timeout.<br/>In case of parameter from Remote Bases : please re-launch the same request in 10 min,<br/>otherwise contact AMDA team'); | |
180 | + else | |
181 | + myDesktopApp.errorMsg(response.statusText); | |
182 | + } | |
175 | 183 | else |
176 | 184 | myDesktopApp.errorMsg('Communication failure'); |
177 | 185 | }); |
186 | + | |
178 | 187 | // backspace key disable |
179 | 188 | Ext.EventManager.on(window, 'keydown', function(e, t) { |
180 | 189 | if (e.getKey() == e.BACKSPACE && ((!/^input$/i.test(t.tagName) && !/^textarea$/i.test(t.tagName)) || t.disabled || t.readOnly)) { |
... | ... |
generic_data/resources.json
... | ... | @@ -7,7 +7,6 @@ |
7 | 7 | ] |
8 | 8 | }, |
9 | 9 | {"nodeType" : "derivedParam","text" : "Derived Parameters","id" : "derivedParam-treeRootNode"}, |
10 | - {"nodeType" : "alias","text" : "Aliases","id" : "alias-treeRootNode"}, | |
11 | 10 | {"nodeType" : "", "text" : "Time Tables", "id" : "TT-treeBase" , |
12 | 11 | "children" : [ |
13 | 12 | { "nodeType" : "timeTable", "text" : "My Time Tables", "id" : "timeTable-treeRootNode"}, |
... | ... |
js/app/controllers/AstroImagesModule.js
... | ... | @@ -17,7 +17,7 @@ Ext.define('amdaDesktop.AstroImagesModule', { |
17 | 17 | extend: 'amdaDesktop.AmdaModule', |
18 | 18 | |
19 | 19 | requires : [ |
20 | - 'amdaUI.HstUI', | |
20 | +// 'amdaUI.HstUI', | |
21 | 21 | 'amdaUI.APISImagesUI' |
22 | 22 | ], |
23 | 23 | |
... | ... | @@ -52,11 +52,11 @@ Ext.define('amdaDesktop.AstroImagesModule', { |
52 | 52 | title: 'APIS Archive', |
53 | 53 | xtype: 'panelAPIS', |
54 | 54 | id : 'apisPanel' |
55 | - }, | |
56 | - { | |
57 | - title: 'MAST Archive', | |
58 | - xtype: 'panelHst', | |
59 | - id : 'hstPanel' | |
55 | +// }, | |
56 | +// { | |
57 | +// title: 'MAST Archive', | |
58 | +// xtype: 'panelHst', | |
59 | +// id : 'hstPanel' | |
60 | 60 | } |
61 | 61 | ] |
62 | 62 | } |
... | ... | @@ -64,11 +64,11 @@ Ext.define('amdaDesktop.AstroImagesModule', { |
64 | 64 | }); |
65 | 65 | } |
66 | 66 | |
67 | - var hstPanel = win.queryById('hstPanel'); | |
67 | +// var hstPanel = win.queryById('hstPanel'); | |
68 | 68 | var apisPanel = win.queryById('apisPanel'); |
69 | 69 | |
70 | 70 | |
71 | - hstPanel.setInterval(startDate,stopDate); | |
71 | +// hstPanel.setInterval(startDate,stopDate); | |
72 | 72 | apisPanel.setInterval(startDate,stopDate); |
73 | 73 | |
74 | 74 | win.on({ |
... | ... | @@ -78,8 +78,8 @@ Ext.define('amdaDesktop.AstroImagesModule', { |
78 | 78 | { |
79 | 79 | win.doLayout(); |
80 | 80 | var astrotabsUI = win.queryById('astrotabs'); |
81 | - astrotabsUI.setActiveTab(apisPanel); | |
82 | - hstPanel.forceRefresh(); | |
81 | +// astrotabsUI.setActiveTab(apisPanel); | |
82 | +// hstPanel.forceRefresh(); | |
83 | 83 | apisPanel.forceRefresh(); |
84 | 84 | }, |
85 | 85 | scope : this |
... | ... |
js/app/models/ExecutableNode.js
... | ... | @@ -57,10 +57,10 @@ Ext.define('amdaModel.ExecutableNode', { |
57 | 57 | |
58 | 58 | //AKKA - Rework of the result treatment for the integration with the new kernel |
59 | 59 | if (!e.status){ |
60 | - myDesktopApp.errorMsg('Internal error during request'); | |
60 | + // myDesktopApp.errorMsg('Internal error during request'); | |
61 | 61 | return; |
62 | 62 | } |
63 | - | |
63 | + | |
64 | 64 | if (!res.success){ |
65 | 65 | myDesktopApp.errorMsg(res.message); |
66 | 66 | return; |
... | ... |
js/app/models/LocalParamNode.js
... | ... | @@ -98,11 +98,11 @@ Ext.define('amdaModel.LocalParamNode', |
98 | 98 | fnId : 'para-createDerivedParam', |
99 | 99 | text : 'Create Derived Parameter', |
100 | 100 | hidden : true |
101 | - }, { | |
101 | + }, /*{ | |
102 | 102 | fnId : 'leaf-createAlias', |
103 | 103 | text : 'Create/Edit Alias', |
104 | 104 | hidden : true |
105 | - },{ | |
105 | + },*/{ | |
106 | 106 | fnId : 'leaf-createDerivedParam', |
107 | 107 | text : 'Create Derived Parameter', |
108 | 108 | hidden : true |
... | ... |
js/app/models/RemoteParamNode.js
... | ... | @@ -55,10 +55,10 @@ Ext.define('amdaModel.RemoteParamNode', { |
55 | 55 | fnId : 'para-downParam', |
56 | 56 | text : 'Download Parameter', |
57 | 57 | hidden : true |
58 | - },{ | |
58 | + },/*{ | |
59 | 59 | fnId : 'leaf-createAlias', |
60 | 60 | text : 'Create/Edit Alias' |
61 | - }, { | |
61 | + }, */{ | |
62 | 62 | fnId : 'leaf-createDerivedParam', |
63 | 63 | text : 'Create Derived Parameter' |
64 | 64 | },{ |
... | ... |
js/app/models/RemoteSimuParamNode.js
... | ... | @@ -61,10 +61,10 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
61 | 61 | fnId : 'dire-collapseAll', |
62 | 62 | text : 'Close All' |
63 | 63 | }, |
64 | - { | |
65 | - fnId : 'leaf-createAlias', | |
66 | - text : 'Create/Edit Alias' | |
67 | - }, | |
64 | +// { | |
65 | +// fnId : 'leaf-createAlias', | |
66 | +// text : 'Create/Edit Alias' | |
67 | +// }, | |
68 | 68 | { |
69 | 69 | fnId : 'leaf-createDerivedParam', |
70 | 70 | text : 'Create Derived Parameter' |
... | ... |
js/app/views/ExplorerUI.js
... | ... | @@ -945,10 +945,10 @@ Ext.define('amdaUI.ExplorerUI', { |
945 | 945 | tree.applyDisableToNode(localNode); |
946 | 946 | |
947 | 947 | //apply filter to aliases |
948 | - var aliasNode = tree.getRootNode().findChild('id','alias-treeRootNode',true); | |
949 | - tree.applyFilterToNodes(aliasNode); | |
950 | - tree.setNodesVisibility(aliasNode,false); | |
951 | - tree.applyDisableToNode(aliasNode); | |
948 | +// var aliasNode = tree.getRootNode().findChild('id','alias-treeRootNode',true); | |
949 | +// tree.applyFilterToNodes(aliasNode); | |
950 | +// tree.setNodesVisibility(aliasNode,false); | |
951 | +// tree.applyDisableToNode(aliasNode); | |
952 | 952 | break; |
953 | 953 | |
954 | 954 | case 'simu' : |
... | ... |
php/classes/AmdaAction.php
... | ... | @@ -200,24 +200,24 @@ class AmdaAction |
200 | 200 | $plotTabs = FALSE; |
201 | 201 | break; |
202 | 202 | |
203 | - case 'alias': | |
204 | - $info = $id; | |
205 | - $id = 'alias_'.$id; | |
206 | - $component_info = array(); | |
207 | - if ($child->hasAttribute("index1")) | |
208 | - $component_info["index1"] = $child->getAttribute('index1'); | |
209 | - if ($child->hasAttribute("index2")) | |
210 | - $component_info["index2"] = $child->getAttribute('index2'); | |
211 | - | |
212 | - if ($child->hasAttribute("parentId")) | |
213 | - $component_info["parentId"] = $child->getAttribute("parentId"); | |
214 | - | |
215 | - if ($child->hasAttribute("iconCls")) | |
216 | - $iconCls = $child->getAttribute("iconCls"); | |
217 | - | |
218 | - if ($isLeaf) $isParameter = true; | |
219 | - | |
220 | - break; | |
203 | +// case 'alias': | |
204 | +// $info = $id; | |
205 | +// $id = 'alias_'.$id; | |
206 | +// $component_info = array(); | |
207 | +// if ($child->hasAttribute("index1")) | |
208 | +// $component_info["index1"] = $child->getAttribute('index1'); | |
209 | +// if ($child->hasAttribute("index2")) | |
210 | +// $component_info["index2"] = $child->getAttribute('index2'); | |
211 | +// | |
212 | +// if ($child->hasAttribute("parentId")) | |
213 | +// $component_info["parentId"] = $child->getAttribute("parentId"); | |
214 | +// | |
215 | +// if ($child->hasAttribute("iconCls")) | |
216 | +// $iconCls = $child->getAttribute("iconCls"); | |
217 | +// | |
218 | +// if ($isLeaf) $isParameter = true; | |
219 | +// | |
220 | +// break; | |
221 | 221 | |
222 | 222 | case 'timeTable': |
223 | 223 | case 'catalog': |
... | ... |
php/my_config.template.php
... | ... | @@ -24,6 +24,9 @@ define('TITLE', '{:TITLE:}'); |
24 | 24 | // here for additional flexibility |
25 | 25 | define('MAX_UPLOADED_FILESIZE',{:MAX_UPLOADED_FILESIZE:}); // in bytes !!! |
26 | 26 | |
27 | +// To define only if current AMDA installation is behind proxy | |
28 | +define('GATEWAY_TIMEOUT','{:GATEWAY_TIMEOUT:}'); | |
29 | + | |
27 | 30 | // To define only if you are behind a proxy |
28 | 31 | define('PROXY_HOST','{:PROXY_HOST:}'); |
29 | 32 | define('PROXY_USERPWD','{:PROXY_USERPWD:}'); |
... | ... |