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

Convert assistant ID to str when creating pipeline versions #1030

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

snopoke
Copy link
Collaborator

@snopoke snopoke commented Jan 8, 2025

Description

The assistant ID is stored as a string in the pipeline node params (since the UI doesn't manage the conversion). But when we create new versions we store it as an int which breaks filtering for references to assistants (see #1011).

This PR updates all existing data to use strings and fixes the code for creating new versions.

Note

Ideally we should convert values from the UI but that seemed like a much larger change without significant value.

@snopoke snopoke requested a review from SmittieC January 8, 2025 12:43
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../pipelines/migrations/0011_migrate_assistant_id.py 58.33% 5 Missing ⚠️
Additional details and impacted files

📢 Thoughts on this report? Let us know!

@snopoke snopoke enabled auto-merge January 8, 2025 13:33
@snopoke snopoke merged commit 8e3ddb5 into main Jan 8, 2025
8 checks passed
@snopoke snopoke deleted the sk/pipeline-assistant-version branch January 8, 2025 13:39
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.

3 participants