Skip to content

fix: standardize Jamf site default value and prevent transform crashes - BED-8768#11

Merged
StranDutton merged 2 commits into
mainfrom
fix/BED-8768-fix-site-preprocessing
Jun 29, 2026
Merged

fix: standardize Jamf site default value and prevent transform crashes - BED-8768#11
StranDutton merged 2 commits into
mainfrom
fix/BED-8768-fix-site-preprocessing

Conversation

@StranDutton

Copy link
Copy Markdown
Contributor
  • Added NO_SITE_ID (int) and NO_SITE_ID_STR (str) to models/utils.py to centralize the "no site" value.
  • Guaranteed a site field on Account and Group models using a default_factory and a normalize_site validator.
  • Replaced all magic -1 and "-1" literals in edge guards with the new constants across account.py, group.py, and computer.py.
  • Added tests for setting site ID default (-1) and edge suppression in tests/test_transforms.py.

/resolves BED-8768

@StranDutton StranDutton self-assigned this Jun 29, 2026
@StranDutton StranDutton merged commit 3e8952c into main Jun 29, 2026
1 check passed
@StranDutton StranDutton deleted the fix/BED-8768-fix-site-preprocessing branch June 29, 2026 19:37
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.

3 participants