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

myndla-api: Support feide users without organization #542

Closed
wants to merge 3 commits into from

Conversation

jnatten
Copy link
Contributor

@jnatten jnatten commented Nov 5, 2024

Ser vi kaster en del feil i prod-miljøet fordi noen brukere ikke har noen organizations.
Antar at vi kan bare droppe å bry oss om det 😄

Krever en liten endring i graphql-api som kommer i morgen

@jnatten jnatten requested a review from a team November 5, 2024 14:35
@jnatten jnatten force-pushed the missing-feide-organization branch from 3ab8b59 to ff679bc Compare November 6, 2024 06:39
Previously we returned an error if a user without organization attempted
to login. This patch allows no-organization users to still log in.
@jnatten jnatten force-pushed the missing-feide-organization branch from ff679bc to 9108807 Compare November 6, 2024 06:57
.getOrElse(user.organization.getOrElse {
// TODO: Maybe this needs to be optional instead?
logger.warn(s"User ${user.id} has no stored organization")
"Unknown"
Copy link
Member

Choose a reason for hiding this comment

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

Siden dette vises fram på profilsida er det nesten bedre å defaulte til tom streng.

@gunnarvelle
Copy link
Member

Sikt rapporterer at dei har funne en feil hos seg, så dette kan vi legge på is.

@jnatten jnatten closed this Dec 6, 2024
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