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

Display which Assistants will be deleted with team deletion #1157

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

stephherbers
Copy link
Contributor

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

Screenshot 2025-02-06 at 2 22 32 PM

Docs and Changelog

@codecov-commenter
Copy link

codecov-commenter commented Feb 6, 2025

Codecov Report

All 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)
Copy link
Collaborator

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>
Copy link
Collaborator

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?

Copy link
Collaborator

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

Suggested change
<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>

snopoke
snopoke previously approved these changes Feb 7, 2025
Copy link
Collaborator

@snopoke snopoke left a 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

@stephherbers stephherbers merged commit c91eae7 into main Feb 10, 2025
7 checks passed
@stephherbers stephherbers deleted the smh/add-assitant-check-for-team-deletion branch February 10, 2025 13:37
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.

4 participants