Skip to content

Mulighet for å innvilge flere vedtak #872

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

Merged
merged 12 commits into from
Mar 20, 2025
Merged

Mulighet for å innvilge flere vedtak #872

merged 12 commits into from
Mar 20, 2025

Conversation

ramnav990
Copy link
Contributor

No description provided.

@ramnav990 ramnav990 requested a review from a team as a code owner March 17, 2025 14:01
@ramnav990 ramnav990 force-pushed the to-behandlinger-v2 branch from bfbfeac to 7764730 Compare March 18, 2025 14:44
@ramnav990 ramnav990 force-pushed the to-behandlinger-v2 branch from 5d98ac3 to de5895b Compare March 20, 2025 09:20
rammevedtakRepo.lagre(vedtak, tx)
statistikkSakRepo.lagre(sakStatistikk, tx)
statistikkStønadRepo.lagre(stønadStatistikk, tx)
meldeperiodeRepo.lagre(førsteMeldeperiode, tx)
oppdaterteMeldekort.forEach { meldekortBehandlingRepo.oppdater(it, tx) }
meldeperioder.forEach {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trodde vi hadde en metode for å sende hele lista? Men husk at det er viktig og sende/bruke tx.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, lagde den etter 😁

ADD COLUMN IF NOT EXISTS siste_dag_som_gir_rett DATE DEFAULT NULL;

UPDATE sak s
SET siste_dag_som_gir_rett = (SELECT MAX(m.til_og_med)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lurer kanskje på om du må gjøre en kode-migrering her. Denne vil ikke ta høyde for stans. Du måtte hentet siste meldeperiode per kjede.

TiltakMother,
SaksopplysningerMother,
BarnetilleggMother {
val saksId = SakId.random()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ikke noe fan av statiske sakId, fnr og saksnummer. Vi har blant annet bare en database, som forventer at hver test har unike verdier her. (vi sletter ikke mellom testene)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mange steder benytter vi oss av mye av samme data uansett. Dette ville ihvertfall føre til litt cleanere test-data

@ramnav990 ramnav990 merged commit da178e4 into main Mar 20, 2025
2 checks passed
@ramnav990 ramnav990 deleted the to-behandlinger-v2 branch March 20, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants