-
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
Assistant Archival Cleanup #1011
Assistant Archival Cleanup #1011
Conversation
…all assitatns before archiving and deleteling those references as well
…assistants when the referenced assistant is going to be archived
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files📢 Thoughts on this report? Let us know! |
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.
After reviewing this and testing it locally I think we need to take a step back and look more holistically at how we trace references to objects and make that visible in the UI.
I've started a doc to make it easier to collaborate on the thoughts and ideas: https://docs.google.com/document/d/1Z09GNpO17izoVcRPGSmppNthFruyRJ0033T-RYvapoE/edit?tab=t.0
noting that we are moving forward with changes from the doc so those commits will be coming in later and I will re-requests reviews |
…n OR defualt version to display, else we don't need to block
…riments and pipelines
… clairfy it links to experiments and not pipelines
…en a pipeline needs to be flagged vs an experiment referencing a pipeline
…ments with pipelines
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.
It's coming together nicely. Just two small comments
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.
This is very close now. I'm going to check it out and test it locally.
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.
so close!
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 ready to merge once tests are passing:
=========================== short test summary info ============================
FAILED apps/assistants/tests/test_delete.py::TestAssistantArchival::test_archive_assistant_fails_with_working_related_versioned_pipeline_and_working_experiment - assert not True
+ where True = <bound method OpenAiAssistant.archive of <OpenAiAssistant: >>()
+ where <bound method OpenAiAssistant.archive of <OpenAiAssistant: >> = <OpenAiAssistant: >.archive
FAILED apps/assistants/tests/test_delete.py::TestAssistantArchival::test_archive_assistant_fails_with_working_related_pipeline - assert not True
+ where True = <bound method OpenAiAssistant.archive of <OpenAiAssistant: >>()
+ where <bound method OpenAiAssistant.archive of <OpenAiAssistant: >> = <OpenAiAssistant: >.archive
=========== 2 failed, 878 passed, 448 warnings in 323.87s (0:05:23) ============
Description
990
Followup logic changes for assistant versioning archiving.
Screen.Recording.2025-01-20.at.3.14.50.PM.mov
Now, when a assistant is archived that is a working version, all its versions is also archived and deleted from open AI.
Also from a UI standpoint. When it checks whether is can be archived, if its the working version it checks for all dependencies for all the versions not just the working version and displays everything that needs to be archived first. This way, the version won't be archived with the open AI deleted with something (exp or pipeline) still referencing it). Only the working and published references will be displayed as blocking to the user for the assistant to be archived
User Impact
Demo
loom demo
When a user goes to archive an assistant, there will be 3 uses cases checked:
For cases 1 & 3, it links to the experiment version that is blocking, and for case 2 it links to the pipeline that is blocking
Docs
being updated now