langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.92k stars 4.25k forks source link

fix: Filter orphaned flows and extract constants to avoid circular imports #4752

Closed ogabrielluiz closed 1 week ago

ogabrielluiz commented 1 week ago

This pull request enhances the flow filtering mechanism by excluding orphaned flows that belong to the starter folder. Additionally, it extracts the STARTER_FOLDER_NAME and STARTER_FOLDER_DESCRIPTION constants into a dedicated module for improved code organization and maintainability. This change helps streamline the codebase and makes it easier to manage folder-related constants.

codspeed-hq[bot] commented 1 week ago

CodSpeed Performance Report

Merging #4752 will degrade performances by 20.81%

Comparing fix-orpahsn (472219c) with main (3e57340)

Summary

⚡ 1 improvements
❌ 2 regressions
✅ 12 untouched benchmarks

:warning: Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main fix-orpahsn Change
test_create_starter_projects 1.5 s 1.3 s +21.89%
test_successful_run_with_input_type_text 186 ms 218.5 ms -14.89%
test_successful_run_with_output_type_any 194.6 ms 245.7 ms -20.81%