Commit graph

12,770 commits

Author SHA1 Message Date
italojohnny
b99f292f1c create an abstract class for an existing class 2024-07-01 13:53:39 -03:00
dependabot[bot]
699d66037e Bump braces from 3.0.2 to 3.0.3 in /scripts/aws
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
d6998bc9ce 🔧 (typescript_test.yml): Add step to get Playwright version and cache Playwright binaries based on the version for better dependency management
🔧 (typescript_test.yml): Update job name to "Run Playwright Tests" for clarity and consistency
🔧 (typescript_test.yml): Remove unnecessary 'ref' input from 'actions/checkout' step
2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
9fb0e929e1 ⬆️ (typescript_test.yml): upgrade Poetry version from 1.8.2 to 1.8.3 for testing purposes 2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
9d8da1be69 🔧 (typescript_test.yml): update workflow trigger from workflow_dispatch to pull_request and merge_group to improve workflow automation and efficiency 2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
8c0f5ff422 Merge main into dev (#2400)
* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* Refactor "created_at" column type for consistency and fix cancel middleware (#2316)

* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* refactor: update "created_at" column type to use the "sa" module for consistency

* Update README.md

Add 1.0 banner

* chore: Remove unused import in ToolCallingAgent.py

* fix: adapt RequestCancelledMiddleware to handle cancelled requests

* chore: Remove unused import in test_helper_components.py

* refactor: Declare queue variable with explicit type in RequestCancelledMiddleware

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>

* chore: Update AstraDB.py imports and method signature for search_documents

* chore: Update package versions in pyproject.toml files

* chore: Update run-name in release.yml for Langflow Release

* fix: add call to _add_documents_to_vector_store in AstraDB component

* chore: Fix missing parentheses in RequestCancelledMiddleware

* chore: Update pydantic-settings and tenacity versions

The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.

* Update README.md

Add 1.0 banner

* fix fetch data to work even with autologin true

* format code

* deactivate stop button until we have a better solution (#2337)

* chore: Update authContext imports and remove duplicate imports

* Refactor telemetry service payload field names for consistency

* chore: Update package versions in pyproject.toml files

* chore: Update release.yml to use the correct branch for the commit

* added firecrawl integration

* chore: Rename Kubernetes documentation file to use .md extension

* components: simplify astra vectorize

* components: simplify astra vectorize

* Cassandra: support for non-AstraDB databases

* chore: Add GitHub workflows for JavaScript and Python autofix

This commit adds GitHub workflows for JavaScript and Python autofix. The JavaScript workflow is triggered on pull requests and pushes to the main branch, specifically for changes in the "src/frontend" directory. It checks out the code, sets up Node.js, caches Node.js dependencies, installs Node.js dependencies, and runs Prettier for code formatting. The Python workflow is also triggered on pull requests and pushes to the main branch, but for changes in the "poetry.lock", "pyproject.toml", "src/backend", and "tests" directories. It checks out the code, installs Ruff, and runs Mypy for type checking and code formatting.

* chore: Update GitHub workflow to run Ruff Check

* ci: always run required checks (#2395)

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com>
Co-authored-by: Nicolò Boschi <boschi1997@gmail.com>
2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
7d8fefa562 Update dockerfiles and docker-build.yml (#2389)
* chore: Update docker-build.yml to disable pre-release by default

* chore: Update Dockerfiles to set LANGFLOW_HOST and LANGFLOW_PORT

The Dockerfiles have been updated to set the environment variables LANGFLOW_HOST and LANGFLOW_PORT. This ensures that the correct host and port are used when running the langflow application.

* 🔧 (build_and_push_backend.Dockerfile): remove unnecessary host and port configuration to simplify the Dockerfile and focus on backend-only functionality

* chore: Update LANGFLOW_CONFIG_DIR in docker-compose.yml

The LANGFLOW_CONFIG_DIR environment variable in docker-compose.yml has been updated to /app/langflow. This change ensures that the correct directory is used for storing logs, file storage, monitor data, and secret keys.
2024-07-01 13:53:39 -03:00
cristhianzl
aa6618f973 fix tests on store 2024-07-01 13:53:39 -03:00
cristhianzl
b005f631bc 🔧 (tsconfig.json): rename curl_api_generation.spec.ts to curlApiGeneration.spec.ts for consistency 2024-07-01 13:53:39 -03:00
cristhianzl
5875754472 (tests): add end-to-end test for cURL API generation in curlApiGeneration.spec.ts 2024-07-01 13:53:38 -03:00
cristhianzl
9f467a8074 breaking tests to improve performance on CI 2024-07-01 13:53:38 -03:00
autofix-ci[bot]
63e6c0ab7f [autofix.ci] apply automated fixes 2024-07-01 13:53:38 -03:00
cristhianzl
9d355005d3 fix tests on textInputOutput drag handles 2024-07-01 13:53:38 -03:00
cristhianzl
e3e0c93dc0 add more shard and break store tests in 2 2024-07-01 13:53:38 -03:00
cristhianzl
6003ec7eac add store api key 2024-07-01 13:53:38 -03:00
cristhianzl
55add146fa 🔧 (typescript_test.yml): update shard configuration to include 7 shards for better distribution of tests 2024-07-01 13:53:38 -03:00
cristhianzl
f4e71f4982 (deleteComponentFlows.spec.ts): remove redundant waitFor calls and use waitForSelector for consistency 2024-07-01 13:53:38 -03:00
cristhianzl
9ea4d7f7df (chatInputOutputUser.spec.ts): update file path for image in end-to-end test 2024-07-01 13:53:38 -03:00
cristhianzl
37af161154 (typescript_test.yml): update shard configuration to include 6 shards
 (index.tsx): add data-testid attribute to checkbox component
 (basicExamples.spec.ts): add waitForSelector for send icon to improve test stability
 (chatInputOutputUser.spec.ts): add waitForSelector for send icon to improve test stability
 (deleteComponentFlows.spec.ts): add waitForSelector for various elements to improve test stability
 (generalBugs.spec.ts): add waitForSelector for send icon to improve test stability
2024-07-01 13:53:38 -03:00
cristhianzl
694fa549dd fix tests on CI 2024-07-01 13:53:38 -03:00
cristhianzl
f1aa857ae1 🔧 (typescript_test.yml): add OPENAI_API_KEY to environment variables in CI
 (basicExamples.spec.ts): refactor API key check to run at the start of tests
2024-07-01 13:53:38 -03:00
cristhianzl
c0d394fcaf moving tests 2024-07-01 13:53:38 -03:00
cristhianzl
7646d49dab 💡 (NewFlowCardComponent, undrawCards): add console.error statements for debugging flow data 2024-07-01 13:53:38 -03:00
cristhianzl
e5735fd0f4 (tests): update test selectors to use test IDs for model selection
 (tests): add waitForTimeout to ensure stability in end-to-end tests
2024-07-01 13:53:38 -03:00
cristhianzl
6a93147067 (tests): add model selection step in end-to-end tests
Add steps to select "gpt-4o" model in various end-to-end tests to ensure
consistency and accuracy in test execution.
2024-07-01 13:53:38 -03:00
cristhianzl
26e6296e9e (index.tsx): add data-testid attribute to shared button for testing
 (store.spec.ts): update test selector to use new data-testid attribute
♻️ (textInputOutput.spec.ts): refactor element selection and interaction logic for clarity and maintainability
2024-07-01 13:53:38 -03:00
cristhianzl
aa368f4798 (basicExamples.spec.ts): comment out end-to-end test steps for Vector Store RAG 2024-07-01 13:53:38 -03:00
cristhianzl
4aba86708b chore: Update shardIndex and shardTotal in TypeScript test workflow 2024-07-01 13:53:38 -03:00
cristhianzl
0433c9ea05 chore: Update Playwright test configuration for CI 2024-07-01 13:53:38 -03:00
cristhianzl
3ab5a39e14 chore: Update Playwright test configuration for CI 2024-07-01 13:53:38 -03:00
cristhianzl
a26f22d623 chore: Update Playwright test configuration for CI 2024-07-01 13:53:38 -03:00
cristhianzl
b0a4ae25dc chore: Update Playwright test configuration for CI 2024-07-01 13:53:38 -03:00
cristhianzl
aaff06316e (playwright.config.ts): update retries and workers configuration for CI
💡 (textAreaWrapper): add data-testid attribute for better test targeting
 (actionsMainPage.spec.ts): add waitForSelector for better test stability
 (basicExamples.spec.ts): replace waitForTimeout with waitForSelector
 (basicExamples.spec.ts): use data-testid for chat input for consistency
 (memoryChatbot.spec.ts): replace waitForTimeout with waitForSelector
 (memoryChatbot.spec.ts): use data-testid for chat input for consistency
 (documentQA.spec.ts): replace waitForTimeout with waitForSelector
 (documentQA.spec.ts): use data-testid for chat input for consistency
 (vectorStoreRAG.spec.ts): replace waitForTimeout with waitForSelector
 (vectorStoreRAG.spec.ts): use data-testid for chat input for consistency

 (tests): add waitForSelector to ensure elements are loaded before interaction

 (tests): add waitForSelector for 'fit view' button in end-to-end tests
2024-07-01 13:53:38 -03:00
cristhianzl
4e62f95a2a ♻️ (playwright.config.ts): increase workers from 1 to 3 to improve test parallelism
 (basicExamples.spec.ts): add waitForSelector for 'fit view' to ensure element is loaded

 (basicExamples.spec.ts): add waitForSelector for 'built successfully' to ensure element is loaded

 (chatInputOutput.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (codeAreaModalComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (dropdownComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (fileUploadComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (filterEdge.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (filterEdge.spec.ts): update test expectations for 'disclosure-agents' to be visible

 (floatComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (flowPage.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (folders.spec.ts): add waitForSelector for 'icon-ChevronLeft' to ensure element is loaded

 (folders.spec.ts): update folder name input and visibility check to improve reliability

 (generalBugs.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded

 (tests): replace waitForTimeout with waitForSelector in end-to-end tests

Replace `waitForTimeout` with `waitForSelector` to improve test reliability and reduce flakiness.
2024-07-01 13:53:38 -03:00
anovazzi1
b0e7be8de4 format code 2024-07-01 13:53:38 -03:00
igorrCarvalho
c91570554e Add blank line at the end of files 2024-07-01 13:53:38 -03:00
igorrCarvalho
6c306203c9 Refactor: refactor apiModal tabs generation to prevent bugs and enhance reliability 2024-07-01 13:53:38 -03:00
anovazzi1
dec53de46e update types 2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
e9091b9946 feat: Add default value for index field in DuckDbMessageModel
This commit adds a default value of `None` for the `index` field in the `DuckDbMessageModel` class. The default value is set using the `Field` class from the `pydantic` library, with the `default` parameter set to `None` and the `alias` parameter set to "index". This change ensures that the `index` field is optional and can be omitted when creating instances of the `DuckDbMessageModel` class.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
335cd40418 fix: webhook endpoint passes webhook input as is 2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
d1f17db404 feat: Add test for webhook with random payload 2024-07-01 13:53:38 -03:00
anovazzi1
700f09e58d update share modal style (#2361)
Refactor component to use a div instead of a span for better styling and layout

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:38 -03:00
Ítalo Johnny
d840a52377 Fix Image Display Issue on Windows by Setting a Static Path (#2382)
change string path
2024-07-01 13:53:38 -03:00
anovazzi1
19ed23a379 update message structure in frontend (#2388)
* update messages structure to new structure without index

* style: run prettier

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
4120fa7538 Add JSON Mode option to OpenAIModelComponent (#2386)
* feat: Add JSON Mode option to OpenAIModelComponent

* ♻️ (OpenAIModel.py): add type ignore comment

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
4ee8698533 Refactor Graph class to consider inactivated vertices in is_vertex_runnable and find_runnable_predecessors_for_successors 2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
fb3c61f3b3 chore: Refactor RunnableVerticesManager to consider inactivated vertices in is_vertex_runnable and find_runnable_predecessors_for_successors 2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
c3393b5ee5 chore: makes sure end_all_traces run concurrently 2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
b57880742d chore: update lock 2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
2161fa5c08 chore: Set default value for ttl_seconds to None in CassandraVectorStoreComponent 2024-07-01 13:53:38 -03:00