Skip to content
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

Check if user services is bootstrapped before removing instances #835

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

CircuitCoder
Copy link
Contributor

Description

During user deletion, check if userServiceInstance is not null or undefined before deleting them. This can happen in cases such as migration (so the users are not yet loaded).

This was a cause of an old migration bug (#401, userV1 -> userV2). I doubt if anyone is still using the v1 user format, but let's not be sorry.

Related Issue

Closes #401

Types of changes

  • Breaking change (changes that break backward compatibility of public API or CLI - semver MAJOR)
  • New feature (non-breaking change which adds functionality - semver MINOR)
  • Bug fix (non-breaking change which fixes an issue - semver PATCH)

@trim21 trim21 enabled auto-merge (squash) December 17, 2024 19:06
@trim21 trim21 merged commit f550b54 into jesec:master Dec 17, 2024
17 checks passed
@CircuitCoder CircuitCoder deleted the fix-401 branch December 17, 2024 19:09
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.

User migration failing because destroyUserServices is called before bootstrapServicesForUser
2 participants