Commit graph

5,776 commits

Author SHA1 Message Date
igorrCarvalho
b48c813550 Refactor: Change tabsContext name to FlowsContext 2023-10-27 16:22:12 -03:00
Lucas Oliveira
42d56f70ed Revert "Merge branch 'release' into dev"
This reverts commit dd3f3d4ca8, reversing
changes made to 27bc4c5498.
2023-10-25 20:14:28 -03:00
Lucas Oliveira
dd3f3d4ca8 Merge branch 'release' into dev 2023-10-25 20:06:21 -03:00
Gabriel Luiz Freitas Almeida
c425be286b 🔖 chore(pyproject.toml): bump version from 0.5.3 to 0.5.4 to indicate a new release with updates 2023-10-25 18:16:12 -03:00
Gabriel Luiz Freitas Almeida
35756174f3 📦 chore(pyproject.toml): update langchain dependency to version 0.0.320 for bug fixes and improvements 2023-10-25 18:14:51 -03:00
Gabriel Luiz Freitas Almeida
229717a98a 🐛 fix(endpoints.py): fix missing return statement in get_all function
🐛 fix(base.py): fix issue with args_schema value for PythonInputs template
🐛 fix(test_prompts_template.py): fix incorrect value for validate_template
2023-10-25 18:13:58 -03:00
Gabriel Luiz Freitas Almeida
05b392ece7
🐛 fix(base.py): handle import errors when importing utilities to prevent application crashes (#1081) 2023-10-25 16:04:32 -03:00
Gabriel Luiz Freitas Almeida
976bbe509d 🔧 chore(Makefile): add 'make install_backend' command to the 'lint' target to ensure backend dependencies are installed before running checks 2023-10-25 16:03:16 -03:00
Gabriel Luiz Freitas Almeida
f6ab266294 🐛 fix(base.py): handle import errors when importing utilities to prevent application crashes
The code now handles import errors when importing utilities from the `langchain.utilities` module. If an import error occurs, the utility is skipped and not added to the `type_dict` dictionary. This prevents the application from crashing when encountering an invalid or missing utility.
2023-10-25 15:57:48 -03:00
anovazzi1
27bc4c5498 fix(EditNodeModal): only reset data and call onClose when modalOpen is true to prevent unnecessary side effects 2023-10-23 22:47:41 -03:00
anovazzi1
6f40a94b55 update node internals on editNodeModal 2023-10-23 22:40:55 -03:00
anovazzi1
337f0f8794 fix(parameterComponent): update readonly condition to only check for data.node?.flow
fix(promptComponent): prevent update from prompt template after group node if prompt is wrongly marked as not dynamic
fix(EditNodeModal): update readonly condition to only check for myData.current.node?.flow
2023-10-19 15:02:32 -03:00
anovazzi1
5a5ed630ed
update har file getAll content (#1075) 2023-10-19 14:42:22 -03:00
anovazzi1
b0bbe39c89 update har file getAll content 2023-10-19 14:40:27 -03:00
Gabriel Luiz Freitas Almeida
68e5cb4cce Merge remote-tracking branch 'origin/main' into dev 2023-10-19 11:04:09 -03:00
Gabriel Luiz Freitas Almeida
0286353695 🐛 fix(base.py): include vertex ID in error message to provide more context when building a node fails 2023-10-19 09:25:53 -03:00
cristhianzl
2fbb68d6a6 fix(keyPairListComponent.spec.ts): fix typo in test case description
fix(keyPairListComponent.spec.ts): update test case to fill input field with a value containing spaces for better coverage
fix(keyPairListComponent.spec.ts): add assertion to check if input field value with spaces is correctly filled
fix(keyPairListComponent.spec.ts): update test case to fill input field with a value containing spaces for better coverage
fix(keyPairListComponent.spec.ts): update assertion to check if input field value with spaces is correctly filled
2023-10-18 23:58:09 -03:00
Cristhian Zanforlin Lousa
c939edbb2b
Fix no space no keyPairList (#1072)
fix(reactflowUtils.t): modify convertValuesToNumbers function to
correctly handle values that are numbers represented as strings
feat(reactflowUtils.ts): add check to convertValuesToNumbers function to
only convert values that are valid numbers represented as strings
2023-10-18 23:31:53 -03:00
Gabriel Luiz Freitas Almeida
08bd16b8f2 🔧 chore(OpenAIConversationalAgent.py): enable handling of parsing errors in ConversationalAgent class 2023-10-18 22:14:14 -03:00
Gabriel Luiz Freitas Almeida
a497eebab1 🔧 fix(__main__.py): set "no_proxy" environment variable to "*" to avoid error with gunicorn in macos 2023-10-18 19:57:28 -03:00
anovazzi1
3cf800d12f
Create test ToogleComponent, IntComponent, FloatComponent, InputComponent (#1031)
This pull request introduces unit tests for four different components:
ToggleComponent, IntComponent, FloatComponent, and InputComponent. The
tests ensure that these components function as expected and help
maintain code quality.

Changes Made:
  Added a test suite for ToggleComponent to verify its functionality.
  Added a test suite for IntComponent to verify its functionality.
  Added a test suite for FloatComponent to verify its functionality.
  Added a test suite for InputComponent to verify its functionality.
2023-10-18 18:03:32 -03:00
anovazzi1
ff650a13fb chore(run-tests.sh): increase sleep duration to 25 seconds to allow more time for the backend to start before running tests 2023-10-18 17:32:08 -03:00
anovazzi1
75c613c97e updated input component test 2023-10-18 17:07:44 -03:00
anovazzi1
5fd7cbdcb2 feat(tests): add toggleComponent.spec.ts to test the functionality of the ToggleComponent
The toggleComponent.spec.ts file contains a test case that verifies the functionality of the ToggleComponent. The test case performs the following actions:

1. Routes network requests from a HAR file, disabling updates for URLs matching "**/api/v1/**".
2. Routes a specific network request to return a JSON response with a status of 201.
3. Navigates to "http://localhost:3000/".
4. Waits for 2000 milliseconds.
5. Clicks on an element with the id "new-project-btn".
6. Waits for 2000 milliseconds.
7. Clicks on an element with the placeholder text "Search" and fills it with "directoryLoader".
8. Waits for 2000 milliseconds.
9. Drags an element with the id "sideDirectoryLoader" to another element with the id "react-flow-id".
10. Performs a series of click actions on various elements to test their functionality.
11. Verifies the state of toggle buttons using the isChecked() method.
12. Clicks on an element with the id "saveChangesBtn".
13. Performs additional click actions and verifications.
14. Clicks on an element with the id "saveChangesBtn".
15. Performs additional click actions and verifications.
16. Clicks on an element with the id "saveChangesBtn".
17. Performs additional click actions and verifications.
18. Clicks on an element with the id "saveChangesBtn".
19. Performs additional click actions and verifications.
20. Clicks on an element with the id "saveChangesBtn".
21. Performs additional click actions and verifications.
22. Verifies the count of elements matching the locator "//*[@id="toggle-1"]" and performs additional actions based on the count.

This test case is added to ensure that the ToggleComponent functions as expected and that the toggle buttons behave correctly.
2023-10-18 16:56:44 -03:00
anovazzi1
2fba3427fc sorting fields to keep the same order always and fixed group component tests' 2023-10-18 16:27:35 -03:00
anovazzi1
fcafd995ef moved group tests to only front 2023-10-18 16:18:46 -03:00
cristhianzl
1845149647 Merge branch 'feat-testComps' of https://github.com/logspace-ai/langflow into feat-testComps 2023-10-18 15:53:25 -03:00
cristhianzl
ad8183e598 fix(promptModalComponent.spec.ts): update element locators to match changes in HTML structure 2023-10-18 15:51:56 -03:00
cristhianzl
a7eab9677f fix(reactflowUtils.ts): modify convertValuesToNumbers function to correctly handle values that are numbers represented as strings
feat(reactflowUtils.ts): add check to convertValuesToNumbers function to only convert values that are valid numbers represented as strings
2023-10-18 15:44:24 -03:00
anovazzi1
b9c1679751 update poetry lock 2023-10-18 14:53:29 -03:00
anovazzi1
7e0b3684e4 Merge branch 'dev' into feat-testComps 2023-10-18 14:49:13 -03:00
anovazzi1
68e76dce41 chore(run-tests.sh): add installation of playwright if not already installed 2023-10-18 14:46:53 -03:00
anovazzi1
5a1ddfb9b3 fix(tabsContext.tsx): add console.log to debug text variable in TabsProvider
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a collection
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a flow
2023-10-17 21:47:13 -03:00
anovazzi1
d68f2cbbab feat(dragAndDrop.spec.ts): add tests for auto_login functionality
The `dragAndDrop.spec.ts` file was added to the `src/frontend/tests/onlyFront` directory. This file contains tests for the auto_login functionality. Two tests were added:

1. `auto_login sign in`: This test simulates signing in with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, waits for the ".community-pages-flows-panel" selector to be present, and asserts that it has children.

2. `auto_login block_admin`: This test simulates accessing the admin section with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, navigates to the login page, clicks on the "Community Examples" button again, navigates to the admin page, clicks on the "Community Examples" button again, navigates to the admin login page, and clicks on the "Community Examples" button.

These tests were added to ensure the proper functioning of the auto_login feature.
2023-10-17 21:47:13 -03:00
anovazzi1
f6d369dd7b created assets page 2023-10-17 21:47:13 -03:00
cristhianzl
bb17616d4f moving folders 2023-10-17 10:41:48 -03:00
Gabriel Luiz Freitas Almeida
2c3a36705c
Bump langchain to 0.0.312 (#1067) 2023-10-17 10:17:50 -03:00
Gabriel Luiz Freitas Almeida
8f7ebf49db 🔺 chore(pyproject.toml): update langchain dependency to version 0.0.312 for bug fixes and improvements 2023-10-17 10:16:24 -03:00
Gabriel Luiz Freitas Almeida
b8905dec6d 🔧 chore(Vectara.py): change single quotes to double quotes for consistency in source parameter value 2023-10-17 10:15:54 -03:00
Gabriel Luiz Freitas Almeida
275e10daf6 🐛 fix(base.py): make description field optional to allow for cases where no description is provided 2023-10-17 10:15:32 -03:00
Gabriel Luiz Freitas Almeida
9b36e64c57 🐛 fix(BaiduQianfanChatEndpoints.py): add type ignore comments to fix type errors
🐛 fix(BaiduQianfanLLMEndpoints.py): add type ignore comments to fix type errors
2023-10-17 10:13:49 -03:00
Gabriel Luiz Freitas Almeida
e2cf4f0234
support baidu qianfan endpoint for LLM (#1045) 2023-10-17 09:56:58 -03:00
cristhianzl
27b3b77ab0 merge fix 2023-10-17 09:38:21 -03:00
Gabriel Luiz Freitas Almeida
c3c78aab38
update of Vectara component (#1049) 2023-10-17 07:15:51 -03:00
hekai09
851da1cb4e support baidu qianfan endpoint for LLM 2023-10-17 15:22:00 +08:00
anovazzi1
c8d231c331 update make file 2023-10-16 17:29:21 -03:00
anovazzi1
466c158f15 fix(tabsContext.tsx): remove unnecessary noticeData setting when downloading a file
feat(tabsContext.tsx): change the order of arguments in addFlow function call to improve readability
feat(exportModal/index.tsx): add alertContext and setNoticeData to display a warning when saving a file with API keys
feat(exportModal/index.tsx): add a caution message to inform users about the consequences of saving with API keys
2023-10-16 13:57:12 -03:00
Gabriel Luiz Freitas Almeida
d9e69b1ba3 🔧 chore(.env.example): add LANGFLOW_AUTO_LOGIN variable to enable/disable automatic login feature 2023-10-16 09:59:43 -03:00
Gabriel Luiz Freitas Almeida
49bcadf892
Feature: Dark Mode View (#1057) 2023-10-16 09:52:24 -03:00
Gabriel Luiz Freitas Almeida
e5d6e72406
Fix: missing numexpr when using poetry to run (#1040) 2023-10-16 09:47:51 -03:00