Commit graph

13,616 commits

Author SHA1 Message Date
cristhianzl
6e16a6e83b moving tests 2024-06-26 17:48:12 -03:00
cristhianzl
4e35645dfe 💡 (NewFlowCardComponent, undrawCards): add console.error statements for debugging flow data 2024-06-26 17:46:56 -03:00
Gabriel Luiz Freitas Almeida
04b1ce8b16 refactor: Update migrate_messages_from_monitor_service_to_database function in utils.py
This commit refactors the migrate_messages_from_monitor_service_to_database function in utils.py to correctly handle the session_id parameter. The session_id is now included in the key used to filter out messages that already exist in the database, ensuring that duplicate messages are not inserted. This improves the data integrity and consistency of the database.
2024-06-26 17:39:45 -03:00
Gabriel Luiz Freitas Almeida
93ce1ab14e refactor: Update from_message method in MessageBase model to accept UUID as flow_id parameter 2024-06-26 17:38:23 -03:00
Gabriel Luiz Freitas Almeida
34a88f5088 add type ignore 2024-06-26 17:38:17 -03:00
Gabriel Luiz Freitas Almeida
e6b42d3a60 ♻️ (utils.py): ignore type error 2024-06-26 17:35:59 -03:00
Gabriel Luiz Freitas Almeida
8e466b83ba feat: Add field validation for flow_id in MessageTable model
This commit adds field validation for the `flow_id` attribute in the `MessageTable` model. The `validate_flow_id` class method is implemented to ensure that the `flow_id` value is either `None` or a valid UUID. This validation helps maintain data integrity and consistency when working with the `MessageTable` model.
2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
1341860dea Refactor test_get_messages function to use list comprehension 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
3afda401f3 chore: Update filterwarnings in pyproject.toml 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
4b4aefc8bc feat: Migrate messages from monitor service to database 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
86f25f3b2c feat: Add flow_id serialization in Message class
This commit adds the `serialize_flow_id` method to the `Message` class in the `message.py` file. This method serializes the `flow_id` attribute of a `Message` object, converting it to a UUID if it is a string. This ensures consistent serialization of the `flow_id` attribute when working with the `Message` class.
2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
5ff9bed407 Migrate messages from monitor service to database 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
347ec56598 feat: Add flow_id assignment in MessageBase constructor 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
bb7f365ccd chore: Update schema and service files for DuckDbMessageModel 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
ee4ace8bfe feat: Migrate messages from monitor service to database
This commit migrates messages from the monitor service to the database. It adds a new function `migrate_messages_from_monitor_service_to_database` in the `utils.py` file, which retrieves messages from the monitor service, adds them to the database, and deletes them from the monitor service. This migration ensures that messages are stored in the database for better reliability and retrieval.
2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
4a6d661d1e chore: update lock 2024-06-26 16:52:19 -03:00
Gabriel Luiz Freitas Almeida
79a4cce9a4 chore: Set default value for ttl_seconds to None in CassandraVectorStoreComponent 2024-06-26 16:51:33 -03:00
Gabriel Luiz Freitas Almeida
a4953c6f4f 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-06-26 16:51:25 -03:00
autofix-ci[bot]
92edf1aad2
[autofix.ci] apply automated fixes (attempt 2/3) 2024-06-26 19:31:25 +00:00
autofix-ci[bot]
7bd03336bf
[autofix.ci] apply automated fixes 2024-06-26 19:29:41 +00:00
Gabriel Luiz Freitas Almeida
68c4485770 Merge branch 'main' into dev 2024-06-26 16:28:45 -03:00
cristhianzl
b68d3c57dc (tests): update test selectors to use test IDs for model selection
 (tests): add waitForTimeout to ensure stability in end-to-end tests
2024-06-26 16:23:27 -03:00
cristhianzl
8153c863e6 (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-06-26 16:11:37 -03:00
github-actions[bot]
f86e101d72
Merge branch 'dev' into fixGroupLogs 2024-06-26 18:52:41 +00:00
github-actions[bot]
bf5d4e9c46
Merge branch 'dev' into verify_stop_flow 2024-06-26 18:52:40 +00:00
anovazzi1
a471c671d7
Fix flow settings validation and save button (#2360)
This pull request fixes the validation and save button behavior in the
flow settings modal. Previously, the save button was not disabled when
it should have been, and the endpoint name validation was not working
correctly. This PR updates the validation logic and ensures that the
save button is disabled when necessary.
2024-06-26 18:45:03 +00:00
anovazzi1
6c3295ae8e
Merge branch 'dev' into fixGroupLogs 2024-06-26 15:38:33 -03:00
anovazzi1
c6afb0f999
Merge branch 'dev' into fixFlowSettings 2024-06-26 15:38:04 -03:00
cristhianzl
ca62f1a31f (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-06-26 15:27:58 -03:00
cristhianzl
2ede00b668 (basicExamples.spec.ts): comment out end-to-end test steps for Vector Store RAG 2024-06-26 14:56:17 -03:00
cristhianzl
c820b9c81a chore: Update shardIndex and shardTotal in TypeScript test workflow 2024-06-26 13:54:13 -03:00
cristhianzl
cf963c7ca0 chore: Update Playwright test configuration for CI 2024-06-26 13:30:42 -03:00
cristhianzl
7a871d6534 chore: Update Playwright test configuration for CI 2024-06-26 13:24:55 -03:00
github-actions[bot]
a088363260
Merge branch 'dev' into verify_stop_flow 2024-06-26 16:06:27 +00:00
Gabriel Luiz Freitas Almeida
fde56d107a
chore: Add auto-update workflow (#2376)
The auto-update workflow has been added to the repository. This workflow
will automatically trigger on pushes to the `dev` and `main` branches.
It runs on the latest version of Ubuntu and uses the
`tibdex/auto-update@v2` action to perform the auto-update process.
2024-06-26 09:06:17 -07:00
cristhianzl
fe6f4134a3 chore: Update Playwright test configuration for CI 2024-06-26 12:32:34 -03:00
cristhianzl
d66d9e3e62 chore: Update Playwright test configuration for CI 2024-06-26 12:31:17 -03:00
Gabriel Luiz Freitas Almeida
7af8b6bd9f
Add GitHub workflows for JavaScript and Python autofix (#2381)
This pull request adds GitHub workflows for JavaScript and Python
autofix. The JavaScript workflow is triggered on pull requests and
pushes to the main branch for changes in the "src/frontend" directory.
It 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 for
changes in the "poetry.lock", "pyproject.toml", "src/backend", and
"tests" directories. It installs Ruff and runs Mypy for type checking
and code formatting.
2024-06-26 08:13:10 -07:00
Gabriel Luiz Freitas Almeida
8456d58d9d
Merge branch 'main' into fix_ref_main 2024-06-26 08:12:02 -07:00
Gabriel Luiz Freitas Almeida
070df4d302
Cassandra: support for non-AstraDB databases (#2380)
* Added support for Contact points
* Reworded some parameters depending on astra / local cassandra usage
* Added username

Successor of https://github.com/langflow-ai/langflow/pull/2206 but with
the new framework
2024-06-26 08:11:22 -07:00
Gabriel Luiz Freitas Almeida
707ed18ca5
Merge branch 'main' into dse 2024-06-26 08:10:56 -07:00
Gabriel Luiz Freitas Almeida
1935a7b2d6
components: simplify astra vectorize (#2370)
* Add ProviderKey as text field since it's the only auth entry available
today
* Hide authentication and external key as advanced fields
* Make provider name and model required
* Make provider as dropdown
* Add complete list of models in the help (better to not hardcode models
for now)
2024-06-26 08:10:15 -07:00
Gabriel Luiz Freitas Almeida
12c3e53e42 chore: Update GitHub workflow to run Ruff Check 2024-06-26 12:09:02 -03:00
Gabriel Luiz Freitas Almeida
fc9401c195 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.
2024-06-26 12:09:02 -03:00
cristhianzl
dad0aa282f Merge branch 'dev' into cz/fixTestsCI 2024-06-26 12:06:00 -03:00
rodrigosnader
ec36acdff2 Apply Ruff formatting 2024-06-26 15:03:14 +00:00
Rodrigo
63dd58c639 Update StoreMessageComponent for enhanced message handling 2024-06-26 12:02:18 -03:00
Nicolò Boschi
5130c67e4a Cassandra: support for non-AstraDB databases 2024-06-26 16:57:18 +02:00
cristhianzl
326353cb6d (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-06-26 11:47:48 -03:00
rodrigosnader
acccbee690 Apply Ruff formatting 2024-06-26 14:13:47 +00:00