Skip to content

Commit 024d086

Browse files
committed
fix: added VO selector
1 parent bff4a8e commit 024d086

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from DIRAC import gConfig, gLogger
55
from DIRAC.Core.Utilities import DictCache
66
from DIRAC.Core.Utilities.Graphs.Palette import Palette
7-
from DIRAC.RequestManagementSystem.Client.Request import Request
87
from DIRAC.RequestManagementSystem.Client.ReqClient import ReqClient
98
from DIRAC.WorkloadManagementSystem.Client.JobMonitoringClient import JobMonitoringClient
109
from DIRAC.WorkloadManagementSystem.Client.JobManagerClient import JobManagerClient
@@ -256,6 +255,10 @@ def _request(self):
256255
if ownerGroup:
257256
req["OwnerGroup"] = ownerGroup
258257

258+
vo = list(json.loads(self.get_argument("vo", "[]")))
259+
if vo:
260+
req["vo"] = vo
261+
259262
if self.get_argument("startDate", ""):
260263
req["FromDate"] = self.get_argument("startDate")
261264
if self.get_argument("startTime", ""):

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
145145
type: "date",
146146
dateFormat: "Y-m-d H:i:s",
147147
},
148+
{
149+
name: "VO",
150+
},
148151
{
149152
name: "OwnerGroup",
150153
},
@@ -224,6 +227,7 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
224227
appStatus: "Application Status",
225228
owner: "Owner",
226229
OwnerGroup: "OwnerGroup",
230+
VO: "VO",
227231
jobGroup: "Job Group",
228232
jobType: "Job Type",
229233
};
@@ -249,6 +253,7 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
249253
["status", "status"],
250254
["types", "jobType"],
251255
["OwnerGroup", "OwnerGroup"],
256+
["VO", "VO"],
252257
];
253258

254259
me.leftPanel = Ext.create("Ext.dirac.utils.DiracBaseSelector", {
@@ -380,6 +385,9 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
380385
Site: {
381386
dataIndex: "Site",
382387
},
388+
VO: {
389+
dataIndex: "VO",
390+
},
383391
JobName: {
384392
dataIndex: "JobName",
385393
properties: {
@@ -675,7 +683,7 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
675683
mode: "local",
676684
store: new Ext.data.ArrayStore({
677685
fields: ["category"],
678-
data: [["Status"], ["Site"], ["Minor Status"], ["Application Status"], ["Owner"], ["Owner Group"], ["Job Group"], ["Job Type"]],
686+
data: [["Status"], ["Site"], ["Minor Status"], ["Application Status"], ["Owner"], ["Owner Group"], ["VO"], ["Job Group"], ["Job Type"]],
679687
}),
680688
triggerAction: "all",
681689
value: "Status",

0 commit comments

Comments
 (0)