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

ref: Some fixes for ruff rules preview mode #4197

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Oct 17, 2024

Some fixes for ruff rules preview mode

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 17, 2024
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.

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 19, 2024
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.

LGTM

@cbornet cbornet enabled auto-merge (squash) October 19, 2024 15:26
@cbornet cbornet force-pushed the ruff-rules-preview-4 branch 2 times, most recently from 241119e to 691e6ca Compare October 19, 2024 16:01
@cbornet cbornet disabled auto-merge October 19, 2024 16:04
@@ -510,7 +512,7 @@ async def build_vertex(
lock = chat_service._async_cache_locks[flow_id_str]
vertex_build_result = await graph.build_vertex(
vertex_id=vertex_id,
user_id=current_user.id,
user_id=str(current_user.id),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There was a typing error as current.id is an UUID and build_vertex takes a string.
I think it's OK to transform the UUID to string as self._uuid can be both string and UUID in BaseComponent.
WDYT @ogabrielluiz ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 20, 2024
@cbornet cbornet force-pushed the ruff-rules-preview-4 branch 2 times, most recently from 8bb38ad to 7c20927 Compare October 21, 2024 00:13
@cbornet cbornet enabled auto-merge (squash) October 22, 2024 13:59
@cbornet cbornet merged commit f0eb7b5 into langflow-ai:main Oct 22, 2024
28 checks passed
@cbornet cbornet deleted the ruff-rules-preview-4 branch October 22, 2024 14:05
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 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