Skip to content

Validate to existing records#1159

Merged
laritakr merged 5 commits intomainfrom
validate-to-existing-records
Mar 31, 2026
Merged

Validate to existing records#1159
laritakr merged 5 commits intomainfrom
validate-to-existing-records

Conversation

@laritakr
Copy link
Copy Markdown
Contributor

@laritakr laritakr commented Mar 31, 2026

Summary

  • Adds validation logic to look for existing parents & children before reporting missing record errors with relationships.
  • Includes existing records in the hierarchical display.
  • Refactors the csv validator - the above validations made the primary method ridiculously huge!

Screenshot

Screenshot 2026-03-30 at 8 53 36 PM

Modify row validators to check the parent & child
references against actual repository data rather
than just checking for the presence of the reference in the CSV file.
When relationships are being validated, the system
will now check to see if the record exists in the
database before reporting an error. The existing
record will also be included in the hierarchical summary.
Breaks the validate_csv method into smaller methods,
moving helper methods into separate modules. This
makes the code easier to read and maintain.
@laritakr laritakr added the patch-ver for release notes label Mar 31, 2026
@laritakr laritakr force-pushed the validate-to-existing-records branch from 08997ae to 75376d8 Compare March 31, 2026 15:57
@laritakr laritakr merged commit 925d344 into main Mar 31, 2026
9 checks passed
@laritakr laritakr deleted the validate-to-existing-records branch March 31, 2026 17:40
@laritakr laritakr mentioned this pull request Apr 1, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch-ver for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants