Commit Graph

14682 Commits

Author SHA1 Message Date
ebfce9d8ea feat: add optional env var to skip starter project updates (#5193)
* Add optional env var to skip starter project updates

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-11 12:24:39 +00:00
5b29c32570 test: Add test IDs and improve UI wait handling in frontend tests (#5188)
📝 (header/index.tsx): add data-testid attribute to new-project-btn button for testing purposes
📝 (dragAndDrop.spec.ts): add comments and improve readability of the test code
📝 (lock-flow.spec.ts): add comments and improve readability of the test code, ensure UI updates are properly handled
2024-12-10 18:59:08 +00:00
db33b15ade fix: changed truncation style for big folder and flow names on header (#5106)
Fix truncation and add width relation between name and folder name
2024-12-10 16:23:43 +00:00
22d8ac1da8 test: enhance drag-and-drop reliability and update test asset paths (#5186)
 (dragAndDrop.spec.ts): Update file paths for drag and drop tests to use the correct directory structure
🐛 (generalBugs-shard-12.spec.ts): Adjust mouse movement coordinates to fix drag and drop functionality
🐛 (generalBugs-shard-12.spec.ts): Update drag and drop logic to use hover and click actions for better test accuracy
🐛 (generalBugs-shard-3.spec.ts): Modify adjustScreenView function to include zoom level parameter for better control
🐛 (generalBugs-shard-3.spec.ts): Add missing waitForSelector for fit_view element to ensure visibility before clicking
🐛 (generalBugs-shard-7.spec.ts): Reduce timeout for blank-flow element to improve test speed
🐛 (generalBugs-shard-7.spec.ts): Add waitForSelector for fit_view and zoom_out elements to ensure visibility before interacting with them
2024-12-10 15:45:18 +00:00
152ed8bb54 refactor(openai): Remove deprecated parameters from OpenAI component (#5171)
* refactor(openai): remove deprecated output_schema and redundant output_parser parameters

* refactor(openai): remove output_schema and output_parser parameters

Following @ogabrielluiz's review feedback to properly handle removed inputs:

1. Remove output_schema parameter:
   - Remove from inputs list
   - Remove output_schema_dict conversion in build_model
   - Remove output_schema_dict usage in json_mode logic
   - Remove output_schema_dict usage in structured_output

2. Remove output_parser parameter:
   - Remove from inputs list (no code references to clean up as it wasn't being used)

This ensures we don't have any lingering references to removed parameters.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-10 14:45:32 +00:00
c39515065b fix: narrow version ranges for project dependencies (#5005) 2024-12-10 10:35:44 +00:00
fe6ec1690b ref: Make create_or_update_starter_projects async (#5165)
Make create_or_update_starter_projects async
2024-12-10 07:51:35 +00:00
63bdcb9d03 ref: Make initialize_database async (#5163)
Make initialize_database async
2024-12-10 07:44:34 +01:00
e545d12c40 fix: Use anyio for file operations in a few places (#5167)
Use anyio for file operations in a few places
2024-12-10 01:55:42 +00:00
6f5b984a22 fix: add load_from_db to all agents (#5170) 2024-12-09 23:50:08 +00:00
d4efcaa9ba feat: add tool mode to AstraDB search input and enable AstraDB as a vector search Tool (#5075)
adding tool mode to Search input of AstraDB
2024-12-09 18:26:14 -05:00
ab68e13493 test: Add utility functions to streamline test setup and improve maintainability (#5168)
* change tests to use utils libs

* 🔧 (frontend): add data-testid attribute to buttons in baseModal and secretKeyModal components
🔧 (frontend): add data-testid attribute to buttons in various test files for improved testing
🔧 (frontend): refactor awaitBootstrapTest function to remove skipNewFlow option and improve modal handling

*  (userSettings.spec.ts): add a 1-second timeout before checking for the "Please save" text to ensure it is rendered on the page before interacting with it

*  (userSettings.spec.ts): add comment to clarify waiting for API key creation to complete before proceeding to the next form element

*  (freeze-path.spec.ts): refactor adjustScreenView function to accept a parameter for the number of zoom outs to perform, improving flexibility and reusability in test scenarios.
🔧 (freeze-path.spec.ts): replace adjustScreenView function with initialGPTsetup function for setting up initial GPT configuration in the test scenario.
2024-12-09 20:30:56 +00:00
240e5790f4 chore(ui): add text-foreground class to NodeStatus build element (#5162)
* 📝 (NodeStatus/index.tsx): add text-foreground class to span element to improve text styling in build status section

*  (NodeStatus/index.tsx): improve styling and readability by adding flex and text-foreground classes to status elements

*  (build-status-display.tsx): Add a new component 'BuildStatusDisplay' to improve code organization and readability in the NodeStatus component.
📝 (index.tsx): Refactor NodeStatus component to use the new 'BuildStatusDisplay' component for displaying build status, validation details, and last run time. This change enhances code maintainability and reduces duplication.
2024-12-09 20:13:28 +00:00
a07907f695 fix: make sending a message not change the value of chatinput node (#5103)
Removed attribution of message sent to the Chat Input node
2024-12-09 19:38:25 +00:00
dc0291fa8f fix: make chatinput text appear on playground only if no sessions are present (#5117)
Changed newChatView to only set chat value if no messages are present on the flow

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2024-12-09 18:37:14 +00:00
b3e06aa215 Refactor: add data test id and improve wait times for element selectors in regression tests (#5138)
* fix: Improve wait times for element selectors in regression tests

* refactor: add data test id
2024-12-09 16:49:10 +00:00
65ec6fd1e1 refactor: Improve wait times and visibility checks in userSettings.spec.ts (#5120)
* refactor: Improve wait times and visibility checks in userSettings.spec.ts
2024-12-09 16:40:22 +00:00
b692ef7848 fix: Execute event manager callbacks in asyncio thread (#5150)
Execute event manager callbacks in asyncio thread
2024-12-09 16:23:02 +00:00
bb703f6e0d refactor: Improve page loading and element visibility in regression tests (#5134)
* fix: Improve page loading and element visibility in regression tests
2024-12-09 16:10:17 +00:00
f673630fd4 Refactor: Improve wait times and selectors in sticky-notes.spec.ts (#5100)
* refactor: Improve wait times and selectors in sticky-notes.spec.ts
2024-12-09 16:01:12 +00:00
c6ddb2905f Refactor: update NodeDescription component to conditionally render character limit message (#5037)
* Refactor: Update NodeDescription component to conditionally render a character limit message

* [autofix.ci] apply automated fixes

* Refactor: update NoteNode inputClassName to remove unnecessary ring and focus styles (#5038)

refactor: Update NoteNode inputClassName to remove unnecessary ring and focus styles
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2024-12-09 15:44:32 +00:00
2c01cd5195 refactor: Remove unnecessary code for handling Enter (#5041)
refactor: Remove unnecessary code for handling Enter key in NodeDescription component

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2024-12-09 15:34:40 +00:00
4a4806d638 Refactor: Remove unnecessary code and comments in integration-side-bar.spec.ts (#5073)
fix: Remove unnecessary code and comments in integration-side-bar.spec.ts
2024-12-09 05:04:37 -08:00
d58530c358 feat: Activate blockbuster Lock.aquire detection (#5157)
Activate blockbuster Lock.aquire detection

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-12-09 04:59:50 -08:00
267c08bc07 fix(Dockerfile): standardize casing for 'FROM' and 'AS' keywords (#5159)
- Updated the Dockerfile to use consistent uppercase casing for 'FROM' and 'AS'.
- Resolved 'FromAsCasing' warnings that were flagged during the Docker build.
- Improves readability and adheres to Dockerfile best practices.

This change ensures a cleaner build process with no warnings.
2024-12-09 04:47:59 -08:00
c9bedb21c9 refactor: Improve wait time for modals and elements in regression tests (#5141)
* feat: Improve wait time for modals and elements in regression tests

- Increase the timeout for waiting for modals and elements in regression tests to 3000ms.
- Replace the usage of `waitForTimeout` with `waitForSelector` for better reliability.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-09 12:18:57 +00:00
9fb59855a3 fix: Fix to_frontend_node modifying input components (#5116)
Fix to_frontend_node modifying input components
2024-12-09 11:09:17 +00:00
abf38e96e2 feat: Add sqlite to blocking call detection (#4376) 2024-12-09 11:48:48 +01:00
c0b25fa651 ref: Remove some useless asyncio.to_thread (#5149)
Remove some useless asyncio.to_thread
2024-12-08 20:13:08 +01:00
0b39554795 ref: Apply ruff rule RUF052 (#5089)
Apply ruff rule RUF052
2024-12-08 11:51:02 +00:00
60b1927cc5 ref: Apply ruff rule TC006 (#5088)
Apply ruff rule TC006
2024-12-08 11:35:00 +00:00
2f0c67e851 ref: Bump ruff version to 0.8 (#5087) 2024-12-08 11:16:06 +00:00
b98614ca5b ref: Apply ruff rules FURB110 and RUF046 (#5093)
Apply rules FURB110 and RUF046
2024-12-08 11:05:07 +00:00
9270f1a0f8 ref: Remove sync get_session and DbSession (#5146)
Remove sync get_session and DbSession
2024-12-08 10:27:19 +00:00
d338a3e86f Refactor: Remove unnecessary wait times in store-shard-0.spec.ts (#5105) 2024-12-08 01:30:55 +00:00
624a2dde5d ref: Use AsyncSession in some tests (#5151) 2024-12-08 01:09:43 +00:00
f97a326023 Refactor: Improve wait times and visibility checks in store-shard-3.spec.ts (#5108)
* Refactor: Improve wait times and visibility checks in store-shard-3.spec.ts
2024-12-07 21:44:13 -03:00
b682a26c26 Refactor: Improve wait times and visibility checks in twoEdges.spec.ts (#5109) 2024-12-07 17:05:31 +00:00
c26a2d82e8 Refactor: Improve wait times in regression test (#5137)
* fix: Improve wait times in regression test

Improve the wait times in the regression test to ensure that the necessary elements are loaded before interacting with them. This prevents potential timing issues and improves the reliability of the test.

Refactor the test code to use `waitForSelector` instead of `waitForTimeout` to wait for the modal title and sidebar custom component button to appear. Increase the timeout for the sidebar custom component button to 30 seconds to allow for slower loading times.

Also, add a comment to indicate that the wait for the animation to propagate is intentional.

This commit addresses the issues identified in the regression test and improves the overall stability of the test suite.
2024-12-07 16:54:27 +00:00
d55b405a6c refactor: Remove unnecessary wait timeouts in chatInputOutputUser-shard-2.spec.ts (#5127)
* chore: Remove unnecessary wait timeouts in chatInputOutputUser-shard-2.spec.ts
2024-12-07 15:30:48 +00:00
aa7ebb4ae3 Refactor: remove timeouts from generalbugs-shard10 (#5140)
remove timeouts from generalbugs-shard10
2024-12-07 15:18:44 +00:00
979aaa7cae refactor: Remove unnecessary wait for timeout in Travel Planning Agent test (#5143)
* refactor: Remove unnecessary wait for timeout in Travel Planning Agent test
2024-12-07 14:54:27 +00:00
7114061f67 refactor: Improve page loading and element visibility in regression tests (#5136)
fix: Improve page loading and element visibility in regression tests
2024-12-07 04:14:08 +00:00
6d252d34c6 Refactor: improve YouTube Transcripts integration tests (#5129)
fix: improve YouTube Transcripts integration tests

Improve the integration tests for the YouTube Transcripts feature by adding explicit wait conditions for modals and elements. This ensures that the tests are more reliable and less prone to timing issues.
2024-12-07 03:43:23 +00:00
47d7004fc0 Refactor: Improve test stability and reliability (#5135)
fix: Improve test stability and reliability

Improve the stability and reliability of the tests in the generalBugs-shard-2.spec.ts file.
- Use waitForSelector instead of waitForTimeout to ensure that the modal and data elements are present before proceeding.
- Increase the timeout value to 3000 milliseconds for better reliability.
- Add a comment to indicate the purpose of the timeout.

This commit addresses the issue of intermittent failures in the tests and enhances the overall test stability.
2024-12-07 03:19:17 +00:00
39335a7e47 refactor: Improve flow creation and search performance in test (#5139)
feat: Improve flow creation and search functionality

Improve the flow creation and search functionality by adding explicit wait conditions for modals and search results. This ensures that the necessary elements are loaded before interacting with them, preventing potential errors or timeouts.

Refactor the code in the 'generalBugs-shard-8.spec.ts' file to include the following changes:
- Add a timeout of 3000ms for the modal title selector
- Add a timeout of 3000ms for the dataAPI request selector

These changes enhance the reliability and stability of the tests in the 'generalBugs-shard-8.spec.ts' file.
2024-12-07 03:07:28 +00:00
589358a7bd Refactor: Improve wait times and visibility checks in stop-button-playground.spec.ts (#5104)
* Refactor: Improve wait times and visibility checks in stop-button-playground.spec.ts
2024-12-07 02:57:04 +00:00
5c8bab57f1 Refactor: improve starter project modal test (#5098)
Refactor: Add search input for templates in TemplateContentComponent
2024-12-07 02:47:30 +00:00
fa2ac6b9f0 Refactor: update remove unnecessary wait timeouts in regression test (#5132)
* refactor: Remove unnecessary wait timeouts in regression test
2024-12-07 02:36:50 +00:00
56bcb85e03 fix: Improve test and add improve timeouts (#5142)
* fix: Improve  test and add missing timeouts

The test in the generalBugs-shard-13.spec.ts file was improved to include missing timeouts for better stability and reliability.
2024-12-07 02:25:40 +00:00