Skip to content

fix/Handle cross-year dedupes with deletes in student academic records#180

Open
alchenist wants to merge 1 commit intomainfrom
fix/dedupe_order_xyear_student_academic_record
Open

fix/Handle cross-year dedupes with deletes in student academic records#180
alchenist wants to merge 1 commit intomainfrom
fix/dedupe_order_xyear_student_academic_record

Conversation

@alchenist
Copy link
Contributor

We have comparable logic on other resources introduced in #123; believe we also need to handle this for student academic records as well. Seeing cases in SC where deletes in later ODSes are overriding undeleted records in previous ODSes.

@alchenist alchenist marked this pull request as ready for review March 12, 2026 15:41
@alchenist alchenist requested a review from sleblanc23 March 12, 2026 16:55
Copy link
Contributor

@sleblanc23 sleblanc23 left a comment

Choose a reason for hiding this comment

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

This looks good to me Alex! It got me wondering whether there are other places we might want to apply this logic. I could see a previous year's data being accidentally pushed then deleted. I tried searching for places where we were ordering by api_year, which I think should tell us where this might be needed:

  • calendars
  • course_transcripts
  • education_organization_network_associations
  • staff_education_organization_assignment_associations
  • staff_education_organization_employment_associations

This could totally be a separate chunk of work, so not a blocker to merging this PR!

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