-
Notifications
You must be signed in to change notification settings - Fork 3
Inbox mail table #362
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
base: dev
Are you sure you want to change the base?
Inbox mail table #362
Conversation
| daemon.run_with_db_token(__migrate_kratos_users) | ||
|
|
||
|
|
||
| def __migrate_kratos_users(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have two functions __migrate_kratos_users ?
remove the old one if not used?
| def get_inbox_mails_by_thread( | ||
| org_id: str, | ||
| user_id: str, | ||
| thread_id: Optional[str] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional as the last param
| def get_all_users( | ||
| organization_id: str, user_role: Optional[str] = None, as_dict: bool = True | ||
| organization_id: str, | ||
| user_role: Optional[str] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional at the end
| return {str(u.id): u.role for u in user.get_all()} | ||
|
|
||
|
|
||
| def get_admin_users(expand_mail_name: bool = False) -> List[User]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this two functions look similar only the call is different not sure if it makes sense to be one function with a parameter?
| raise HTTPException(status_code=403, detail="Not authorized") | ||
|
|
||
| mail = inbox_mail_manager.create_inbox_mail_by_thread( | ||
| org_id=user.organization_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't the organization come from the FE? I think it's not the org of the user but the org that was selected in the modal?
No description provided.