Skip to content

Skip migration of devices without Schema_UUID #498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025

Conversation

AlexGodbehere
Copy link
Contributor

This change prevents @acs-service-setup from migrating devices that don't have a schema (where Schema_UUID is null or missing). Previously, the service would attempt to migrate all devices regardless of schema status, which could lead to issues with devices that lack proper schema information.

Changes:

  • Added a check in the register_device method to verify Schema_UUID exists
  • Added early return with logging when schema is missing or null
  • Improved code organization by moving schema check earlier in the method

This ensures that only properly configured devices with valid schemas are migrated during the setup process.

This change prevents @acs-service-setup from migrating devices that don't have
a schema (where Schema_UUID is null or missing). Previously, the service would
attempt to migrate all devices regardless of schema status, which could lead to
issues with devices that lack proper schema information.

Changes:
- Added a check in the register_device method to verify Schema_UUID exists
- Added early return with logging when schema is missing or null
- Improved code organization by moving schema check earlier in the method

This ensures that only properly configured devices with valid schemas are
migrated during the setup process.
@amrc-benmorrow amrc-benmorrow merged commit b1316a4 into main May 1, 2025
1 check passed
@amrc-benmorrow amrc-benmorrow deleted the ago/do-not-migrate-devices-with-no-schema branch May 1, 2025 09:25
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