-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OK-781: Koskesta haettujen tutkintojen visualisointi katselmointi-näk…
…ymässä
- Loading branch information
Showing
13 changed files
with
79 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
(ns ataru.koski.koski-service | ||
(:require [ataru.koski.koski-client :as koski-client])) | ||
(:require [taoensso.timbre :as log] | ||
[ataru.koski.koski-client :as koski-client])) | ||
|
||
(defprotocol KoskiTutkintoService | ||
(get-tutkinnot-for-oppija [this oppija-oid] | ||
(get-tutkinnot-for-oppija [this throw-errors oppija-oid] | ||
"Gets all available tutkinnot for oppija")) | ||
|
||
;TODO korjaa tai poista logitus | ||
(defrecord IntegratedKoskiTutkintoService [koski-cas-client] | ||
KoskiTutkintoService | ||
(get-tutkinnot-for-oppija [_ oppija-oid] | ||
(get-tutkinnot-for-oppija [_ throw-errors oppija-oid] | ||
(try | ||
(koski-client/get-tutkinnot-for-oppija-oid oppija-oid koski-cas-client) | ||
(catch Exception exp | ||
(println (str "!!!!!!!!!!!!!!!!!!!! error " exp)))))) | ||
(log/error exp "Failed to fetch tutkinnot from koski") | ||
(when throw-errors | ||
(throw exp)))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters