Skip to content

Delete mlar by submission id rather than lei #5111

Open
kgudel wants to merge 4 commits intocfpb:masterfrom
kgudel:mlardeletebysubmissionid
Open

Delete mlar by submission id rather than lei #5111
kgudel wants to merge 4 commits intocfpb:masterfrom
kgudel:mlardeletebysubmissionid

Conversation

@kgudel
Copy link
Copy Markdown
Contributor

@kgudel kgudel commented Mar 25, 2026

This is to account for institutions filing with an lei other than expected

val lei = submissionId.lei
val likeStatement = s"${lei}-${period}-%"
db.run(
sqlu"""DELETE FROM #${fetchYearTable(period.toInt)} WHERE submission_id LIKE $likeStatement"""
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.

we should be able to just delete by the lei only? since the mlar tables themselves are already period specific?

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