Skip to content

Commit

Permalink
CORE-1901 Allow Agave jobs only in job listings
Browse files Browse the repository at this point in the history
  • Loading branch information
psarando committed Sep 17, 2024
1 parent 407a907 commit 9d6ada7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/apps/persistence/jobs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
[permissions-client.core :as pc]))

(def de-job-type "DE")
(def agave-job-type "Agave")
(def tapis-job-type "Tapis")
(def interactive-job-type "Interactive")
(def osg-job-type "OSG")
Expand Down
5 changes: 3 additions & 2 deletions src/apps/service/apps/combined.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
jp/combined-client-name)

(getJobTypes [_]
(mapcat #(.getJobTypes %) clients))
(conj (mapcat #(.getJobTypes %) clients) jp/agave-job-type))

(listSystemIds [_]
(mapcat #(.listSystemIds %) clients))
Expand Down Expand Up @@ -365,4 +365,5 @@
(.hasAppPermission (util/get-apps-client clients system-id) username system-id app-id required-level))

(supportsJobSharing [_ job-step]
(.supportsJobSharing (util/apps-client-for-job-step clients job-step) job-step)))
(and (not= (:job_type job-step) jp/agave-job-type)
(.supportsJobSharing (util/apps-client-for-job-step clients job-step) job-step))))

0 comments on commit 9d6ada7

Please sign in to comment.