-
Notifications
You must be signed in to change notification settings - Fork 14
User experiment migration tool #1724
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
base: smh/exp-pipeline-migration
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
apps/experiments/tasks.py
Outdated
""" | ||
try: | ||
experiment = Experiment.objects.get(id=experiment_id) | ||
call_command("migrate_nonpipeline_to_pipeline_experiments", experiment_id=experiment_id, skip_confirmation=True) |
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.
A preferable alternative to calling the command would be to extract the logic into functions which can be used here and in the command. That also makes it easier to test.
Co-authored-by: Simon Kelly <[email protected]>
apps/pipelines/helper.py
Outdated
|
||
# TODO: function is temporary and can be deleted after the exp -> chatbot transition is complete | ||
def convert_non_pipeline_experiment_to_pipeline(experiment): | ||
if experiment.assistant: |
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.
nit: extra paranoid validation that we can actually migrate this before we do
if experiment.assistant: | |
if experiment.pipeline: | |
raise ValueError(f"Experiment already has a pipeline attached: {experiment.id}") | |
elif experiment.assistant: |
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.
I think this needs to be updated with the changes from the parent branch
Description
part of #1664

merges into #1721
After pressing banner button to migrate experiment. it navigates to the newly created chatbot
User Impact
users are able to migrate LLM and Assistant type experiments themselves
Demo
Docs and Changelog
yes to changelog-- the docs have information about the transition, but I may add something specifically for this migration