Skip to content

Commit e513dc6

Browse files
authored
Merge pull request #728 from fstagni/51_fixes3
[5.1] one WebApp for one DIRAC Setup
2 parents 6c14a9a + 3264e6e commit e513dc6

5 files changed

Lines changed: 6 additions & 66 deletions

File tree

src/WebAppDIRAC/WebApp/handler/RootHandler.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ def web_changeGroup(self, to: str):
2424
"""
2525
return TornadoResponse().redirect(self.__change(group=to)) # pylint: disable=no-member
2626

27-
def web_changeSetup(self, to: str):
28-
"""Change setup
29-
30-
:return: TornadoResponse()
31-
"""
32-
return TornadoResponse().redirect(self.__change(setup=to)) # pylint: disable=no-member
33-
3427
def __change(self, setup: str = None, group: str = None) -> str:
3528
"""Generate URL to change setup/group, set query"""
3629
root = Conf.rootURL().strip("/")

src/WebAppDIRAC/WebApp/handler/SystemAdministrationHandler.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ def web_getSysInfo(self):
2222
return {"success": "false", "error": result.get("Message", "No system information found")}
2323

2424
# Add the information about the extensions' versions, if available, to display along with the DIRAC version
25-
for i in range(len(callback)):
26-
callback[i]["Host"] = callback[i]["HostName"]
27-
callback[i]["Timestamp"] = str(callback[i].get("Timestamp", "unknown"))
25+
for _i, cb in enumerate(callback):
26+
cb["Host"] = cb["HostName"]
27+
cb["Timestamp"] = str(cb.get("Timestamp", "unknown"))
2828
# We have to keep the backward compatibility (this can heppen when we do not update one host to v6r15 ...
29-
callback[i]["DIRAC"] = "{},{}".format(
30-
callback[i].get("DIRACVersion", callback[i].get("DIRAC", "")),
31-
callback[i].get("Extension", callback[i].get("Extensions", "")),
29+
cb["DIRAC"] = "{},{}".format(
30+
cb.get("DIRACVersion", cb.get("DIRAC", "")),
31+
cb.get("Extension", cb.get("Extensions", "")),
3232
)
3333

3434
return {"success": "true", "result": sorted(callback, key=lambda i: i["Host"]), "total": len(callback)}

src/WebAppDIRAC/WebApp/static/DIRAC/JobMonitor/classes/JobMonitor.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
139139
{
140140
name: "RescheduleTime",
141141
},
142-
{
143-
name: "DIRACSetup",
144-
},
145142
{
146143
name: "FailedFlag",
147144
},
@@ -451,12 +448,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
451448
width: 150,
452449
},
453450
},
454-
DIRACSetup: {
455-
dataIndex: "DIRACSetup",
456-
properties: {
457-
hidden: true,
458-
},
459-
},
460451
FailedFlag: {
461452
dataIndex: "FailedFlag",
462453
properties: {

src/WebAppDIRAC/WebApp/static/DIRAC/SystemAdministration/classes/SystemAdministration.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ Ext.define("DIRAC.SystemAdministration.classes.SystemAdministration", {
150150
{
151151
name: "OpenSockets",
152152
},
153-
{
154-
name: "Setup",
155-
},
156153
{
157154
name: "Uptime",
158155
},
@@ -394,12 +391,6 @@ Ext.define("DIRAC.SystemAdministration.classes.SystemAdministration", {
394391
header: "OpenSockets",
395392
sortable: true,
396393
},
397-
{
398-
align: "left",
399-
dataIndex: "Setup",
400-
header: "Setup",
401-
sortable: true,
402-
},
403394
{
404395
align: "left",
405396
dataIndex: "Uptime",
@@ -552,9 +543,6 @@ Ext.define("DIRAC.SystemAdministration.classes.SystemAdministration", {
552543
{
553544
name: "Name",
554545
},
555-
{
556-
name: "Setup",
557-
},
558546
{
559547
name: "PID",
560548
},
@@ -924,12 +912,6 @@ Ext.define("DIRAC.SystemAdministration.classes.SystemAdministration", {
924912
return me.rendererGridColumn(value, record);
925913
},
926914
},
927-
Setup: {
928-
dataIndex: "Setup",
929-
renderer: function (value, metaData, record, row, col, store, gridView) {
930-
return me.rendererGridColumn(value, record);
931-
},
932-
},
933915
Port: {
934916
dataIndex: "Port",
935917
renderer: function (value, metaData, record, row, col, store, gridView) {
@@ -1036,9 +1018,6 @@ Ext.define("DIRAC.SystemAdministration.classes.SystemAdministration", {
10361018
{
10371019
name: "ComponentName",
10381020
},
1039-
{
1040-
name: "Setup",
1041-
},
10421021
{
10431022
name: "Port",
10441023
},

src/WebAppDIRAC/WebApp/static/core/js/views/tabs/SettingsPanel.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ Ext.define("Ext.dirac.views.tabs.SettingsPanel", {
8080
text: "Group:",
8181
},
8282
me.addGroupsButton(),
83-
{
84-
xtype: "label",
85-
text: "Setup:",
86-
},
87-
me.addSetupButton(),
8883
{
8984
xtype: "label",
9085
text: "Theme:",
@@ -226,24 +221,6 @@ Ext.define("Ext.dirac.views.tabs.SettingsPanel", {
226221

227222
return new Ext.button.Button(button_group);
228223
},
229-
addSetupButton: function () {
230-
var setup_data = {
231-
text: GLOBAL.APP.configData["setup"],
232-
menu: [],
233-
};
234-
235-
for (var i = 0; i < GLOBAL.APP.configData["validSetups"].length; i++)
236-
setup_data.menu.push({
237-
text: GLOBAL.APP.configData["validSetups"][i],
238-
handler: function () {
239-
var me = this;
240-
241-
location.href = GLOBAL.BASE_URL + "changeSetup?to=" + me.text;
242-
},
243-
});
244-
245-
return new Ext.button.Button(setup_data);
246-
},
247224
addThemeButton: function () {
248225
var me = this;
249226

0 commit comments

Comments
 (0)