-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
fix: Improve data consistency in update_flow function #5516
Open
Cristhianzl
wants to merge
15
commits into
main
Choose a base branch
from
cz/fix-move-flow-folder
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…d in the database during flow update 📝 (flows.py): Improve error handling and rollback database session in case of exceptions during flow update 📝 (flows.py): Refactor code to handle unique constraint errors and provide more informative error messages 📝 (utils.py): Refactor get_webhook_component_in_flow function to handle cases where flow_data may not have 'nodes' attribute
dosubot
bot
added
size:M
This PR changes 30-99 lines, ignoring generated files.
bug
Something isn't working
labels
Jan 2, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 2, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 2, 2025
CodSpeed Performance ReportMerging #5516 will improve performances by 26.12%Comparing Summary
Benchmarks breakdown
|
…r folder buttons for improved accessibility and testing ✨ (general-bugs-move-flow-from-folder.spec.ts): add test to ensure user can move flow from one folder to another in the frontend application
…-ai/langflow into cz/fix-move-flow-folder
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 2, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 2, 2025
ogabrielluiz
requested changes
Jan 3, 2025
…l data inconsistency ♻️ (service.py): refactor with_session method to handle session commit and rollback more effectively
…-ai/langflow into cz/fix-move-flow-folder
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 3, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 6, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 7, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 7, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 7, 2025
italojohnny
force-pushed
the
cz/fix-move-flow-folder
branch
from
January 7, 2025 17:40
c936ebb
to
b0cd684
Compare
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 7, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 7, 2025
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
Jan 7, 2025
github-actions
bot
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jan 7, 2025
italojohnny
added
lgtm
This PR has been approved by a maintainer
and removed
lgtm
This PR has been approved by a maintainer
labels
Jan 7, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
update_flow
function and a utility function in the backend of the Langflow API. The modifications aim to improve error handling, ensure data integrity, and enhance functionality.Improvements to
update_flow
function:flow.data
todb_flow.data
if it isNone
to ensure data consistency.db_flow
after committing the session, ensuring the updated flow is returned.except
block to handle errors more gracefully and ensure the database state is not corrupted.Enhancements to utility function:
flow_data
to prevent potential attribute errors in theget_webhook_component_in_flow
function.