Closed sambodeme closed 3 months ago
Thoughts on changing UnvalidatedAuditRecord
to InvalidAuditRecord
? It seems more clear to me that validations were run, but it failed to validate.
Discussed during dev huddle. Let's consider this accepted. Please feel free to open a PR now, @sambodeme!
Areas of impact
Related documents/links
Context
As we migrate audit reports from Census table files to GSA/FAC database, we encounter a subset of reports with data validation issues that prevent their easy curation during the migration process. The complexity and nature of these data issues necessitate a strategy where these reports are migrated "as is", without undergoing validation or correction initially. This approach is deemed necessary to ensure all records are preserved intact for subsequent analysis and possible rectification.
Decision
We propose to introduce two new Django models to handle these specific cases effectively:
*InvalidAuditRecord**:
MigrationInspectionRecord
, but instead of holding change records, it holds records that have been migrated as is, without validation or changes.IssueDescriptionRecord:
InvalidAuditRecord
can have one or more associatedIssueDescriptionRecord
entries, establishing a parent-child relationship.Proposed Model Structures
InvalidAuditRecord
IssueDescriptionRecord
JSONField Content Structure for
InvalidAuditRecord
Consequences
By adopting this two-model approach:
This ADR provides a structured and transparent method for managing the migration of problematic audit reports, ensuring accountability and traceability throughout the process.