-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add delete all chats option #2515
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
25cb3c9
to
c2c195c
Compare
This PR is stale because it has been open 75 days with no activity. Remove stale label or comment or this will be closed in 15 days. |
This PR was closed because it has been stalled for 90 days with no activity. |
c2c195c
to
f71848a
Compare
161872f
to
ec8487b
Compare
backend/onyx/db/chat.py
Outdated
@@ -316,6 +316,21 @@ def update_chat_session( | |||
return chat_session | |||
|
|||
|
|||
def delete_all_chat_sessions_for_user(user: User | None, db_session: Session) -> 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.
let's make this function pure and have HARD_DELETE_CHATS be a flag set by the caller.
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.
Agree!
* Add delete all chats option * post rebase fixes * final validation * minor cleanup * move up
Enable client side when NEXT_PUBLIC_DELETE_ALL_CHATS_ENABLED is set
Fixes https://linear.app/danswer/issue/DAN-658/delete-all-chats-option
Accepted Risk
[Any know risks or failure modes to point out to reviewers]
Related Issue(s)
[If applicable, link to the issue(s) this PR addresses]
Checklist: