Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions backend/account_v2/authentication_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ def set_user_organization(self, request: Request, organization_id: str) -> Respo
logger.info(
f"New organization created with Id {organization_id}",
)
else:
try:
self.auth_service.setup_default_adapters_for_user(
organization=organization, user=user
)
except MethodNotImplemented:
logger.info("setup_default_adapters_for_user not implemented")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Make the log more useful by stating what happens as a result. You can mention that default adapters are not set for the user


user_info: UserInfo | None = self.get_user_info(request)
serialized_user_info = SetOrganizationsResponseSerializer(user_info).data
Expand Down
5 changes: 5 additions & 0 deletions backend/account_v2/authentication_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ def get_invitations(self, organization_id: str) -> list[MemberInvitation]:
def frictionless_onboarding(self, organization: Organization, user: User) -> None:
raise MethodNotImplemented()

def setup_default_adapters_for_user(
self, organization: Organization, user: User
) -> None:
raise MethodNotImplemented()

def delete_invitation(self, organization_id: str, invitation_id: str) -> bool:
raise MethodNotImplemented()

Expand Down