Skip to content

fix: handle optional sync columns in health_source_devices#1415

Merged
stark4n6 merged 1 commit intoabrignoni:mainfrom
Ricardo08S:fix/healthSourceDevices
Jan 8, 2026
Merged

fix: handle optional sync columns in health_source_devices#1415
stark4n6 merged 1 commit intoabrignoni:mainfrom
Ricardo08S:fix/healthSourceDevices

Conversation

@Ricardo08S
Copy link
Contributor

Summary

  • Guard queries against optional Health database columns (sync_provenance, sync_identity) so the artifact works on older datasets.
  • Dynamically build SELECT statements and report headers based on which columns exist, preventing SQL errors and mismatched reports.

Implementation Details

  • Uses does_column_exist_in_db to detect column availability before running queries.
  • Adjusts header tuples and column lookups to match the detected schema.
  • Improves compatibility with both legacy and current Health databases without duplicating logic.

@stark4n6 stark4n6 merged commit 48cd201 into abrignoni:main Jan 8, 2026
1 check 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.

2 participants