Commit graph

12,775 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
63ddf8e20c
Bump braces from 3.0.2 to 3.0.3 in /scripts/aws (#2131)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to
3.0.3.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="74b2db2938"><code>74b2db2</code></a>
3.0.3</li>
<li><a
href="88f1429a0f"><code>88f1429</code></a>
update eslint. lint, fix unit tests.</li>
<li><a
href="415d660c30"><code>415d660</code></a>
Snyk js braces 6838727 (<a
href="https://redirect.github.com/micromatch/braces/issues/40">#40</a>)</li>
<li><a
href="190510f79d"><code>190510f</code></a>
fix tests, skip 1 test in test/braces.expand</li>
<li><a
href="716eb9f12d"><code>716eb9f</code></a>
readme bump</li>
<li><a
href="a5851e57f4"><code>a5851e5</code></a>
Merge pull request <a
href="https://redirect.github.com/micromatch/braces/issues/37">#37</a>
from coderaiser/fix/vulnerability</li>
<li><a
href="2092bd1fb1"><code>2092bd1</code></a>
feature: braces: add maxSymbols (<a
href="https://github.com/micromatch/braces/issues/">https://github.com/micromatch/braces/issues/</a>...</li>
<li><a
href="9f5b4cf473"><code>9f5b4cf</code></a>
fix: vulnerability (<a
href="https://security.snyk.io/vuln/SNYK-JS-BRACES-6838727">https://security.snyk.io/vuln/SNYK-JS-BRACES-6838727</a>)</li>
<li><a
href="98414f9f1f"><code>98414f9</code></a>
remove funding file</li>
<li><a
href="665ab5d561"><code>665ab5d</code></a>
update keepEscaping doc (<a
href="https://redirect.github.com/micromatch/braces/issues/27">#27</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/micromatch/braces/compare/3.0.2...3.0.3">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=braces&package-manager=npm_and_yarn&previous-version=3.0.2&new-version=3.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/langflow-ai/langflow/network/alerts).

</details>
2024-06-27 18:51:07 +00:00
Gabriel Luiz Freitas Almeida
5ccb67ed87
Merge branch 'dev' into dependabot/npm_and_yarn/scripts/aws/braces-3.0.3 2024-06-27 11:32:45 -07:00
anovazzi1
6d8c9cbe18
Refactor: refactor apiModal tabs generation to prevent bugs and enhance reliability (#2393)
This PR refactors the logic for generating tabs in the API modal. The
changes aim to improve code readability and maintainability, prevent
potential bugs, and enhance the overall reliability of the modal's
functionality.
2024-06-27 15:43:04 +00:00
anovazzi1
8362187107
Merge branch 'dev' into fixHook 2024-06-27 12:30:21 -03:00
anovazzi1
c7605099f7 format code 2024-06-27 12:28:54 -03:00
Gabriel Luiz Freitas Almeida
adb674355a
Reactivate frontend tests (#2403)
🔧 (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-06-27 13:33:15 +00:00
Gabriel Luiz Freitas Almeida
839e547511
feat: update tests to work on Github Actions CI (#2366)
### Description
Updating tests to function correctly on GitHub Actions CI environment.

### Changes Made
- Updated test scripts and configurations to align with GitHub Actions
CI requirements.
- Ensured all tests pass successfully in the GitHub Actions CI workflow.

### Reason for Changes
To ensure continuous integration (CI) pipelines run smoothly and tests
are executed properly within GitHub Actions.
2024-06-27 13:30:34 +00:00
Gabriel Luiz Freitas Almeida
7b12a4b3be 🔧 (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-06-27 09:56:08 -03:00
Gabriel Luiz Freitas Almeida
f2fa0be2d0 ⬆️ (typescript_test.yml): upgrade Poetry version from 1.8.2 to 1.8.3 for testing purposes 2024-06-27 09:54:00 -03:00
Gabriel Luiz Freitas Almeida
c3d84dd50d 🔧 (typescript_test.yml): update workflow trigger from workflow_dispatch to pull_request and merge_group to improve workflow automation and efficiency 2024-06-27 09:53:39 -03:00
Gabriel Luiz Freitas Almeida
cfa59a1d52
Merge branch 'dev' into cz/fixTestsCI 2024-06-27 05:08:58 -07:00
Gabriel Luiz Freitas Almeida
f499e257f9
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-06-27 05:06:10 -07:00
Gabriel Luiz Freitas Almeida
0e7f4ff37c
Merge branch 'dev' into cz/fixTestsCI 2024-06-27 04:33:29 -07:00
Gabriel Luiz Freitas Almeida
e7f1b9c881
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-06-27 04:24:35 -07:00
igorrCarvalho
84e867ba23 Add blank line at the end of files 2024-06-27 02:21:05 -03:00
igorrCarvalho
1eee6d9e37 Refactor: refactor apiModal tabs generation to prevent bugs and enhance reliability 2024-06-27 02:17:15 -03:00
cristhianzl
2957ec0553 fix tests on store 2024-06-27 01:06:19 -03:00
cristhianzl
0cf7b2e192 🔧 (tsconfig.json): rename curl_api_generation.spec.ts to curlApiGeneration.spec.ts for consistency 2024-06-27 00:45:27 -03:00
cristhianzl
90c7c4940c (tests): add end-to-end test for cURL API generation in curlApiGeneration.spec.ts 2024-06-27 00:38:54 -03:00
cristhianzl
f147eeaa06 breaking tests to improve performance on CI 2024-06-27 00:35:57 -03:00
autofix-ci[bot]
6dc135fdb0
[autofix.ci] apply automated fixes 2024-06-27 03:01:57 +00:00
cristhianzl
c53c030a70 fix tests on textInputOutput drag handles 2024-06-27 03:00:47 -03:00
cristhianzl
65ea7bede3 Merge branch 'cz/fixTestsCI' of https://github.com/logspace-ai/langflow into cz/fixTestsCI 2024-06-27 02:57:20 -03:00
cristhianzl
f26ba492a4 add more shard and break store tests in 2 2024-06-27 02:57:02 -03:00
cristhianzl
45578b6c81 add store api key 2024-06-27 02:36:53 -03:00
Cristhian Zanforlin Lousa
00f6bea71b
Merge branch 'dev' into cz/fixTestsCI 2024-06-26 23:45:52 -03:00
cristhianzl
68780e468f 🔧 (typescript_test.yml): update shard configuration to include 7 shards for better distribution of tests 2024-06-26 22:41:02 -03:00
cristhianzl
9623a3b7fd (deleteComponentFlows.spec.ts): remove redundant waitFor calls and use waitForSelector for consistency 2024-06-26 22:40:02 -03:00
cristhianzl
94dbb96fe6 (chatInputOutputUser.spec.ts): update file path for image in end-to-end test 2024-06-26 22:29:11 -03:00
cristhianzl
922711740c (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-06-26 22:22:51 -03:00
anovazzi1
aafee41c4b update types 2024-06-26 21:16:56 -03:00
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
Gabriel Luiz Freitas Almeida
96665b2bfe
feat: add logic to migrate from duckdb table to database (#2385)
This PR adds a function that migrates any data in the duckdb messages
table to the message table in the database.
2024-06-26 23:03:17 +00:00
Gabriel Luiz Freitas Almeida
00a753631c 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-06-26 19:56:21 -03:00
github-actions[bot]
b11e3519cf
Merge branch 'dev' into migrate_message_table 2024-06-26 22:55:49 +00:00
Gabriel Luiz Freitas Almeida
7d1977ea90
Merge branch 'dev' into migrate_message_table 2024-06-26 15:48:26 -07:00
anovazzi1
182d9e1951
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-06-26 15:47:49 -07:00
Gabriel Luiz Freitas Almeida
120e4994d4
Fix webhook endpoint not receiving data that is not JSON (#2390)
This PR makes sure webhook can take any type of input.
2024-06-26 22:46:17 +00:00
Ítalo Johnny
5d06cf7115
Fix Image Display Issue on Windows by Setting a Static Path (#2382)
change string path
2024-06-26 15:41:29 -07:00
anovazzi1
d0a930e944
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-06-26 15:34:31 -07:00
Gabriel Luiz Freitas Almeida
1ce9872e98 fix: webhook endpoint passes webhook input as is 2024-06-26 19:31:16 -03:00
Gabriel Luiz Freitas Almeida
e71bc64539 feat: Add test for webhook with random payload 2024-06-26 19:30:31 -03:00
Gabriel Luiz Freitas Almeida
a81f686c39
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-06-26 15:02:32 -07:00
Gabriel Luiz Freitas Almeida
2094b6b10a
Merge branch 'main' into dev (#2384)
Merges changes from main to the dev branch.
2024-06-26 15:00:53 -07:00
github-actions[bot]
6bde501b8e
Merge branch 'dev' into merge_main 2024-06-26 21:59:55 +00:00
Gabriel Luiz Freitas Almeida
755a30a260
fix: Refactor RunnableVerticesManager to consider inactivated vertices in is_vertex_runnable and find_runnable_predecessors_for_successors (#2378)
Fixes an error where inactivated components would be considered
runnable.
2024-06-26 14:59:44 -07:00
github-actions[bot]
a2a5351a4b
Merge branch 'dev' into verify_stop_flow 2024-06-26 21:55:05 +00:00
github-actions[bot]
45329c310e
Merge branch 'dev' into merge_main 2024-06-26 21:55:04 +00:00
Gabriel Luiz Freitas Almeida
1a01942520
chore: make calls to end_all_traces run concurrently (#2387)
This PR makes so that end_all_traces does not block execution.
2024-06-26 21:47:56 +00:00