feat: auto delete myndla users after inactivity#864
Open
Conversation
c8c2206 to
3623415
Compare
gunnarvelle
reviewed
Feb 11, 2026
3623415 to
c24010d
Compare
Member
|
Noen tester som feiler |
c24010d to
98272df
Compare
gunnarvelle
reviewed
Feb 17, 2026
myndla-api/src/main/scala/no/ndla/myndlaapi/repository/UserRepository.scala
Outdated
Show resolved
Hide resolved
gunnarvelle
approved these changes
Feb 19, 2026
this patch implements a endpoint that can be called from a cronjob that checks for users that has prolonged inactivity. if the user has been inactive for a given email period a "deletion notice" email will be sent to the users email. if the user has been inactive even longer for a given deletion period the user will be deleted from our database.
585dd43 to
24dfeab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementerer et endepunkt som InternController i myndla-api som skal kalles daglig av en cronjob.
Den søker opp brukere fra databasen som ikke har vært innlogget på 180 dager og sender de en epost.
Dersom jobben ikke har vært kjørt mellom brukerens siste innlogging+180 dager så sender den også en epost.
Den søker også opp brukere som ikke har vært innlogget på 220 dager og sletter de fra databasen.
Trenger noen rettigheter i aws for å fungere.