Skip to content
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

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Add delete all chats option #2515

merged 5 commits into from
Dec 17, 2024

Conversation

pablonyx
Copy link
Contributor

@pablonyx pablonyx commented Sep 20, 2024

Enable client side when NEXT_PUBLIC_DELETE_ALL_CHATS_ENABLED is set

Screenshot 2024-09-20 at 9 25 17 PM

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:

  • All of the automated tests pass
  • All PR comments are addressed and marked resolved
  • If there are migrations, they have been rebased to latest main
  • If there are new dependencies, they are added to the requirements
  • If there are new environment variables, they are added to all of the deployment methods
  • If there are new APIs that don't require auth, they are added to PUBLIC_ENDPOINT_SPECS
  • Docker images build and basic functionalities work
  • Author has done a final read through of the PR right before merge

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 2:27am

Copy link

github-actions bot commented Dec 5, 2024

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.

@github-actions github-actions bot added the Stale label Dec 5, 2024
Copy link

This PR was closed because it has been stalled for 90 days with no activity.

@@ -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:
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree!

@rkuo-danswer rkuo-danswer added this pull request to the merge queue Dec 17, 2024
Merged via the queue into main with commit 2859869 Dec 17, 2024
13 checks passed
aronszanto pushed a commit to aronszanto/onyx that referenced this pull request Dec 23, 2024
* Add delete all chats option

* post rebase fixes

* final validation

* minor cleanup

* move up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants