Skip to content

User experiment migration tool#1724

Merged
stephherbers merged 16 commits intomainfrom
smh/migration-tool
Jun 18, 2025
Merged

User experiment migration tool#1724
stephherbers merged 16 commits intomainfrom
smh/migration-tool

Conversation

@stephherbers
Copy link
Contributor

@stephherbers stephherbers commented Jun 6, 2025

Description

part of #1664
merges into #1721
After pressing banner button to migrate experiment. it navigates to the newly created chatbot
Screenshot 2025-06-06 at 3 46 20 PM

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

@stephherbers stephherbers requested review from SmittieC and snopoke June 6, 2025 19:50
@stephherbers stephherbers changed the base branch from main to smh/exp-pipeline-migration June 6, 2025 19:51
@stephherbers stephherbers changed the title Smh/migration tool User experiment migration tool Jun 6, 2025
@stephherbers stephherbers marked this pull request as ready for review June 6, 2025 19:53
@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2025

Codecov Report

Attention: Patch coverage is 19.14894% with 38 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/pipelines/helper.py 16.66% 25 Missing ⚠️
apps/experiments/views/experiment.py 23.52% 13 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

stephherbers and others added 3 commits June 11, 2025 09:11
Co-authored-by: Simon Kelly <skelly@dimagi.com>

# 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:
Copy link
Contributor

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

Suggested change
if experiment.assistant:
if experiment.pipeline:
raise ValueError(f"Experiment already has a pipeline attached: {experiment.id}")
elif experiment.assistant:

Copy link
Contributor

@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.

I think this needs to be updated with the changes from the parent branch

snopoke
snopoke previously approved these changes Jun 13, 2025
Base automatically changed from smh/exp-pipeline-migration to main June 13, 2025 17:26
@stephherbers stephherbers dismissed snopoke’s stale review June 13, 2025 17:26

The base branch was changed.

SmittieC
SmittieC previously approved these changes Jun 18, 2025
Copy link
Contributor

@SmittieC SmittieC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

snopoke
snopoke previously approved these changes Jun 18, 2025
Copy link
Contributor

@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.

Small comments but nothing blocking

Co-authored-by: Simon Kelly <skelly@dimagi.com>
@stephherbers stephherbers dismissed stale reviews from snopoke and SmittieC via fba8f2f June 18, 2025 13:08
stephherbers and others added 2 commits June 18, 2025 09:08
Co-authored-by: Simon Kelly <skelly@dimagi.com>
@stephherbers stephherbers merged commit 3cc4e5e into main Jun 18, 2025
9 checks passed
@stephherbers stephherbers deleted the smh/migration-tool branch June 18, 2025 13:56
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