Skip to content

Commit

Permalink
fix: Transformation and Pilots: from DN to owner
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Aug 3, 2023
1 parent 6144bc1 commit 47aab25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
6 changes: 0 additions & 6 deletions src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from DIRAC import gConfig, S_OK, gLogger
from DIRAC.Core.Utilities.Graphs.Palette import Palette
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getUsernameForDN
from DIRAC.WorkloadManagementSystem.Client.PilotManagerClient import PilotManagerClient
from WebAppDIRAC.Lib.WebHandler import WebHandler

Expand Down Expand Up @@ -214,8 +213,6 @@ def web_getStatisticsData(self, statsField):
selector = "DestinationSite"
elif statsField == "Owner Group":
selector = "OwnerGroup"
elif statsField == "Owner":
selector = "OwnerDN"
else:
selector = statsField

Expand All @@ -232,9 +229,6 @@ def web_getStatisticsData(self, statsField):
statistics = {}
if (result := RPC.getCounters("PilotAgents", [selector], req))["OK"]:
for status, count in result["Value"]:
if "OwnerDN" in status:
if (userName := getUsernameForDN(status["OwnerDN"]))["OK"]:
status["OwnerDN"] = userName["Value"]
statistics[status[selector]] = count

result = S_OK(statistics)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
{
name: "Broker",
},
{
name: "OwnerDN",
},
{
name: "GridSite",
},
Expand Down Expand Up @@ -385,12 +382,6 @@ Ext.define("DIRAC.PilotMonitor.classes.PilotMonitor", {
hidden: true,
},
},
OwnerDN: {
dataIndex: "OwnerDN",
properties: {
hidden: true,
},
},
OwnerGroup: {
dataIndex: "OwnerGroup",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Ext.define("DIRAC.TransformationMonitor.classes.TransformationMonitor", {
name: "EventsPerJob",
},
{
name: "AuthorDN",
name: "Author",
},
{
name: "AuthorGroup",
Expand Down Expand Up @@ -553,8 +553,8 @@ Ext.define("DIRAC.TransformationMonitor.classes.TransformationMonitor", {
hidden: true,
},
},
AuthorDN: {
dataIndex: "AuthorDN",
Author: {
dataIndex: "Author",
properties: {
hidden: true,
},
Expand Down

0 comments on commit 47aab25

Please sign in to comment.