Skip to content
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

Forenkling og avgrensning i BrevsignaturService ifm utledning av "skjulSaksbehandler"-flagget #2773

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

throndi
Copy link
Contributor

@throndi throndi commented Feb 13, 2025

Hvorfor er denne endringen nødvendig? ✨

Utledning av skjulSaksbehandler har vært litt diffus, og har ført til at man kan sette dette flagget litt som man vil. Dette kom tydeligere frem når man endret rekkefølgen på signaturene.

Lager derfor et utkast til et par forenklinger i BrevsignaturService. Endrer for øvrig så lite som mulig.

Relatert favro: https://favro.com/organization/98c34fb974ce445eac854de0/a64c6aad9b0d61ef6c0290bd?card=NAV-24032

Comment on lines +107 to +108
assertThat(vedtaksbrevSlot.captured.besluttersignatur).isNotEmpty()
assertThat(vedtaksbrevSlot.captured.enhet).isNotEmpty()
Copy link
Contributor

Choose a reason for hiding this comment

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

Basert på testens navn så høres det ut som disse SKAL være tomme, eller? Hva setter vi på enhet og besluttersignatur dersom vedtakErUtenBeslutter..?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

testen heter "skal fortsatt sette saksbehandler og enhet hvis vedtakErUtenBeslutter er true" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

presiserte teksten med "besluttersignatur" i stedet for "saksbehandler".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hvis man ikke har en egen beslutter, så blir vel saksbehandler satt som beslutter, men det skal jo ikke vises hvis man skal skjule beslutter. Kan jo lage en tom streng som før evt.

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.

2 participants