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: Add arenaAccepted flag on myndla users #580

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

jnatten
Copy link
Contributor

@jnatten jnatten commented Jan 21, 2025

Fixes NDLANO/Issues#4269

@jnatten jnatten requested a review from a team January 21, 2025 13:25
Comment on lines +246 to +250
val arenaAccepted = updatedUser.arenaAccept match {
case Some(true) if arenaEnabled => true
case Some(false) => false
case _ => domainUserData.arenaAccepted
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Skal det være mulig å trekke tilbake godkjenningen? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Kan spørre.

Copy link
Member

Choose a reason for hiding this comment

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

Ja, men då bør vi egentlig legge til at om du trekker tilbake godjenning så må brukeren slettes i nodebb.

Copy link
Member

Choose a reason for hiding this comment

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

Kanskje legge inn en TODO på det.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Jeg ser for meg at en todo som bare lever i kodebasen vil bli liggende for alltid om vi ikke har noe system for å fikse de.
Men kanskje lage et issue? 😄

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@gunnarvelle gunnarvelle left a comment

Choose a reason for hiding this comment

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

lgtm

This is currently just a dumb boolean field that a user can set that the
frontend can use to determine whether or not it should link to arena.
@jnatten jnatten force-pushed the 4269-myndlauser-arena-flag branch from 7af794a to e1e8f45 Compare January 21, 2025 13:27
@jnatten jnatten merged commit aad5e13 into master Jan 22, 2025
39 checks passed
@jnatten jnatten deleted the 4269-myndlauser-arena-flag branch January 22, 2025 08:34
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