-
Notifications
You must be signed in to change notification settings - Fork 7
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
Display which Assistants will be deleted with team deletion #1157
Conversation
…the user to warn them
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files📢 Thoughts on this report? Let us know! |
@@ -17,6 +19,12 @@ | |||
from apps.web.forms import set_form_fields_disabled | |||
|
|||
|
|||
def get_related_assistants(team): | |||
related_assistants = OpenAiAssistant.objects.filter(team=team) | |||
print(related_assistants) |
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.
Print statement
@@ -9,6 +9,14 @@ <h3 class="font-bold text-lg">{% translate "Really delete team?" %}</h3> | |||
<strong>This action cannot be undone.</strong> | |||
{% endblocktranslate %} | |||
</p> | |||
{% if related_assistants %} | |||
<h4 class="font-semibold my-2">These OpenAI Assistants will also be deleted:</h4> |
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.
Wondering if we should tell users that we'll remove the assistants from OpenAI as well?
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.
+1 - explicit is better and this could be interpreted as we'll delete them from OCS only
<h4 class="font-semibold my-2">These OpenAI Assistants will also be deleted:</h4> | |
<h4 class="font-semibold my-2">These OpenAI Assistants will also be deleted from OpenAI along with the related files and vector stores:</h4> |
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.
Looks good - one comment on wording
Second part of this ticket #1097
Description
(Just a warning not blocking like for archiving) This informing the the assistants will be deleted and which ones for the user and links to them if they so desire to look at them, or they can ignore them completely and still delete the team
User Impact
users are more informed when delete teams
Demo
Docs and Changelog