Skip to content

Commit da80142

Browse files
authored
Merge pull request #755 from fstagni/pilots_simpl
Pilots simplification
2 parents a089640 + 1d077f3 commit da80142

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed

src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py

-15
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,6 @@ def web_getSelectionData(self):
108108
else:
109109
site = [["Error during RPC call"]]
110110
callback["site"] = site
111-
if "Broker" in result and len(result["Broker"]) > 0:
112-
broker = []
113-
for i in result["Broker"]:
114-
broker.append([str(i)])
115-
else:
116-
broker = [["Nothing to display"]]
117-
callback["broker"] = broker
118111
if "Owner" in result and len(result["Owner"]) > 0:
119112
owner = []
120113
for i in result["Owner"]:
@@ -135,18 +128,10 @@ def __request(self):
135128
if site:
136129
req["GridSite"] = site
137130

138-
taskQueueId = list(json.loads(self.get_argument("taskQueueId", "[]")))
139-
if taskQueueId:
140-
req["TaskQueueID"] = taskQueueId
141-
142131
pilotId = list(json.loads(self.get_argument("pilotId", "[]")))
143132
if pilotId:
144133
req["PilotJobReference"] = pilotId
145134

146-
broker = list(json.loads(self.get_argument("broker", "[]")))
147-
if broker:
148-
req["broker"] = broker
149-
150135
status = list(json.loads(self.get_argument("status", "[]")))
151136
if status:
152137
req["Status"] = status

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

+1-19
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,13 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
9393
{
9494
name: "GridType",
9595
},
96-
{
97-
name: "TaskQueueID",
98-
},
9996
{
10097
name: "CurrentJobID",
10198
},
10299
{
103100
name: "BenchMark",
104101
type: "float",
105102
},
106-
{
107-
name: "Broker",
108-
},
109103
{
110104
name: "GridSite",
111105
},
@@ -187,14 +181,9 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
187181
computingElement: "Computing Element",
188182
VO: "VO",
189183
owner: "Owner",
190-
broker: "Broker",
191184
};
192185

193186
var textFields = {
194-
taskQueueId: {
195-
name: "Task Queue ID",
196-
type: "number",
197-
},
198187
pilotId: {
199188
name: "Pilot Job Reference",
200189
type: "originalText",
@@ -207,7 +196,6 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
207196
["computingElement", "computingElement"],
208197
["VO", "VO"],
209198
["owner", "owner"],
210-
["broker", "broker"],
211199
];
212200

213201
me.leftPanel = Ext.create("Ext.dirac.utils.DiracBaseSelector", {
@@ -361,18 +349,12 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
361349
ComputingElement: {
362350
dataIndex: "DestinationSite",
363351
},
364-
Broker: {
365-
dataIndex: "Broker",
366-
},
367352
CurrentJobID: {
368353
dataIndex: "CurrentJobID",
369354
},
370355
GridType: {
371356
dataIndex: "GridType",
372357
},
373-
TaskQueueID: {
374-
dataIndex: "TaskQueueID",
375-
},
376358
BenchMark: {
377359
dataIndex: "BenchMark",
378360
},
@@ -452,7 +434,7 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
452434
mode: "local",
453435
store: new Ext.data.ArrayStore({
454436
fields: ["category"],
455-
data: [["Status"], ["Site"], ["Computing Element"], ["VO"], ["Owner"], ["Broker"]],
437+
data: [["Status"], ["Site"], ["Computing Element"], ["VO"], ["Owner"]],
456438
}),
457439
triggerAction: "all",
458440
value: "Status",

0 commit comments

Comments
 (0)