Skip to content

Prevent removal of machines with assigned services#5

Merged
dkmstr merged 1 commit into
masterfrom
master-openuds-remove-fixed-machine
May 22, 2026
Merged

Prevent removal of machines with assigned services#5
dkmstr merged 1 commit into
masterfrom
master-openuds-remove-fixed-machine

Conversation

@aschumann-virtualcable
Copy link
Copy Markdown
Contributor

This pull request introduces an important validation to the FixedService initialization logic to prevent removing machines that still have assigned user services. This change ensures that machines with active user services cannot be inadvertently removed, which would otherwise cause lingering user service records and potentially impact the enforcement of user service limits.

Validation improvements:

  • Prevents removal of machines that still have assigned user services by raising a validation error with a descriptive message listing the affected machines. This ensures data consistency and avoids orphaned user service records.

Minor code maintenance:

  • Added a newline after the author comment for improved code formatting in service.py.

Ensures machines cannot be removed if user services are still assigned,
preventing orphaned user service records from counting against the
limit and improving data consistency.
@dkmstr dkmstr merged commit 3b2ee5c into master May 22, 2026
5 checks 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