Commit graph

5,385 commits

Author SHA1 Message Date
Lucas Oliveira
bf75bdbd59 Added nodelete class to not delete node when not selecting a text on modal 2023-09-27 21:36:47 -03:00
Lucas Oliveira
e9a1f10502 Fixed skeleton lines changing 2023-09-27 21:04:01 -03:00
Cristhian Zanforlin Lousa
f5601a6208 🐛 fix(extraSidebarComponent): fix handleBlur function to only reset filter data, filter edge, and search if search is empty 2023-09-27 19:37:08 -03:00
Cristhian Zanforlin Lousa
4e613117d6 🚀 chore(package.json): update reactflow package version to 11.9.2 for bug fixes and improvements
🐛 fix(dictAreaModal/index.tsx): prevent delete Node and close modal when user presses backspace key to improve user experience
2023-09-27 19:19:04 -03:00
Cristhian Zanforlin Lousa
ee800abb3a 🔧 chore(applies.css): reorganize CSS class properties for better readability and maintainability 2023-09-27 19:02:09 -03:00
Cristhian Zanforlin Lousa
65cb7d97d7 🔧 fix(parameterComponent): remove unused 'save' variable to improve code readability and maintainability 2023-09-27 18:34:48 -03:00
Gabriel Luiz Freitas Almeida
3ff6d584e4
Fix file_path not being set in the frontend code (#977) 2023-09-27 16:28:24 -03:00
Gabriel Luiz Freitas Almeida
5590dfe8f3 🐛 fix(langfuse.py): handle ImportError when importing Langfuse to prevent crashes when Langfuse is not installed
 feat(langfuse.py): set cls._instance to None when no Langfuse credentials are found to improve error handling and prevent crashes
2023-09-27 16:21:41 -03:00
anovazzi1
a3c2a0d13a Merge remote-tracking branch 'origin/dev' into fix_csv_loader 2023-09-27 15:34:15 -03:00
Cristhian Zanforlin Lousa
e183d8f4e4 🔧 fix(parameterComponent): remove console.log statement for newValue variable to clean up code
🔧 fix(keypairListComponent): refactor handleChangeKey and handleChangeValue functions to use useRef hook for value comparison and update
2023-09-27 15:30:22 -03:00
anovazzi1
f7bc0d8e0e Merge branch 'dev' into fix_csv_loader 2023-09-27 14:40:16 -03:00
Cristhian Zanforlin Lousa
b4ea2478e8 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-27 14:35:53 -03:00
Cristhian Zanforlin Lousa
3e3579d4c6 🐛 fix(parameterComponent): remove console.log statement to clean up code
🔥 chore(keypairListComponent): remove unused useEffect hook to improve code readability
2023-09-27 14:34:58 -03:00
anovazzi1
d73a69dd3d removed legacy function save 2023-09-27 14:04:36 -03:00
Gabriel Luiz Freitas Almeida
7498b85cf9
Fixes SQLDatabaseChain import and deactivates pickle for local cache (#976) 2023-09-27 13:04:49 -03:00
Gabriel Luiz Freitas Almeida
544cb859de 🐛 fix(utils.py): add support for importing SQLDatabaseChain from langchain_experimental.sql module 2023-09-27 13:02:37 -03:00
Gabriel Luiz Freitas Almeida
91bfa9a5d3 🐛 fix(utils.py): add error handling for flow not found in cache when updating build status 2023-09-27 12:37:12 -03:00
Gabriel Luiz Freitas Almeida
88f24d292d 🐛 fix(cache/manager.py): handle pickled values in get method to correctly return the value
 feat(cache/manager.py): add support for pickling values in set method to mimic Redis behavior
2023-09-27 12:36:32 -03:00
Gabriel Luiz Freitas Almeida
ecee08502f 🐛 fix(base.py): handle case when file_path is not found for a vertex 2023-09-27 12:36:14 -03:00
Gabriel Luiz Freitas Almeida
77d91cd23a 🐛 fix(documentloaders.py): make 'metadata' field optional instead of required to allow empty values 2023-09-27 12:35:59 -03:00
Gabriel Luiz Freitas Almeida
d6dcfd5266 🐛 fix(chat.py): replace direct assignment with update_build_status function to update build status in cache_service dictionary
🔧 chore(utils.py): add update_build_status function to update build status in cache_service dictionary
2023-09-27 11:52:34 -03:00
anovazzi1
2243e8df2d fix(buildTrigger): update validateNodes function calls to pass in nodes and edges arrays instead of reactFlowInstance
fix(formModal): update validateNodes function calls to pass in nodes and edges arrays instead of reactFlowInstance
fix(reactflowUtils): update validateNode function signature to accept edges array instead of reactFlowInstance
feat(reactflowUtils): update validateNodes function signature to accept nodes and edges arrays instead of reactFlowInstance
2023-09-27 11:39:22 -03:00
anovazzi1
eaab405742 code format 2023-09-27 10:20:34 -03:00
anovazzi1
76def20d86 fix bug when object comes as a string from backend 2023-09-27 10:19:49 -03:00
Gabriel Luiz Freitas Almeida
3ca8891b32
📝 docs(async-api.mdx): update endpoint path for checking task status … (#972) 2023-09-27 09:17:33 -03:00
Gabriel Luiz Freitas Almeida
2fe518a5dc
Make Celery check less verbose (#974) 2023-09-27 09:12:09 -03:00
Gabriel Luiz Freitas Almeida
05c73d4664 🔧 chore(Makefile): remove unnecessary parallel test execution flag to simplify test command
🔧 chore(Makefile): remove unnecessary parallel test execution flag to simplify test command
🔧 chore(Makefile): remove unnecessary parallel test execution flag to simplify test command
2023-09-27 09:10:42 -03:00
Gabriel Luiz Freitas Almeida
ede745c1dd 🐛 fix(custom_component.py): improve error message formatting for type hint error in build method
🐛 fix(logger.py): fix conditional statement for log_level configuration to properly handle None value
2023-09-27 08:54:11 -03:00
Gabriel Luiz Freitas Almeida
0b2b074e07 🔧 chore(logger.py): refactor configure function to improve readability and add support for configurable log level
🔒 chore(logger.py): add VALID_LOG_LEVELS constant to define valid log levels for better maintainability
2023-09-27 08:51:17 -03:00
Gabriel Luiz Freitas Almeida
0b535c54f5 🔧 chore(__main__.py): update Typer configuration to treat no arguments as help to improve usability
🔧 chore(__main__.py): update docstring for run() function to improve clarity
🔧 chore(__main__.py): update docstring for superuser() function to improve clarity
🔧 chore(__main__.py): update migration() function to default to test mode
🔧 chore(manager.py): remove unnecessary logging of database URL in run_migrations() function
🔧 chore(manager.py): add missing import statement for logger in check_celery_availability() function
🔧 chore(manager.py): update configure() function to be called in check_celery_availability() function
🔧 chore(logger.py): update configure() function to use environment variable for log level if available
🔧 chore(logger.py): update configure() function to use default log file location if not provided
2023-09-27 08:48:21 -03:00
Cristhian Zanforlin Lousa
7d6f7f1e5e 🔧 fix(keypairListComponent): rearrange classNames to improve readability and maintain consistency
🔧 fix(dictAreaModal): add CSS classes to prevent panning, dragging, undoing, and copying to improve user experience
2023-09-26 23:56:45 -03:00
Cristhian Zanforlin Lousa
76e0c6546a 🔨 refactor(codeTabsComponent): remove unused import of ShadTooltip component to improve code cleanliness and reduce bundle size
🔨 refactor(codeTabsComponent): remove unnecessary wrapping of TextAreaComponent and InputFileComponent components with ShadTooltip component to simplify code structure and improve performance
🔨 refactor(codeTabsComponent): remove unused onChange handlers in TextAreaComponent and InputFileComponent components to remove unnecessary code and improve code readability
🔨 refactor(codeTabsComponent): remove unnecessary className attribute in InputFileComponent component to remove redundant styling
🔨 refactor(codeTabsComponent): remove unused useEffect and useState imports to remove unnecessary code and improve code readability

🐛 fix(codeTabsComponent): fix JSX syntax error and improve code readability
 feat(codeTabsComponent): refactor codeTabsComponent to use separate components for different template types
2023-09-26 23:44:15 -03:00
Cristhian Zanforlin Lousa
921af848b7 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-26 22:05:45 -03:00
Cristhian Zanforlin Lousa
d9eb22c30f 🔧 fix(codeTabsComponent): remove unused onChange function parameter in CodeTabsComponent to improve code readability and maintainability
🔧 fix(dictComponent): change onChange behavior in DictComponent to set an empty object when disabled instead of an empty array
🔧 fix(ApiModal): add a check to convert changes to an object only if it is an array in ApiModal
🔧 fix(dictAreaModal): change dictObj state to a ref in DictAreaModal to avoid unnecessary re-renders
🔧 fix(dictAreaModal): update dictObj ref value instead of using setDictObj in DictAreaModal to improve performance
🔧 fix(types): remove unnecessary line breaks in TooltipComponentType to improve code readability
2023-09-26 22:05:39 -03:00
anovazzi1
3c202c4781 chore(codeTabsComponent): add custom-scroll class to improve styling of code tabs component
chore(keypairListComponent): add h-full class to make keypair list component fill its parent container
chore(EditNodeModal): add custom-scroll class and max-h-48 class to make the modal scrollable when necessary
2023-09-26 21:35:46 -03:00
anovazzi1
1920c140a8 fix(PageComponent/index.tsx): fix incorrect parameter passed to uploadFlow function 2023-09-26 21:03:12 -03:00
Cristhian Zanforlin Lousa
ea2b0dcc38 🔄 refactor(keypairListComponent): replace Textarea component with Input component for key and value inputs 2023-09-26 21:01:25 -03:00
Cristhian Zanforlin Lousa
0cf6e09292 🐛 fix(ApiModal): uncomment setActiveTab("0") to fix a bug where the active tab was not being set correctly 2023-09-26 20:56:11 -03:00
Cristhian Zanforlin Lousa
13fae3875b Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-26 20:55:56 -03:00
Cristhian Zanforlin Lousa
5feb98466c start state for nestedDict 2023-09-26 20:55:46 -03:00
anovazzi1
c77a93b6d9 fix(MainPage): only set isDragging to true if the dragged item is a file to prevent unnecessary state changes 2023-09-26 20:55:25 -03:00
anovazzi1
cb74a0fb44 fix(nodeToolbarComponent): add check to disable button when nodeLength is 0 to prevent unwanted actions
feat(nodeToolbarComponent): add event handler to ignore events with "disabled" keyword to prevent unwanted actions
2023-09-26 20:39:26 -03:00
anovazzi1
fdde05d29e fix(baseModal): update onChangeOpenModal prop type to accept an optional boolean parameter to improve flexibility and avoid potential errors 2023-09-26 20:15:04 -03:00
Gabriel Luiz Freitas Almeida
5ec118cc6f 🐛 fix(custom_component.py): improve error message formatting for type hint error in build method
The error message for a type hint error in the build method was improved to provide clearer instructions. The traceback message was updated to suggest using PromptTemplate instead of Prompt type. This change improves the readability and usability of the error message.
2023-09-26 20:06:38 -03:00
Gabriel Luiz Freitas Almeida
f506fd1625 🔥 chore(deploy): remove unused docker-compose.test.yml file
🔧 chore(deploy): update docker-compose.override.yml to version 3.8

📦 chore(docker-compose.with_tests.yml): add docker-compose file with tests configuration

This commit adds a new docker-compose file named `docker-compose.with_tests.yml` which includes the configuration for running tests. The file includes the following services:

- `proxy`: Configures Traefik as a reverse proxy with Docker integration and enables access logs, the Traefik dashboard, and API.
- `backend`: Sets up the backend service with dependencies on a database, message broker, and result backend. It also includes labels for Traefik routing.
- `db`: Configures a PostgreSQL database with a volume for data persistence.
- `pgadmin`: Sets up pgAdmin for managing the PostgreSQL database.
- `result_backend`: Configures a Redis instance for the result backend.
- `celeryworker`: Sets up a Celery worker for background task processing.
- `flower`: Configures Flower for monitoring and managing Celery workers.
- `frontend`: Sets up the frontend service with labels for Traefik routing.
- `broker`: Configures RabbitMQ with the management console.
- `prometheus`: Sets up Prometheus for monitoring.
- `grafana`: Configures Grafana for visualization and monitoring.
- `tests`: Extends the `backend` service and runs pytest for running tests.

This file allows running the application with the necessary services for testing and monitoring.

🔧 chore(docker-compose.yml): add missing volumes and networks for services
🔧 chore(docker-compose.yml): add traefik-public network with configurable external setting for flexibility in testing

📝 docs(async-tasks.mdx): update docker-compose command to use the correct file name for running tests
2023-09-26 19:58:50 -03:00
Gabriel Luiz Freitas Almeida
868515958e 📝 docs(async-api.mdx): add response example for async API request to improve documentation clarity 2023-09-26 19:45:08 -03:00
anovazzi1
6fd2b0c743 fix(tabsContext.tsx): add optional 'silent' parameter to the saveFlow function to control whether to show success message or not
fix(PageComponent/index.tsx): pass 'true' as the second argument to the saveFlow function to prevent showing success message when saving flow every 30 seconds
fix(types/tabs/index.ts): update the saveFlow function signature to include the optional 'silent' parameter
2023-09-26 19:44:19 -03:00
Cristhian Zanforlin Lousa
1b3564ed3d 🔥 refactor(PageComponent/index.tsx): remove console.log statement for improved code cleanliness 2023-09-26 19:44:19 -03:00
Cristhian Zanforlin Lousa
230a8b3826 🐛 fix(PageComponent/index.tsx): add timer to automatically save flow every 30 seconds to prevent data loss 2023-09-26 19:44:19 -03:00
Gabriel Luiz Freitas Almeida
af35ae315e 📝 docs(async-api.mdx): update endpoint path for checking task status to improve consistency and clarity
🐛 fix(endpoints.py): update endpoint path for checking task status to match the updated path in the documentation

🐛 fix(schemas.py): add TaskResponse schema to properly handle task response data

🐛 fix(locustfile.py): update endpoint path for polling task status to match the updated path in the endpoints

🐛 fix(test_endpoints.py): update helper function and test cases to use the new task response structure and endpoint path for polling task status
2023-09-26 19:34:50 -03:00