* refactor(tracing/service.py): change asyncio.create_task to self.logs_queue.put_nowait for better performance and readability
* fix(chat.py): remove unnecessary logging of exception in build_flow function to improve code readability and maintainability
* refactor(tracing/service.py): refactor _end_and_reset method to use asyncio.create_task for better performance and readability
* ✨ (frontend): Add TimeoutErrorComponent to handle timeout errors in API requests
🔧 (frontend): Add healthCheckTimeout state and setHealthCheckTimeout function to utilityStore for managing timeout errors in API requests
* 📝 (constants.ts): add constants for server health check intervals to improve code readability and maintainability
🐛 (use-get-health.ts): fix refetch interval value to use the newly added constant REFETCH_SERVER_HEALTH_INTERVAL for consistency and easier maintenance
* 📝 (api.tsx): Add utilityStore import to improve code organization
📝 (api.tsx): Add createNewError503 function to handle custom 503 errors
📝 (api.tsx): Add AxiosError import for type checking
📝 (api.tsx): Refactor error handling logic for authentication errors
📝 (use-get-health.ts): Add createNewError503 import for custom 503 errors
📝 (use-get-health.ts): Add AxiosError import for type checking
📝 (use-get-health.ts): Refactor error handling logic for server busy status
📝 (index.tsx): Add AxiosError import for type checking
📝 (index.tsx): Add useEffect and useState imports for state management
📝 (index.tsx): Refactor error handling logic for server status and retries
📝 (utilityStore.ts): Add retriesApiRequest state and setRetriesApiRequest function
📝 (axios-error-503.ts): Create function to generate custom 503 error responses
📝 (index.ts): Add retriesApiRequest state and setRetriesApiRequest function to UtilityStoreType
* 🔧 (utilityStore.ts): remove unused retriesApiRequest and setRetriesApiRequest functions to clean up code and improve maintainability
🔧 (index.ts): remove unused retriesApiRequest and setRetriesApiRequest types to keep type definitions consistent and up to date
* ✨ (nginx.conf): add new health endpoint to proxy_pass requests to the backend server for health checks
* ✨ (langflow): Add support for configuring the number of retries for the health check feature. This change introduces a new option `health_check_max_retries` that can be set via environment variable or command line argument to control the maximum number of retries for the health check process.
* check if value is none
* fix: improve file name generation in upload_file function to prevent files with the same name
* [autofix.ci] apply automated fixes
* fix: improve file name generation in upload_file function
* [autofix.ci] apply automated fixes
* fix: improve file name generation in upload_file function
* fix: improve file path generation in test_upload_file function
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
🐛 (index.tsx): Fix issue where setEditFolderName was being called with undefined or empty folders array, causing a crash. Added a check to ensure folders array is not empty before setting edit folder names.
* feat(utils): add support for V1BaseModel in serialize_field
Add support for V1BaseModel instances in the serialize_field function by
checking for a "to_json" method. If the method is not present, return the
attribute values as a dictionary.
* refactor: Update field serializer function and error handling in build_flow function
* feat: bump composio version
* [autofix.ci] apply automated fixes
* chore(poetry.lock): update Poetry version from 1.8.2 to 1.8.3
chore(poetry.lock): remove milvus_lite-2.4.9-py3-none-manylinux2014_aarch64.whl package from lock file
* [autofix.ci] apply automated fixes
* fix(poetry.lock): update Poetry version from 1.8.2 to 1.8.3 to reflect the actual version used
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: Add logging and session imports to endpoints.py
Import logging and session modules for better error handling and database interaction in endpoints.py.
* refactor: Improve custom component parameter handling in update endpoint
* feat: Add parse_value function to parse values based on input type
Add a new function `parse_value` to `utils.py` that parses values based on the input type provided. The function handles different input types such as 'IntInput' and 'FloatInput' to ensure proper parsing.
* feat: Refactor custom_component_update() to use parse_value utility function
Use parse_value utility function to handle different input types and empty values in custom_component_update() for better readability and maintainability.
* fix: Add exception handling for missing langchain_anthropic package
* refactor: Move import statement for get_starter_projects_dump in get_starter_projects
* chore: Modify logger to use error level for exception in directory_reader
* ✅ (dropdownComponent.spec.ts): add missing test case for dropdownComponent to improve test coverage and ensure functionality
🔧 (dropdownComponent.spec.ts): update test case to include additional interactions with the page to simulate user behavior and improve test robustness
* ✅ (dropdownComponent.spec.ts): update mouse wheel scroll distance to 800 to improve test reliability
📝 (dropdownComponent.spec.ts): add additional wait time to ensure stability in test execution
* 🔧 (dropdownComponent.spec.ts): remove unnecessary code related to hovering and scrolling in the dropdown component test to improve test readability and maintainability
* ci: Add dynamic input for Python versions and frontend tests folder in CI workflow.
* build: Update python versions to ['3.10', '3.11', '3.12'] and set frontend tests folder to 'tests'
* refactor: Simplify log configuration logic in Graph class
* feat(tracing): Refactor _end_traces method to be async and use asyncio.to_thread.
This is an attempt to avoid blocking the build loop
Update OpenAIModel.py- Fix can not set temperature to 0 bug.
As when the input temperature is 0, the condition would become False , so this expressing set it to 0.1, it become impossible to set it to 0.
* 📝 (langflow): Add support for configuring auto saving interval for Langflow
📝 (langflow): Update ConfigResponse and Settings to include auto_saving_interval
📝 (frontend): Update useGetConfigQuery and useSaveConfig to handle auto_saving_interval
📝 (frontend): Update useAutoSaveFlow and flowsManagerStore to handle auto saving interval
* 📝 (util.py): add support for setting auto_saving_interval in update_settings function to allow customization of auto-saving interval
* 🐛 (users.py): Fix issue where user password was not being updated correctly
📝 (constants.ts, authContext.tsx, index.tsx): Add LANGFLOW_REFRESH_TOKEN constant and update related code to support refresh token functionality
📝 (userManagementModal/index.tsx): Update form reset logic and handle input values correctly
📝 (LoginPage/index.tsx, LoginAdminPage/index.tsx): Update login function to include refresh token parameter
📝 (components/index.ts, auth.ts): Update inputHandlerEventType to support boolean values
✨ (auto-login-off.spec.ts): Add end-to-end test for user login functionality with auto_login set to false, CRUD operations for users, and verification of user flows visibility based on permissions.
* ✨ (auto-login-off.spec.ts): improve test description for better clarity and understanding
📝 (auto-login-off.spec.ts): add comments to clarify the purpose of intercepting requests and performing CRUD operations
* 🐛 (users.py): fix comparison of password to check for None using 'is not None' instead of '!= None' for better accuracy
* Added refresh flows mutation
* Changed places that used refreshFlows to use the mutation
* removed old refreshFlows
* removed readFlowsFromDatabase api call
* Removed unused API calls from API.ts
* Removed getFlowFromDatabase call