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

feat: migrate vertex_builds to sql database #2978

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

nicoloboschi
Copy link
Contributor

No description provided.

@nicoloboschi nicoloboschi changed the title Migrate built vertex feat: migrate vertex_builds to sql database Jul 26, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-2978.dmtpw4p5recq1.amplifyapp.com

Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

Looking good, @nicoloboschi

Thanks for all the help!

sa.Column("id", sqlmodel.sql.sqltypes.GUID(), nullable=False),
sa.Column("flow_id", sqlmodel.sql.sqltypes.GUID(), nullable=False),
sa.Column("error", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
sa.ForeignKeyConstraint(
Copy link
Contributor

Choose a reason for hiding this comment

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

Please put names in the constraints in case we need to update them later on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's a very good idea, I did it now for the vertex_builds.
For transactions it has been already reelased so I will leave it as is :(

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. We'll have to find a way to deal with this later. SQLModel 0.0.21 has cascade_delete but it would require us to update the constraints. There's also a UUID compatibility issue in it, though.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 29, 2024
@nicoloboschi nicoloboschi marked this pull request as ready for review July 29, 2024 14:37
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. python Pull requests that update Python code labels Jul 29, 2024
@nicoloboschi nicoloboschi enabled auto-merge (squash) July 29, 2024 14:37
@nicoloboschi nicoloboschi merged commit c7575b1 into langflow-ai:main Jul 29, 2024
51 checks passed
nicoloboschi added a commit to datastax/ragstack-ai-langflow that referenced this pull request Jul 30, 2024
* feat: migrate vertex_builds to sql database

* [autofix.ci] apply automated fixes

* name

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
(cherry picked from commit c7575b1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer python Pull requests that update Python code size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants