Commit graph

6,039 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
2f95e13026 ⬆️ chore(pyproject.toml): update types-python-jose and types-passlib versions to their latest versions for compatibility and bug fixes 2023-08-16 21:44:09 -03:00
Gabriel Luiz Freitas Almeida
87958c255e 🐛 fix(endpoints.py): change type annotation of session_id parameter in process_flow function to Union[None, str] to allow for None value
🐛 fix(schemas.py): change type annotation of session_id field in ProcessResponse schema to Optional[str] to allow for None value
🐛 fix(run.py): change return type annotation of build_sorted_vertices_with_caching function to Tuple[Any, Dict] to specify the return types
🐛 fix(process.py): change return type annotation of load_langchain_object function to Tuple[Union[Chain, VectorStore], Dict[str, Any], str] to include the session_id value in the return tuple
2023-08-16 21:43:35 -03:00
Gabriel Luiz Freitas Almeida
8ff739a288 🚀 feat(test_process.py): add tests for loading langchain object with and without cached session
🐛 fix(test_process.py): import missing functions and modules to fix test failures
2023-08-16 21:30:07 -03:00
Gabriel Luiz Freitas Almeida
199ea3b1b8 🔧 fix(process.py): refactor process_graph_cached function for better readability and maintainability
 feat(process.py): add clear_caches_if_needed function to clear cache if clear_cache flag is set
 feat(process.py): add load_langchain_object function to load langchain_object and artifacts from data_graph
 feat(process.py): add process_inputs function to process inputs and add artifacts to inputs
 feat(process.py): add generate_result function to generate result and thought based on langchain_object and inputs
