-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oy 4547 #109
base: master
Are you sure you want to change the base?
Oy 4547 #109
Conversation
@@ -135,6 +138,7 @@ case class Koulutus( | |||
koulutustyyppi: Koulutustyyppi, | |||
koulutuksetKoodiUri: Seq[String], | |||
tila: Julkaisutila, | |||
esikatselu: Option[Boolean] = Option.apply(true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kouta-backendin puolella on asetettu default-arvo näin: esikatselu: Option[Boolean] = Some(true)
. Tässä voisi ehkä noudattaa samaa tyyliä.
@@ -30,6 +30,9 @@ import java.util.UUID | |||
| - tallennettu | |||
| - poistettu | |||
| description: "Toteutuksen julkaisutila. Uudet toteutukset luodaan tallennettu-tilaisina (käyttöliittymässä tilana: Luonnos). Kun toteutus on julkaistu, se näkyy oppijalle Opintopolussa. Tallennetut toteutukset voi muuttaa poistetuiksi, jolloin ne häviävät. Julkaistut toteutukset voi arkistoida, jolloin ne häviävät Opintopolusta näkyvistä. Sallitut tilasiirtymät Poistettu <-- Tallennettu --> Julkaistu <--> Arkistoitu" | |||
| esikatselu: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esikatselu näyttäisi puuttuvan Toteutuksen case classilta. Tarkoitus olisi varmaan lisätä samalla tavalla kuin Koulutukselle?
@@ -12,7 +12,6 @@ import org.json4s.{JBool, JObject, JString} | |||
trait KoutaBackendJsonAdapter { | |||
def adaptToKoutaBackendJson(entityType: Any, koutaExternalJson: JValue): JValue = { | |||
entityType match { | |||
case k: KoutaKoulutusRequest => adaptKoulutusJson(koutaExternalJson) | |||
case t: KoutaToteutusRequest => adaptToteutusJson(koutaExternalJson) | |||
case hk: KoutaHakukohdeRequest => adaptHakukohdeJson(koutaExternalJson) | |||
case vp: KoutaValintaperusteRequest => adaptValintaperusteJson(koutaExternalJson) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mun mielestä täältä tiedostosta vois poistaa kokonaan tuon addDefaultEsikatselu
-funkkarin ja lisätä sen kaikille luokille samalla tavalla defaultiksi case classissa niin kuin Koulutukselle. Eli tänne jäisi vain tuo adaptHakukohdeJson
.
No description provided.