Skip to content

Commit

Permalink
Merge pull request #264 from psarando/CORE-1875
Browse files Browse the repository at this point in the history
CORE-1875 Fix /analyses/stats endpoint response
  • Loading branch information
psarando authored Mar 4, 2023
2 parents 3713e39 + 923949f commit 8a8ce9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/apps/service/apps/job_listings.clj
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@

(defn list-job-stats
[apps-client user params]
(let [perms (perms-client/load-analysis-permissions (:shortUsername user))
analysis-ids (set (keys perms))
types (.getJobTypes apps-client)]
{:status-count (count-job-statuses user params types analysis-ids)}))
(let [group-ids (future (->> (ipg/lookup-subject-groups (:shortUsername user)) :groups (mapv :id)))
subject-ids (future (conj @group-ids (:shortUsername user)))
types (.getJobTypes apps-client)]
{:status-count (count-job-statuses user params types @subject-ids)}))

(defn admin-list-jobs-with-external-ids [external-ids]
(let [jobs (jp/list-jobs-by-external-id external-ids)
Expand Down

0 comments on commit 8a8ce9e

Please sign in to comment.