You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add logging for silent failures, narrow constraint rescues, and improve test coverage
- Add warn/verbose logging to eliminate silent data loss cascade:
country_table, state_table, county_table, and zipcode_table now log
when rows are skipped due to missing lookups
- Add warn_once helper to DbTable for deduplicated warnings
- Narrow rescue SQLite3::ConstraintException to only swallow UNIQUE
violations; re-raise NOT NULL, FOREIGN KEY, and CHECK violations
- Extract find_state_where helper to keep get_state_id under method
length limit
- Add early return for nil/empty country in get_state_id
- Expand synthesize_state comment to document Kiba row-hash mutation
- Add missing tests: zipcode state_id nil guard, state country_id nil
guard, and cross-country integration tests through full Kiba pipeline
- Silence logger and initialize Options in spec_helper for all tests
0 commit comments