Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(plugin-multi-tenant): prevent throwing when no user exists #10699

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

JarrodMFlesch
Copy link
Contributor

@JarrodMFlesch JarrodMFlesch commented Jan 21, 2025

What?

Fixes issue where the provider would throw an error and prevent the login screen from loading if there was no user.

Why?

Missing try/catch around tenant find for the provider. (Missed because test suites have autoLogin: true)

How?

Adds try/catch around find query.

Fixes #10602
Fixes #10714

@JarrodMFlesch JarrodMFlesch marked this pull request as ready for review January 21, 2025 16:01
@JarrodMFlesch JarrodMFlesch changed the title fix: prevent throwing when no user exists fix(plugin-multi-tenant): prevent throwing when no user exists Jan 21, 2025
@JarrodMFlesch JarrodMFlesch changed the title fix(plugin-multi-tenant): prevent throwing when no user exists fix: prevent throwing when no user exists Jan 21, 2025
@JarrodMFlesch JarrodMFlesch changed the title fix: prevent throwing when no user exists fix(plugin-multi-tenant): prevent throwing when no user exists Jan 21, 2025
@JarrodMFlesch JarrodMFlesch changed the title fix(plugin-multi-tenant): prevent throwing when no user exists fix: prevent throwing when no user exists Jan 21, 2025
@JarrodMFlesch JarrodMFlesch changed the title fix: prevent throwing when no user exists fix(plugin-multi-tenant): prevent throwing when no user exists Jan 21, 2025
@JarrodMFlesch JarrodMFlesch merged commit a9c0832 into main Jan 21, 2025
69 checks passed
@JarrodMFlesch JarrodMFlesch deleted the fix/multi-tenant-no-user branch January 21, 2025 17:07
Copy link
Contributor

🚀 This is included in version v3.19.0

kendelljoseph pushed a commit that referenced this pull request Feb 21, 2025
### What?
Fixes issue where the provider would throw an error and prevent the
login screen from loading if there was no user.

### Why?
Missing try/catch around tenant find for the provider. (Missed because
test suites have autoLogin: true)

### How?
Adds try/catch around find query.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
1 participant