Skip to content

PT-1946: Update person retention period deletion logic#424

Merged
mhieta merged 2 commits into
mainfrom
PT-1946-person-deletion-updates
Aug 28, 2025
Merged

PT-1946: Update person retention period deletion logic#424
mhieta merged 2 commits into
mainfrom
PT-1946-person-deletion-updates

Conversation

@mhieta

@mhieta mhieta commented Aug 26, 2025

Copy link
Copy Markdown
Contributor

Update person retention period deletion logic to return persons who:

  1. Don't have a user account
  2. Don't have any valid enrolments (either as person or study group contact)
  3. Don't have any valid event queue enrolments

Add/update tests.

Refs: PT-1946

@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr424.api.dev.hel.ninja 🚀🚀🚀

@mhieta mhieta force-pushed the PT-1946-person-deletion-updates branch from 9d6055d to 5d6e1a5 Compare August 26, 2025 12:36
@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr424.api.dev.hel.ninja 🚀🚀🚀

@mhieta mhieta force-pushed the PT-1946-person-deletion-updates branch from 5d6e1a5 to d4c7c5e Compare August 27, 2025 03:26
@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr424.api.dev.hel.ninja 🚀🚀🚀

1 similar comment
@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr424.api.dev.hel.ninja 🚀🚀🚀

@mhieta mhieta marked this pull request as ready for review August 27, 2025 04:07
@mhieta mhieta requested a review from a team as a code owner August 27, 2025 04:07
@mhieta mhieta force-pushed the PT-1946-person-deletion-updates branch from e4e55f1 to 51122ab Compare August 27, 2025 04:23
@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr424.api.dev.hel.ninja 🚀🚀🚀

@voneiden voneiden self-requested a review August 27, 2025 14:20
Comment thread organisations/models.py Outdated
Comment thread organisations/tests/test_models.py
Comment thread organisations/tests/test_models.py
Comment thread organisations/tests/test_models.py Outdated
mhieta added 2 commits August 28, 2025 12:37
Update person retention period deletion logic
to return persons who:
1. Don't have a user account
2. Don't have any valid enrolments
3. Don't have any valid event queue enrolments

Add tests.

Refs: PT-1946
@mhieta mhieta force-pushed the PT-1946-person-deletion-updates branch from 51122ab to 946647c Compare August 28, 2025 09:38
@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr424.api.dev.hel.ninja 🚀🚀🚀

@mhieta mhieta requested a review from voneiden August 28, 2025 09:58
@mhieta mhieta force-pushed the PT-1946-person-deletion-updates branch from 946647c to e87a360 Compare August 28, 2025 10:22
@sonarqubecloud

Copy link
Copy Markdown

@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr424.api.dev.hel.ninja 🚀🚀🚀

@voneiden voneiden left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

 .')         )\.-.   .-,.-.,-.  )\   )\  
( /        ,' ,-,_)  ) ,, ,. ( (  ',/ /  
 ))       (  .   __  \( |(  )/  )    (   
 )'._.-.   ) '._\ _)    ) \    (  \(\ \  
(       ) (  ,   (      \ (     `.) /  ) 
 )/,__.'   )/'._.'       )/         '.(  
                                         

@mhieta mhieta merged commit 8bdda88 into main Aug 28, 2025
22 checks passed
@mhieta mhieta deleted the PT-1946-person-deletion-updates branch August 28, 2025 10:47
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.

3 participants