Skip to content

Commit

Permalink
Merge pull request #752 from fstagni/pilots_OwnerGroup2VO
Browse files Browse the repository at this point in the history
Pilots owner group2 vo
  • Loading branch information
chrisburr authored Jan 18, 2024
2 parents f7031e7 + 6a17d22 commit 694a7f9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
22 changes: 11 additions & 11 deletions src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ def web_getSelectionData(self):
gridtype = [["Nothing to display"]]
callback["gridtype"] = gridtype

if "OwnerGroup" in result and len(result["OwnerGroup"]) > 0:
ownerGroup = []
for i in result["OwnerGroup"]:
ownerGroup.append([str(i)])
if "VO" in result and len(result["VO"]) > 0:
VO = []
for i in result["VO"]:
VO.append([str(i)])
else:
ownerGroup = [["Nothing to display"]]
callback["ownerGroup"] = ownerGroup
VO = [["Nothing to display"]]
callback["VO"] = VO

if "DestinationSite" in result and len(result["DestinationSite"]) > 0:
ce = []
Expand Down Expand Up @@ -159,9 +159,9 @@ def __request(self):
if owner:
req["Owner"] = owner

ownerGroup = list(json.loads(self.get_argument("ownerGroup", "[]")))
if ownerGroup:
req["OwnerGroup"] = ownerGroup
VO = list(json.loads(self.get_argument("VO", "[]")))
if VO:
req["VO"] = VO

sort = json.loads(self.get_argument("sort", "[]"))
if len(sort) > 0:
Expand Down Expand Up @@ -211,8 +211,8 @@ def web_getStatisticsData(self, statsField):
selector = "GridSite"
elif statsField == "Computing Element":
selector = "DestinationSite"
elif statsField == "Owner Group":
selector = "OwnerGroup"
elif statsField == "VO":
selector = "VO"
else:
selector = statsField

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
{
name: "CPUTime",
},
{
name: "OwnerDN",
},
{
name: "JobGroup",
},
Expand Down Expand Up @@ -202,9 +199,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
name: "StatusIcon",
mapping: "Status",
},
{
name: "OwnerGroup",
},
],

initComponent: function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
name: "Status",
},
{
name: "OwnerGroup",
name: "VO",
},
{
name: "LastUpdateTime",
Expand Down Expand Up @@ -185,7 +185,7 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
site: "Site",
status: "Status",
computingElement: "Computing Element",
ownerGroup: "Owner Group",
VO: "VO",
owner: "Owner",
broker: "Broker",
};
Expand All @@ -205,7 +205,7 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
["site", "site"],
["status", "status"],
["computingElement", "computingElement"],
["ownerGroup", "ownerGroup"],
["VO", "VO"],
["owner", "owner"],
["broker", "broker"],
];
Expand Down Expand Up @@ -382,8 +382,8 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
hidden: true,
},
},
OwnerGroup: {
dataIndex: "OwnerGroup",
VO: {
dataIndex: "VO",
},
PilotID: {
dataIndex: "PilotID",
Expand Down Expand Up @@ -452,7 +452,7 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
mode: "local",
store: new Ext.data.ArrayStore({
fields: ["category"],
data: [["Status"], ["Site"], ["Computing Element"], ["Owner Group"], ["Owner"], ["Broker"]],
data: [["Status"], ["Site"], ["Computing Element"], ["VO"], ["Owner"], ["Broker"]],
}),
triggerAction: "all",
value: "Status",
Expand Down

0 comments on commit 694a7f9

Please sign in to comment.