Closed stephherbers closed 1 week ago
@coderabbitai please review
@stephherbers: I will review the changes.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 86.74699%
with 11 lines
in your changes missing coverage. Please review.
:loudspeaker: Thoughts on this report? Let us know!
We should probably also filter assistant versions from the assistants table, similar to what we do for instance for the consent forms here @SmittieC I opted to show the versioned assistants and modified the logic such that it does not link to the edit view & cannot sync. I opted for this just because it will also exist in OpenAI, so because of that felt wrong to hide from view in OCS (when for other things that lived only in OCS it feels more natural to hide things that are simply duplicates in time). But let me know if you disagree
We should probably also filter assistant versions from the assistants table, similar to what we do for instance for the consent forms here @SmittieC I opted to show the versioned assistants and modified the logic such that it does not link to the edit view & cannot sync. I opted for this just because it will also exist in OpenAI, so because of that felt wrong to hide from view in OCS (when for other things that lived only in OCS it feels more natural to hide things that are simply duplicates in time). But let me know if you disagree
I see. My only concern with this is that the assistants table will get cluttered, but let's see what the user feedback is. Maybe they like the fact that one can see the versions. Fine by me to leave as-is for now
I fixed some issues that came from the merge with the main branch and also a small issue when we try to duplicate files that doesn't really exist. This happens when we create a file that was uploaded through OpenAI, but since we can't pull its contents, we don't have a file associated with the record. See this commit. I hope you don't mind me making these changes.
All else looks good from my side, thanks @stephherbers. @snopoke, do you have any reservations about the last commit I made?
Description
Allow versioning of assistants
User Impact
Now experiments with assistants can be versioned where a copy of the assistant if made if attached to that experiment
Demo
not part of this PR
Docs
Docs updates are coming be ready