Skip to content

Delete mlar by submission id rather than lei #5111

Merged
PatrickGoRaft merged 5 commits into
cfpb:masterfrom
kgudel:mlardeletebysubmissionid
Apr 30, 2026
Merged

Delete mlar by submission id rather than lei #5111
PatrickGoRaft merged 5 commits into
cfpb: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?

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.

@PatrickGoRaft PatrickGoRaft self-requested a review April 30, 2026 18:49
Copy link
Copy Markdown
Contributor

@PatrickGoRaft PatrickGoRaft left a comment

Choose a reason for hiding this comment

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

lgtm

@PatrickGoRaft PatrickGoRaft merged commit 02e941c into cfpb:master Apr 30, 2026
0 of 14 checks passed
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