Commit graph

12,686 commits

Author SHA1 Message Date
cristhianzl
b833746609 fix tests on CI 2024-06-26 20:58:21 -03:00
cristhianzl
b645d17c87 🔧 (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-06-26 20:30:27 -03:00
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
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
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
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
cristhianzl
dad0aa282f Merge branch 'dev' into cz/fixTestsCI 2024-06-26 12:06:00 -03: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
Gabriel Luiz Freitas Almeida
6dcdc73d5a
Rename Kubernetes deployment file to .md extension (#2374)
This pull request renames the Kubernetes deployment file to have a .md
extension instead of the previous extension. This change is made to
improve the readability and clarity of the file. No other changes are
made in this pull request.
2024-06-26 05:13:36 -07:00
Gabriel Luiz Freitas Almeida
280a49fbef chore: Rename Kubernetes deployment file to .md extension 2024-06-26 09:12:39 -03:00
Gabriel Luiz Freitas Almeida
383a98082d
Fix vertex_id assignment for group flows (#2362)
Vertex Id was not being set correctly when sorting group nodes. Now it
should be.
2024-06-26 11:49:58 +00:00
Gabriel Luiz Freitas Almeida
9923f51abd
Merge branch 'dev' into fix_group_graph 2024-06-26 04:43:32 -07:00
anovazzi1
99d32277f7
Fix condition stop (#2363)
This pull request fixes a condition in the `stop` method. Previously,
the method would raise a `ValueError` if `output_name` was not provided,
even if it was set to `None`. This pull request updates the condition to
only raise the `ValueError` if `output_name` is not provided and is not
set to `None`. This allows for more flexibility when calling the `stop`
method.
2024-06-26 11:08:01 +00:00
Gabriel Luiz Freitas Almeida
462a854445
Merge branch 'dev' into fix_self_stop 2024-06-26 04:01:42 -07:00
Gabriel Luiz Freitas Almeida
4e5a1414f7
Merge branch 'dev' into fix_group_graph 2024-06-26 04:00:59 -07:00
Gabriel Luiz Freitas Almeida
f74365e355
Add message table and update message functionality (#2290)
This pull request includes the following changes:

- Added a new table called "message" to the database, allowing for
storing and retrieving messages in the application.

- Refactored the add_messages function to use a database session for
adding messages to the monitor service, improving reliability.
2024-06-26 10:54:23 +00:00
Gabriel Luiz Freitas Almeida
a2d8b831e7
Merge branch 'dev' into fix_self_stop 2024-06-26 03:39:15 -07:00
Gabriel Luiz Freitas Almeida
4056cddd5a
Merge branch 'dev' into fix_group_graph 2024-06-26 03:39:02 -07:00
cristhianzl
b49e8dac9a ♻️ (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-06-25 22:14:17 -03:00
Gabriel Luiz Freitas Almeida
5bdd035dc3 refactor: Add field_validator for files in MessageBase model 2024-06-25 21:48:50 -03:00
Gabriel Luiz Freitas Almeida
2637e8e349
Merge branch 'dev' into migrate_monitor_to_db 2024-06-25 17:32:00 -07:00
Gabriel Luiz Freitas Almeida
51fd1cca39
Add Types & Refactor Card Components (useHooks) (#2365)
This pull request introduces two improvements:

Type Annotations for Custom Hooks: Enhances code readability and
maintainability by adding type annotations to our custom hooks. This
will improve IDE support and help catch potential errors early in the
development process.

Card Component Refactor (useHooks): Refactors card components to
leverage the useHooks pattern. This improves code organization and
potentially simplifies component logic.

These changes improve the overall codebase quality and make it easier to
understand and maintain.
2024-06-25 17:12:20 -07:00
anovazzi1
e6e2b64dce
Merge branch 'dev' into fix_self_stop 2024-06-25 20:30:59 -03:00
Gabriel Luiz Freitas Almeida
12f35f298b refactor: Update add_messages and add_messagetables functions to return Message objects 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
2065dba215 (test_messages.py): Add unit tests for message handling functions in langflow module. 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
0bfb702736 refactor: Remove unused imports and optimize get_messages function 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
69f7a9a159 refactor: Remove unused imports and test adding messages 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
76fffe5990 ♻️ (service.py): remove unused code related to adding and retrieving messages in MonitorService 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
3204af1263 📝 (memory.py): Refactor get_messages function to use SQLAlchemy select statement for better performance and readability
📝 (memory.py): Refactor delete_messages function to use SQLAlchemy delete statement for better performance and readability
📝 (monitor/schema.py): Update MessageModel to use UUID type for id and flow_id for consistency and better data handling
2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
f6d7bcfd88 chore: Update lint-js.yml to trigger checks on requested actions 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
a1afbf86cf Refactor curl command in python_test.yml to use the correct API endpoint for auto_login 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
a857375016 refactor: Remove unused imports in authContext.tsx 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
7be4f88678 refactor: ignore type error 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
22609eac70 chore: Fix issue with message timestamp conversion in MessageBase model 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
c1df05f295 refactor: Add test for adding messages 2024-06-25 20:22:58 -03:00
ogabrielluiz
cd73904095 Apply Prettier formatting 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
115f6fbb11 test: add messages tests 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
988d2cf10b fix: Refactor monitor.py messages endpoints 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
1105e61200 Refactor add_messages function to separate message addition and commit logic 2024-06-25 20:22:58 -03:00
Gabriel Luiz Freitas Almeida
8fbf026476 Fix issue with message timestamp conversion in MessageBase model 2024-06-25 20:22:57 -03:00
Gabriel Luiz Freitas Almeida
f5fec47f76 chore: Add error handling for message not found in update_message endpoint 2024-06-25 20:22:57 -03:00
anovazzi1
6d9e2e4350 format code 2024-06-25 20:22:57 -03:00
anovazzi1
35d80fe978 fix fetch data to work even with autologin true 2024-06-25 20:22:57 -03:00