Skip to content

Fix: Handle missing columns in Health Source Devices#1405

Open
amadheatrizza wants to merge 1 commit intoabrignoni:mainfrom
Vinoryz:health-error-handle
Open

Fix: Handle missing columns in Health Source Devices#1405
amadheatrizza wants to merge 1 commit intoabrignoni:mainfrom
Vinoryz:health-error-handle

Conversation

@amadheatrizza
Copy link

This pull request improves the robustness of the health_source_devices artifact processor in scripts/artifacts/health.py by adding a check for required columns in the source_devices table before executing the main query. If any columns are missing, the function logs the missing columns and returns early, preventing possible runtime errors.

Health source devices extraction improvements:

  • Added a check for required columns in the source_devices table using the new does_column_exist_in_db function; if any are missing, logs the missing columns and returns early to avoid runtime errors.
  • Updated imports to include does_column_exist_in_db and logfunc, supporting the new column existence check and logging functionality.

@amadheatrizza amadheatrizza changed the title implement column checker Fix: Handle missing columns in Health Source Devices Dec 9, 2025
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