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

Add methods to identify archivable participants #4806

Merged
merged 1 commit into from
May 22, 2024

Conversation

ethax-ross
Copy link
Contributor

@ethax-ross ethax-ross commented May 17, 2024

Context

Jira-3061

As part of the multi cohort work we want to archive participants in a 'closed' cohort (identified by being 3 years prior to the current cohort or earlier). They must have either no declarations or only unbillable (ineligible/voided/submitted) declarations.

Changes proposed in this pull request

  • Add methods to identify archivable participants

Add a scope find archivable participant profiles and a method to check if a single profile can be archived.

Guidance to review

Here are the numbers from production; just waiting on Nathan verifying these look correct and checking a few samples:

ECTs: 203
Mentors: 1,087

Copy link

Review app deployed to https://cpd-ecf-review-4806-web.test.teacherservices.cloud

@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from 86c7235 to e823e47 Compare May 17, 2024 13:02
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from e823e47 to 5e199aa Compare May 20, 2024 13:55
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from 5e199aa to 6d44c56 Compare May 20, 2024 19:57
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch 3 times, most recently from ceafedf to 7995b10 Compare May 21, 2024 11:30
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from 7995b10 to d3e2347 Compare May 21, 2024 12:09
@ethax-ross ethax-ross marked this pull request as ready for review May 21, 2024 12:45
@ethax-ross ethax-ross requested review from ltello and a team May 21, 2024 12:45
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from d3e2347 to 4f27f99 Compare May 22, 2024 08:40
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from 4f27f99 to 14e6930 Compare May 22, 2024 08:45
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from 14e6930 to a076c7d Compare May 22, 2024 08:54
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from a076c7d to d8735b3 Compare May 22, 2024 09:32
As part of the multi cohort work we want to archive certain participants in a 'closed'
cohort (identified by being 3 years prior to the current cohort or earlier).

The criteria is as follows:

ECTS:

```
2021 cohort (according to their schedule -> cohort)
Profile has no declarations where declaration state is one of eligible/payable/paid/awaiting_clawback/clawed_back 
Participant has only FIP induction records 
Induction completion date is null
Induction start date is earlier than 1/9/2021
```

Mentors:

```
2021 cohort (according to their schedule -> cohort)
Profile has no declarations where declaration state is one of eligible/payable/paid/awaiting_clawback/clawed_back
Participant has only FIP induction records
Mentor funding end date is null
Has no mentees
```

Add a scope find archivable participant profiles and a method to check if a
single profile can be archived.
@ethax-ross ethax-ross force-pushed the 3061-identity-participants-for-archiving branch from d8735b3 to c8a2d7c Compare May 22, 2024 12:24
Copy link
Collaborator

@cwrw cwrw left a comment

Choose a reason for hiding this comment

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

🙌

@ethax-ross ethax-ross added this pull request to the merge queue May 22, 2024
Merged via the queue into main with commit 267a1ef May 22, 2024
37 checks passed
@ethax-ross ethax-ross deleted the 3061-identity-participants-for-archiving branch May 22, 2024 13:31
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.

None yet

2 participants