* refactor(tests): update import statements in conftest.py to use collections.abc module for better compatibility and maintainability
* run pyupgrade on graph module
* [autofix.ci] apply automated fixes
* refactor(attributes.py): change import statement from 'typing.Callable' to 'collections.abc.Callable' for better compatibility
refactor(code_parser.py): update type annotations to use '|' for Union types for better readability
refactor(base_component.py): update type annotations to use '|' for Union types for better readability
refactor(component.py): change import statement from 'typing.Callable' to 'collections.abc.Callable' for better compatibility
refactor(component.py): update type annotations to use '|' for Union types for better readability
refactor(component.py): update type annotations to use 'list' instead of 'List' for consistency
refactor(custom_component.py): update typing imports and annotations for better readability and consistency
refactor(utils.py): change type hint 'List' to 'list' for consistency and compatibility with Python 3.9
* run make format
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* chore(Makefile): redirect output of 'poetry install' and 'npm install' commands to /dev/null to reduce noise
chore(Makefile): redirect output of 'npm run build' command to /dev/null to improve build process efficiency
feat(Makefile): update build_frontend target to include copying built files to backend directory for deployment
* chore(Makefile): refactor lint target to depend on install_backend task for better dependency management
chore(Makefile): refactor frontend, frontendc, backend, build_and_run, build_and_install, and build targets to depend on setup_env task for consistent environment setup before execution
* chore(Makefile): update Makefile commands to use @ symbol for silent execution and improve readability
* chore(Makefile): update Makefile commands to use "@" to suppress command output and improve readability
* chore(Makefile): update run_cli target to include dependencies installation and frontend build steps for better clarity and consistency
* chore(Makefile): add command to delete empty directories in clean_python_cache target
* ✨ (App.tsx): Add useGetStarterProjectsQuery hook to fetch starter projects data
📝 (constants.ts): Add STARTER_PROJECTS constant to define the endpoint for starter projects API
📝 (use-get-starter-projects.ts): Create useGetStarterProjectsQuery hook to fetch starter projects data
📝 (index.tsx): Add AppWrapperPage test for drag and drop functionality with starter projects data
📝 (starter-projects.spec.ts): Add end-to-end test for drag and drop functionality with starter projects data
* ✨ (starter-projects.spec.ts): update test description to be more descriptive and specific about the test scenario
* ♻️ (App.tsx): remove unused useGetStarterProjectsQuery hook to clean up code and improve readability
* 🔧 (App.tsx): remove unused import useGetStarterProjectsQuery to clean up code and improve readability
* Changed ProtectedRoute to handle refresh token
* Created DashboardWrapperPage to insert header into elements
* Changed routes to be contained by only one ProtectedRoute
* Removed refresh and get version query of App.tsx
* Added loading if user not authenticated in ProtectedAdminRoute
* Changed page layout to not contain header
* Changed AdminPage and FlowPage to not have headers
* Removed unused variables
* Refactored redirectToLastLocation of headerComponent
* Removed unused track last visited path
* changed viewPage to not set onFlowPage since it's used only on header
* Added flow fetching into Playground page
* Fixed back button not working between flows
* Changed duplicate requests to show which request failed
* Refactored useGetBuilds to remove duplicated request
* Re-added get version query and config query
* [autofix.ci] apply automated fixes
* Fix tests that rely on autosave delay
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
✨ (textAreaWrapper/index.tsx): add useEffect hook to focus on input when conditions are met
♻️ (AppWrapperPage/index.tsx): remove unnecessary console.log statement
* Commit to solve Model not loading issue
The issue was that the url of the models: api/tags was not parsed correctly.
It was having a // hence used urlencode to parse it properly.
Th e correct apporach works only if the base_url is correct,i.e a valid ollama URL:
for DS LF this must be a public ollama Server URL.
* updated the component Ollama Component
changed the get model to take in base url and the function will make the expected url for the model names. This makes the function better, than providing the model url as paramter.
Added Pytest, 7 tests, 1 test excluded for future implememtstion: test_build_model_failure
Make lint and Make format had touched multiple files
* removed unwanted print statements
removed unwanted print statements.
make format, formatted a lot of .tsx files also
* removed skipped tests
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix: building vertices not working on Safari
* fix: building vertices not working on Safari
* fix: stop build button seems to not work
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix: connection_string_parser.py
In version 1.0.14, a connection string that includes a port, like the following example, works without any issues:
`test_connection_string = 'postgresql://postgres:password!!@pgdatabase.hosts:5432'`
However, in version 1.0.15, using this connection string causes an error.
"Error building Component PGVector: invalid literal for int() with base 10"
This is because 5432, which is the result of parsing the password_url, is being used as the last element in the password_url list.
* [autofix.ci] apply automated fixes
* Update connection_string_parser.py
fix
transformed_connection_string = f'{protocol_user}:{encoded_password}@{db_url_name}'
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Update the border class for the selected node status in the NodeStatus component to "border-2 border-node-selected hover:shadow-node". This change improves the visual representation of the selected node status.
* 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.