Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
4781073 to
d5c54b9
Compare
| from fastapi import HTTPException | ||
| from fastapi import Response | ||
| from sqlalchemy.exc import IntegrityError | ||
|
|
||
| from ee.onyx.auth.users import generate_anonymous_user_jwt_token | ||
| from ee.onyx.configs.app_configs import ANONYMOUS_USER_COOKIE_NAME | ||
| from ee.onyx.server.tenants.anonymous_user_path import get_anonymous_user_path | ||
| from ee.onyx.server.tenants.anonymous_user_path import ( | ||
| get_tenant_id_for_anonymous_user_path, | ||
| ) | ||
| from ee.onyx.server.tenants.anonymous_user_path import modify_anonymous_user_path | ||
| from ee.onyx.server.tenants.anonymous_user_path import validate_anonymous_user_path | ||
| from ee.onyx.server.tenants.models import AnonymousUserPath | ||
| from onyx.auth.users import anonymous_user_enabled | ||
| from onyx.auth.users import current_admin_user |
There was a problem hiding this comment.
This is all just migrated from the existing structure. Happy to re-org if there is a better structure
| # Note: We don't add a prefix here as each router already has the /tenants prefix | ||
| router = APIRouter() |
There was a problem hiding this comment.
Simplify all the tenant-related routing into a single tenant router
rkuo-danswer
left a comment
There was a problem hiding this comment.
When a user is invited, logs in, and accepts, he is presented with a flow that asks for Reauthentication and a "Password". It's unclear if the user is being asked for his old password or to create a new one (i assume it's to create a new one).
After clicking join, there is a brief green notification in the bottom right that asks the user to log in, which doesn't quite make sense as the user is then logged in automatically.
3b498af to
69db34d
Compare
7ccb04a to
2317dfd
Compare
Description
Must go in in concert with these control plane changes: https://github.com/onyx-dot-app/danswer-control-plane/pull/27
Fixes https://linear.app/danswer/issue/DAN-1513/improved-tenant-switching-suggestion-to-join-existing-tenant
Logic
UserTenantMappingnow has anactivecolumn to track which tenant a user is currently active inNew Flows
Changes
How Has This Been Tested?
All flows
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.