Skip to content

Commit

Permalink
Merge pull request #386 from aldbr/main_DEBUG_job-search
Browse files Browse the repository at this point in the history
fix(diracx-routers): search endpoint does not display jobs in GlobalMonitoring is set to False
  • Loading branch information
chaen authored Jan 29, 2025
2 parents 700c2bb + c32f21d commit 1644e8c
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 1644e8c

Please sign in to comment.