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

Improve checking ubehandlet #367

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Conversation

andersrognstad
Copy link
Contributor

@andersrognstad andersrognstad commented Oct 12, 2023

Hva har blitt lagt til✨🌈

Prøver å forbedre logikken for å sjekke isUbehandlet i frontend så man slipper å huske å utvide if-en ved nytt filter/oppgave (forhåpentligvis kan vi kvitte oss med dette i frontend og bare sjekke i backend på sikt).

@andersrognstad andersrognstad force-pushed the IS-improve-isUbehandlet-check branch from 50a2eca to 3f54de0 Compare October 12, 2023 11:02
@andersrognstad andersrognstad marked this pull request as ready for review October 12, 2023 13:15
@andersrognstad andersrognstad requested a review from a team as a code owner October 12, 2023 13:15
personOversiktStatus.oppfolgingsplanLPSBistandUbehandlet,
aktivitetskravActive: personOversiktStatus.aktivitetskravActive,
};
return isUbehandlet(ubehandletStatus);
Copy link
Contributor

Choose a reason for hiding this comment

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

Så hvis man husker på å legge den til i PersonOversiktUbehandletStatusDTO, så burde det gi feilmelding her, da?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stemmer! Og den DTOen vil man vel typisk starte med å utvide når man har lagt på et nytt flagg/oppgave i backend, så tenker det blir en forbedring.

@andersrognstad andersrognstad merged commit 0482d39 into master Oct 13, 2023
@andersrognstad andersrognstad deleted the IS-improve-isUbehandlet-check branch October 13, 2023 11:32
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.

4 participants