Commit graph

12,764 commits

Author SHA1 Message Date
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
Gabriel Luiz Freitas Almeida
cf7776462e chore: Import firecrawl integration package in FirecrawlCrawlApi and FirecrawlScrapeApi
This commit imports the firecrawl integration package in the FirecrawlCrawlApi and FirecrawlScrapeApi files. It ensures that the package is available for use in the code. If the package is not installed, an ImportError is raised with instructions to install it using `pip install firecrawl-py`.
2024-07-01 13:53:38 -03:00
autofix-ci[bot]
19b05af8d0 [autofix.ci] apply automated fixes (attempt 2/3) 2024-07-01 13:53:38 -03:00
autofix-ci[bot]
a58f15a97b [autofix.ci] apply automated fixes 2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
6428ef7f67 refactor: Update DuckDbMessageModel import in monitor service
This commit updates the import statement for the `DuckDbMessageModel` class in the `monitor/service.py` file. The import is modified to reflect the recent changes made to the `monitor/schema.py` file, where the `DuckDbMessageModel` class was added. This update ensures that the correct class is imported and used in the `add_row` method of the `MonitorService` class.
2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
d633e64439 refactor: Add index field to DuckDbMessageModel in monitor schema
This commit adds the `index` field to the `DuckDbMessageModel` class in the `monitor/schema.py` file. The `index` field is of type `int` and is used to store the index value for the message. This modification enhances the schema of the `DuckDbMessageModel` and allows for more efficient querying and sorting of messages based on their index.
2024-07-01 13:53:38 -03:00
Gabriel Luiz Freitas Almeida
6921d61300 refactor: Remove error handling for migrating messages from monitor service to database 2024-07-01 13:53:38 -03:00