Skip to content

Conversation

@sindredl
Copy link
Contributor

Bryr oss ikke om sluttdato er tilbake i tid ved migrering fra arena - for å ha samme regelsett som aktivitetsplanen.

Årsaken til dette er at aktivitetsplanen ikke bryr seg om datoer. Dermed havner kort vi ikke tar over pga. sluttdato tilbake i tid i "limbo". Arena får nemlig en "ekstern_id" på gjennomføringene, som fører til at aktivitetsplan ikke bryr seg om endringer som kommer derfra, og vi har ingen link til aktivitetsplankortet.

Vi har manuelle rutiner for å håndtere enkeltcaser, men ønsker å eliminere problemet.

@sindredl sindredl force-pushed the arenamigrering-ignorer-sluttdato branch from 1cd2c95 to 956e161 Compare October 13, 2025 11:37
Copy link
Contributor

@Oddsor Oddsor left a comment

Choose a reason for hiding this comment

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

Liten bug her

Comment on lines 64 to 65
case FULLF -> AVSLUTT;
case GJENN, TILBUD -> isSluttdatoIDagEllerFremtiden ? OPPDATER : AVSLUTT;
Copy link
Contributor

Choose a reason for hiding this comment

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

Her har vi gjort motsatt av det vi burde (se refaktoreringene over).
GJENN og TILBUD bør føre til status OPPDATER, ikke AVSLUTT.

case FULLF -> AVSLUTT;
case GJENN, TILBUD -> isSluttdatoIDagEllerFremtiden ? OPPDATER : AVSLUTT;
case AVSLUTT, GJENNOMFOR -> switch (deltakerstatuskode) {
case FULLF, GJENN, TILBUD -> AVSLUTT;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
case FULLF, GJENN, TILBUD -> AVSLUTT;
case FULLF -> AVSLUTT;
case GJENN, TILBUD -> OPPDATER;

@sindredl sindredl force-pushed the arenamigrering-ignorer-sluttdato branch from 6226cc7 to 6ae0601 Compare November 6, 2025 12:17
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