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

Implement Thread deletion #73

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Implement Thread deletion #73

merged 1 commit into from
Jun 13, 2024

Conversation

pamella
Copy link
Collaborator

@pamella pamella commented Jun 12, 2024

Issues

Resolves #59

Description

Implement thread deletion

Weather

Screencast.from.12-06-2024.17.11.38.webm

Movies

Screencast.from.12-06-2024.17.27.31.webm

RAG

Screencast.from.12-06-2024.17.42.25.webm

@pamella pamella changed the title Implement thread deletion Implement Thread deletion Jun 12, 2024
@pamella pamella marked this pull request as ready for review June 12, 2024 20:46
@pamella pamella requested a review from fjsj June 12, 2024 20:46
@@ -11,6 +11,7 @@
DEFAULTS = {
"CAN_CREATE_THREAD_FN": "django_ai_assistant.permissions.allow_all",
"CAN_VIEW_THREAD_FN": "django_ai_assistant.permissions.allow_all",
"CAN_DELETE_THREAD_FN": "django_ai_assistant.permissions.allow_all",
Copy link
Member

@fjsj fjsj Jun 12, 2024

Choose a reason for hiding this comment

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

I think we can add a owns_thread permission in permissions.py and use them instead as the defaults for CAN_VIEW_THREAD_FN, CAN_DELETE_THREAD_FN and CAN_CREATE_MESSAGE_FN

@fjsj fjsj merged commit a91f5b5 into main Jun 13, 2024
6 checks passed
@fjsj fjsj deleted the feat/thread-delete branch June 13, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support thread deletion
2 participants