-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat/koto xml import #707
base: main
Are you sure you want to change the base?
Feat/koto xml import #707
Conversation
server/src/main/kotlin/fi/oph/kitu/kotoutumiskoulutus/KoealustaService.kt
Show resolved
Hide resolved
.../src/main/kotlin/fi/oph/kitu/kotoutumiskoulutus/tehtavapankki/TehtavapankkiScheduledTasks.kt
Show resolved
Hide resolved
server/src/main/kotlin/fi/oph/kitu/kotoutumiskoulutus/tehtavapankki/TehtavapankkiService.kt
Show resolved
Hide resolved
server/src/main/kotlin/fi/oph/kitu/kotoutumiskoulutus/tehtavapankki/TehtavapankkiService.kt
Outdated
Show resolved
Hide resolved
server/src/main/kotlin/fi/oph/kitu/kotoutumiskoulutus/tehtavapankki/TehtavapankkiService.kt
Outdated
Show resolved
Hide resolved
13556ba
to
0b4586e
Compare
0052c8e
to
fcc2102
Compare
db8adcc
to
7fd6dc0
Compare
7fd6dc0
to
9a0cf5b
Compare
38084c6
to
a8324f2
Compare
a8324f2
to
12f0e4d
Compare
f5a5dcd
to
27147ec
Compare
27147ec
to
f5568c7
Compare
@JsonProperty("questionbanks") | ||
val questionbanks: List<Questionbank>, | ||
) { | ||
data class Questionbank( |
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.
data class Questionbank( | |
data class QuestionBank( |
Kirjoittaisin tuon englanniksi tekstissä kahtena sanana "question bank", joten pitäisi koodissakin. Toisaalta pitäisikö tämä olla suomeksi vaan koodissakin, eli Kysymyspankki
?
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.
Mä ajattelin pitää siinä muodossa kuin missä se lähdejärjestelmässä on, välittämättä oikeasta muodosta.
lateinit var tehtavapankkiImportSchedule: String | ||
|
||
@Bean | ||
fun dailyImportKotoTehtavapankki(tehtavapankkiService: TehtavapankkiService): Task<Void> = |
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.
Voisiko tämän laittaa KoealustaScheduledTasks
-luokkaan? Eli jos yhdessä luokassa voi olla useampi Task
-tyyppinen metodi, niin ei tarvisi erillistä luokkaa tälle.
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.
Tää on nyt tehty 3D
- formaatissa ja niin, että tehtäväpankki
olisi yksi kotoutumiskoulutus
:sen alidomain. Jos ei haluta tällaista, niin mun mielestä on sit turha pitää koko alidomainia, ja se voidaan purkaa, flatata kotoutumiskoulutus
:kseen.
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.
Alidomain on fine, tämä on hyvä selitys!
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.
voiks DDD:n lyhentää 3D?
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.
voiks DDD:n lyhentää 3D?
Korjattu
@@ -1,71 +0,0 @@ | |||
package fi.oph.kitu.logging |
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.
Onko OK tämän poisto, vai pitäisikö testi muuttaa uutta tapaa testaavaksi?
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.
Noi testit näyttää testaavan vain withEvent
:ia. Nythän me ollaan siirretty tuon vastuu OTEL:lle, niin se testaaminen kuulunee OTEL:lle
f5ab15c
to
6fefd3e
Compare
in order to distinct from tehtavapankki url
The `withEvent` seems to be unused now. All of its usages have been replaced with `withEventAndPerformanceCheck`, so using that should be preferred instead.
How often the import should run etc. is still bit of a open question, so just disable the import to remove blockers for merging this.
Allow the bucket property to be undefined (default to null) and treat a missing bucket name as a dry-run. This reduces chances of an accidental S3 upload from local env, while cicumventing the need to configure a bucket name for the local env, too.
aacccb2
to
79f0e42
Compare
79f0e42
to
7f7ade3
Compare
Tehtäväpankkien tuonti
tehtavapankki/TehtavapankkiService.kt/importTehtavapankki
Mono
:na (kotlin coroutineilla), jotta saadaan niin iso response sisään.TehtavapankkiResponseen
{KURSSIN_ID}-{KURSSIN_NIMI}/{ISO_DATETIME_NOW}-{INDEX}.xml
- niminen tiedosto.Kesken:Tällä hetkellä tiedoston nimi saattaa olla liian pitkä. Mulla tuli jotain virheitä kehityksen aikana, ja veikkaan et ne johtu siitä.Tunnarit ei oo kunnossa. Tällä hetkellä tulee:The AWS Access Key Id you provided does not exist in our records. (Service: S3, Status Code: 403,