2023-08-16 21:29:17 -03:00
Gabriel Luiz Freitas Almeida
2f928c7d84 Merge remote-tracking branch 'origin/dev' into add_session_id 2023-08-16 19:31:29 -03:00
Gabriel Luiz Freitas Almeida
be4f949e70 📦 chore(deploy): add .gitignore file to ignore 'pgadmin' directory in the deploy folder 2023-08-16 19:27:26 -03:00
Gabriel Luiz Freitas Almeida
97ad9889be Merge remote-tracking branch 'origin/dev' into celery 2023-08-16 19:26:06 -03:00
Gabriel Luiz Freitas Almeida
479db46fcf
Changes default database_url to a cache folder (#771) 2023-08-16 22:22:53 +00:00
Gabriel Luiz Freitas Almeida
7539ba3166 Merge remote-tracking branch 'origin/dev' into fix_db_location 2023-08-16 19:21:47 -03:00
Gabriel Luiz Freitas Almeida
c2cfcafc17 🐛 fix(Dockerfile): change order of COPY commands to improve build caching and efficiency
🐛 fix(exportModal/index.tsx): add state for invalidName to handle validation of name field
2023-08-16 19:20:24 -03:00
Cristhian Zanforlin Lousa
96330d6064 Merge branch 'login-auth' of https://github.com/logspace-ai/langflow into login-auth 2023-08-16 18:41:46 -03:00
Cristhian Zanforlin Lousa
ad8cbddd91 📦 chore(frontend): add moment package as a dependency to handle date and time formatting
🐛 fix(headerComponent): add onClick event handler to navigate to "/account/api-keys" when button is clicked

🐛 fix(API): add missing API functions for getting, creating, and deleting API keys

🐛 fix(SecretKeyModal): add functionality to create a new API key and set the value in the input field

🔧 fix(ApiKeysPage): remove unused imports and refactor code to improve readability and performance
 feat(ApiKeysPage): add support for fetching and displaying API keys for the logged-in user
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables
2023-08-16 18:41:40 -03:00
anovazzi1
2a4668d90d
Types refactor (#659)
This pull request aims to perform a comprehensive type refactor across
the project, enhancing type safety and improving code clarity. The
changes introduced in this PR will lead to better maintainability,
reduced bugs related to type-related issues, and increased overall code
quality.
2023-08-16 18:39:05 -03:00
anovazzi1
7c4fbffeb1 Merge remote-tracking branch 'origin/dev' into types_refactor 2023-08-16 18:33:39 -03:00
anovazzi1
4b64d38d68 fix(inputComponent): fix TypeScript error by adding non-null assertion to className variable
fix(authContext): fix TypeScript error by setting initial value of userData to null
fix(tsconfig.json): enable strict mode in TypeScript compiler for better type checking and error detection
2023-08-16 18:29:47 -03:00
anovazzi1
46aa816ba9 run npm install 2023-08-16 18:22:42 -03:00
igorrCarvalho
6671a6c369 Resolve merge conflict 2023-08-16 18:21:53 -03:00
anovazzi1
e33e236466 Merge branch 'login' into types_refactor 2023-08-16 18:19:36 -03:00
igorrCarvalho
1ad78dca1f Feat: add user on signUp button form 2023-08-16 18:14:49 -03:00
anovazzi1
545a099339 removed strict and implicity any from tsconfig 2023-08-16 18:13:53 -03:00
anovazzi1
c5850977a7 fix(utils.ts): add TemplateVariableType import to fix type error in checkBaseClass function
chore(tsconfig.json): set strict to false and noImplicitAny to true to relax strict type checking and enforce explicit typing
2023-08-16 18:00:37 -03:00
anovazzi1
57f580c93d refactor(utils.ts): simplify logic for getting chat input field
The logic for getting the chat input field has been simplified by removing unnecessary checks and using optional chaining. This improves readability and reduces the complexity of the code.
2023-08-16 17:52:08 -03:00
anovazzi1
af218867eb fix(formModal): fix nullish coalescing operator usage to handle nullable properties in tabsStateFlowId.formKeysData 2023-08-16 17:49:03 -03:00
anovazzi1
9b0ff166c9 fix(ApiModal): fix null assertion on tabs array
fix(ApiModal): fix strict mode in tsconfig.json to enable strict type checking
2023-08-16 17:45:12 -03:00
anovazzi1
826c62c6fc
update make file to prevent binding bug on make frontend (#694)
This pull request addresses a critical issue related to a binding bug
that has been affecting the make_frontend command. The existing Makefile
was susceptible to this bug, causing unexpected behaviors and
disruptions during the build process.
2023-08-16 17:40:35 -03:00
anovazzi1
aa44125953
v0.4.11 (#777)
**Bug Fix**:
This PR resolves a critical bug causing the deletion of custom component
edges during saves. The issue stemmed from miscommunication between edge
tracking and saving logic.

**Enhancement**:
Additionally, this PR enhances user experience by introducing a loading
screen during app startup. The loading screen offers visual feedback for
app initialization.
2023-08-16 17:32:38 -03:00
anovazzi1
16fa3a66b8 chore(Makefile): simplify install_frontend target by removing unnecessary conditional statement
feat(Makefile): add install_frontendc target to install frontend dependencies using npm ci for clean installs
feat(Makefile): add frontendc target to install frontend dependencies using npm ci and run frontend
chore(ApiModal/index.tsx): reformat codesArray for better readability
2023-08-16 17:28:35 -03:00
anovazzi1
9096fcd110 chore(Makefile): modify install_frontend target to conditionally run npm ci or npm install based on the value of the clean variable 2023-08-16 17:23:24 -03:00
gustavoschaedler
98a24d331c 🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key.py): remove unnecessary empty line
🔧 fix(api_key
2023-08-16 21:00:39 +01:00
Cristhian Zanforlin Lousa
37cdd41ec9 merge authentication 2023-08-16 16:39:51 -03:00
Cristhian Zanforlin Lousa
262ca85dbc merge conflicts 2023-08-16 16:38:48 -03:00
Cristhian Zanforlin Lousa
ba48bbe770 🐛 fix(App.tsx): remove unnecessary code block in useEffect
🔧 chore(constants.ts): add CONTROL_NEW_API_KEY constant for consistency
 feat(SecretKeyModal): add SecretKeyModal component to handle secret key generation and copying
🔧 chore(UserManagementModal): rearrange buttons in UserManagementModal for better user experience

🚀 feat(ApiKeysPage): add new page for managing API keys
🔧 chore(routes.tsx): add route for ApiKeysPage

🔧 chore(types): add ApiKeyType and ApiKeyInputType to improve type safety and readability of code
🔧 chore(utils): add Key icon from lucide-react to nodeIconsLucide to be used in styling
2023-08-16 16:38:13 -03:00
igorrCarvalho
a93f44d054 fix: login form submit when changing password visibility 2023-08-16 16:25:09 -03:00
gustavoschaedler
4eeb9449cb 🔧 fix(main.py): reformat import statements to improve readability and maintainability
 feat(main.py): add support for API key routes to enable API key management functionality
📝 docs(api_key.py): add API key routes for retrieving, creating, and deleting API keys
2023-08-16 20:20:18 +01:00
igorrCarvalho
5202e1348a feat[headerComponent]: Add api icon on header 2023-08-16 16:15:43 -03:00
anovazzi1
2be7a88687
Release conflicts (#778)
update poetry lock and fix some conflicts
2023-08-16 15:52:58 -03:00
anovazzi1
83ad6b6986 chore(pyproject.toml): update package version from 0.4.10 to 0.4.11 to reflect changes in the codebase 2023-08-16 15:47:20 -03:00
Gabriel Luiz Freitas Almeida
d4beb3133c Merge remote-tracking branch 'origin/release' into celery 2023-08-16 15:44:27 -03:00
anovazzi1
9b1295942c Merge remote-tracking branch 'origin/main' into release 2023-08-16 15:44:26 -03:00
Gabriel Luiz Freitas Almeida
c93390c0e9 🐳 chore(docker-compose.celery.yml): add PostgreSQL and pgAdmin services to support database operations
 feat(docker-compose.celery.yml): add db service with PostgreSQL image and configure environment variables for database connection

 feat(docker-compose.celery.yml): add pgadmin service with pgAdmin4 image and configure environment variables for admin login

🔧 chore(docker-compose.celery.yml): add db service as a dependency for the queue service
2023-08-16 15:42:10 -03:00
Gabriel Luiz Freitas Almeida
e1872b8213 🔒 chore(poetry.lock): update cohere package version to 4.20.1
🔒 chore(poetry.lock): update exceptiongroup package version to 1.1.3
🔒 chore(poetry.lock): update google-api-python-client package version to 2.97.0
🔒 chore(poetry.lock): update pandas-stubs package version to 2.0.3.230814
🔒 chore(poetry.lock): update setuptools package version to 68.1.0
🔒 chore(poetry.lock): update tenacity package version to 8.2.3
🔒 chore(poetry.lock): update textual package version to 0.33.0
2023-08-16 15:41:55 -03:00
Gabriel Luiz Freitas Almeida
40321f4be7 🐛 fix(frontend): update Dockerfile to use node:20-alpine as base image for frontend build
 feat(frontend): add support for BACKEND_URL environment variable in nginx.conf to configure backend URL
📝 chore(frontend): add start-nginx.sh script to replace placeholder in nginx.conf with actual BACKEND_URL and start nginx
2023-08-16 15:41:09 -03:00
Gabriel Luiz Freitas Almeida
c2ec95fbb7 🐛 fix(base.Dockerfile): change --with deploy to --extras deploy in poetry install command to correctly install deploy extras 2023-08-16 15:40:54 -03:00
Gabriel Luiz Freitas Almeida
49729263ef 🐛 fix(manager.py): fix incorrect assignment of langchain_object.result to result_dict["result"] to store the entire langchain_object instead 2023-08-16 15:40:14 -03:00
Gabriel Luiz Freitas Almeida
284158b33b 📦 chore(deploy_langflow_gcp.sh): add script to deploy Langflow on Google Cloud Platform
📝 docs(walkthroughtutorial.md): add tutorial for deploying Langflow on Google Cloud Platform

The `deploy_langflow_gcp.sh` script is added to the `scripts/gcp` directory. This script sets up the necessary VM, image, and networking configuration for deploying Langflow on Google Cloud Platform. It also creates firewall rules, installs dependencies, and starts the Langflow server.

The `walkthroughtutorial.md` file is added to the `scripts/gcp` directory. This file provides a step-by-step tutorial on how to deploy Langflow on Google Cloud Platform using the `deploy_langflow_gcp.sh` script. It includes instructions on setting up the GCP environment, running the script, and connecting to the Langflow VM.

Cleanup instructions are also provided in the tutorial for removing the resources created during the deployment process.

📝 docs(walkthroughtutorial_spot.md): add walkthrough tutorial for deploying Langflow on Google Cloud Platform

This commit adds a new file `walkthroughtutorial_spot.md` which contains a step-by-step tutorial for deploying Langflow on Google Cloud Platform (GCP) using Google Cloud Shell. The tutorial provides an introduction, prerequisites, instructions for setting up the GCP environment, deploying Langflow, connecting to the Langflow VM, and cleaning up resources after the deployment.

The tutorial is authored by Robert Wilkins III and has a duration of 45 minutes. It assumes that the user has a GCP account and basic knowledge of Google Cloud Shell. The tutorial also includes links to relevant documentation and provides commands for configuring the GCP environment and deploying Langflow.

The tutorial is comprehensive and aims to guide users through the process of deploying Langflow on GCP. It also includes cleanup instructions for removing the resources created during the tutorial if desired.
2023-08-16 15:39:08 -03:00
Gabriel Luiz Freitas Almeida
6b0383be50 📦 chore(deploy): add deployment files and configurations for Docker Compose setup 2023-08-16 15:38:43 -03:00
anovazzi1
5fde616f9b
Added spinning wheel when /all is loading (#757)
Added spinning wheel when all components are still loading.
2023-08-16 15:34:07 -03:00
anovazzi1
0b8d91f116 Merge branch 'release' into bug/loadingIndicator 2023-08-16 15:26:15 -03:00
igorrCarvalho
ed6ae4b380 Merge branch 'login-auth' of github.com:logspace-ai/langflow into login-auth 2023-08-16 15:24:01 -03:00
igorrCarvalho
634a5591cc feat: Add admin page button and refactor protected route /admin 2023-08-16 15:23:22 -03:00