Skip to content

Commit

Permalink
fix(diracx-routers): search endpoint does not display jobs in GlobalM…
Browse files Browse the repository at this point in the history
…onitoring is set to false
  • Loading branch information
aldbr committed Jan 29, 2025
1 parent 700c2bb commit c32f21d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion diracx-routers/src/diracx/routers/jobs/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ async def search(
{
"parameter": "Owner",
"operator": ScalarSearchOperator.EQUAL,
"value": user_info.sub,
# TODO-385: https://github.com/DIRACGrid/diracx/issues/385
# The value shoud be user_info.sub,
# but since we historically rely on the preferred_username
# we will keep using the preferred_username for now.
"value": user_info.preferred_username,
}
)

Expand Down

0 comments on commit c32f21d

Please sign in to comment.