Commit graph

4,074 commits

Author SHA1 Message Date
gustavoschaedler
d243829893 ⬆️ chore(pyproject.toml): upgrade python-jose dependency to version 3.3.0 to ensure compatibility and take advantage of new features 2023-08-09 00:56:07 +01:00
gustavoschaedler
f822581df3 🔧 chore(pyproject.toml): add passlib and bcrypt dependencies to improve password hashing and security 2023-08-09 00:47:11 +01:00
gustavoschaedler
056ce51ad0 🐛 fix(login.py): change argument type of create_user_token function from str to User to improve type safety and clarity
🐛 fix(login.py): remove unnecessary type ignore comment in create_user_token function
🐛 fix(login.py): remove unnecessary type ignore comment in return statement of login_to_get_access_token function
🐛 fix(users.py): remove unnecessary async keyword from read_current_user function
🐛 fix(users.py): remove unnecessary async keyword from read_all_users function
🐛 fix(users.py): remove unnecessary async keyword from add_user function
🐛 fix(users.py): remove unnecessary async keyword from add_super_user_to_testing_purposes function
2023-08-08 22:20:53 +01:00
gustavoschaedler
3c6d46021d 🔧 chore(user.py): remove unnecessary line breaks and import formatting for better code readability
🔧 chore(main.py): fix indentation and remove unnecessary line breaks for better code readability
🔧 chore(login.py): fix indentation and add missing line breaks for better code readability
2023-08-08 22:09:38 +01:00
gustavoschaedler
1c28979766 🔀 refactor(users.py): rename router prefix from "/users" to "Login" to improve clarity and consistency 2023-08-08 22:08:51 +01:00
gustavoschaedler
4af08d99fc Merge remote-tracking branch 'origin/dev' into authentication 2023-08-08 22:05:23 +01:00
gustavoschaedler
59a55b4371 🔧 fix(auth.py): update import statements to reflect new file structure in langflow package
🔧 fix(auth.py): fix typo in verify_password function call
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect new file structure in langflow package
🔧 fix(auth.py): update get_current_user function signature to match the annotated type
🔧 fix(auth.py): update get_user function call to reflect
2023-08-08 21:19:22 +01:00
Gabriel Luiz Freitas Almeida
a33edf878c
Adds Migrations and Service Layer implementation (#723) 2023-08-08 17:11:08 -03:00
Gabriel Luiz Freitas Almeida
67f0ca7549 📦 chore(pyproject.toml): update orjson dependency from version 3.9.1 to 3.9.3 for bug fixes and improvements 2023-08-08 16:50:04 -03:00
Gabriel Luiz Freitas Almeida
4b47f9f196 🐛 fix(endpoints.py): add check to skip empty custom_component_dict to prevent potential errors 2023-08-08 16:35:15 -03:00
Gabriel Luiz Freitas Almeida
3170ac665a 📝 docs(pyproject.toml): add documentation link to the project configuration file 2023-08-08 16:15:30 -03:00
Gabriel Luiz Freitas Almeida
a6cacbf377 Merge branch 'dev' into migrations_service 2023-08-08 16:13:32 -03:00
Gabriel Luiz Freitas Almeida
a40a81b458 Merge remote-tracking branch 'origin/main' into dev 2023-08-08 16:12:12 -03:00
Gabriel Luiz Freitas Almeida
bae4792ed9
Fix flows not being able to run without input keys (#732) 2023-08-08 15:14:27 -03:00
Gabriel Luiz Freitas Almeida
ceff1a2833 Merge remote-tracking branch 'origin/main' into release 2023-08-08 15:13:49 -03:00
Gabriel Luiz Freitas Almeida
cf8c0601eb Revert "Merge branch 'main' into release"
This reverts commit 4dea0f6690, reversing
changes made to 597b2153a3.
2023-08-08 15:13:22 -03:00
Gabriel Luiz Freitas Almeida
b8d8ed8283 Revert "Revert "Fixes flows without input_keys not being runnable" (#731)"
This reverts commit 352e74cbc7, reversing
changes made to 3f531a1157.
2023-08-08 15:12:37 -03:00
Gabriel Luiz Freitas Almeida
4dea0f6690
Merge branch 'main' into release 2023-08-08 15:08:11 -03:00
Gabriel Luiz Freitas Almeida
597b2153a3 🔖 chore(pyproject.toml): bump version from 0.4.2 to 0.4.3 for langflow package 2023-08-08 15:06:38 -03:00
Gabriel Luiz Freitas Almeida
352e74cbc7
Revert "Fixes flows without input_keys not being runnable" (#731) 2023-08-08 15:03:02 -03:00
Gabriel Luiz Freitas Almeida
f9b392d5b8
Revert "Fixes flows without input_keys not being runnable" 2023-08-08 15:02:16 -03:00
Gabriel Luiz Freitas Almeida
3f531a1157
Fixes flows without input_keys not being runnable (#727) 2023-08-08 15:01:56 -03:00
Gabriel Luiz Freitas Almeida
df49a6a410
Merge branch 'main' into inputKeysBugFix 2023-08-08 15:01:35 -03:00
Gabriel Luiz Freitas Almeida
8e4ca8e8ef
Adds more settings to ChromaDB and fixes Chat not being runnable without chat variables (#718) 2023-08-08 15:00:55 -03:00
Gabriel Luiz Freitas Almeida
a64f03da9c 📝 docs(loading_document.mdx): update the "Web Page" field URL to point to the correct documentation URL
📝 docs(CNAME): update the CNAME file to point to the new domain for the documentation

🔧 fix(ApiModal/index.tsx): update the links in the description to point to the correct documentation URL
2023-08-08 14:11:57 -03:00
Gabriel Luiz Freitas Almeida
4dafbae1b9 📝 docs(loading_document.mdx): update the "Web Page" field URL to point to the correct documentation URL
📝 docs(CNAME): update the CNAME file to point to the new domain for the documentation

🔧 fix(ApiModal/index.tsx): update the links in the description to point to the correct documentation URL
2023-08-08 14:09:15 -03:00
Gabriel Luiz Freitas Almeida
d1f09a6a64 🔨 refactor(utils.ts): remove unnecessary newline after the return statement in getChatInputField function 2023-08-07 20:34:22 -03:00
Gabriel Luiz Freitas Almeida
bd7489206d 🐛 fix(chatComponent): add null check for formKeysData.input_keys to prevent error when accessing undefined property 2023-08-07 20:32:27 -03:00
Gabriel Luiz Freitas Almeida
16666426f7 🐛 fix(chatComponent): fix condition to check if parsedData.input_keys is not undefined
 feat(chatComponent): add logic to close the connection and finish when end_of_stream event is received
2023-08-07 20:31:59 -03:00
Gabriel Luiz Freitas Almeida
e1cbc0d5d4 🐛 fix(utils.ts): fix missing closing bracket in getChatInputField function
 feat(utils.ts): add getChatInputField function to retrieve the chat input field based on the current flow and tabs state
2023-08-07 20:31:32 -03:00
Gabriel Luiz Freitas Almeida
2abc0d2fb4 🐛 fix(formModal/index.tsx): handle case when tabsState or formKeysData is undefined to prevent errors
 feat(formModal/index.tsx): add support for displaying input keys and handling input changes in the form modal
2023-08-07 20:28:41 -03:00
Gabriel Luiz Freitas Almeida
aff3d53021 🔖 chore(pyproject.toml): bump package version from 0.4.1 to 0.4.2
🔖 chore(pyproject.toml): bump langchain version from 0.0.250 to 0.0.256
2023-08-07 20:06:32 -03:00
Gabriel Luiz Freitas Almeida
f61d265e77 🔧 chore(vector_store.py): refactor initialize_chroma function to remove unnecessary if conditions and improve code readability
🔧 chore(vector_store.py): remove chroma_server_ keys from params dictionary if not needed to avoid potential conflicts
2023-08-07 18:52:19 -03:00
Gabriel Luiz Freitas Almeida
239811dbff 🐛 fix(chat.py): change "input_keys" value from an empty dictionary to None to improve readability and reduce redundancy 2023-08-07 18:46:13 -03:00
Gabriel Luiz Freitas Almeida
9ee76fd18f 🐛 fix(manager.py): change default value of chat_inputs from empty string to empty dictionary to improve data consistency and prevent potential errors
🐛 fix(utils.py): handle case when chat_inputs.message is None by assigning an empty dictionary to it to prevent potential errors
2023-08-07 18:37:49 -03:00
anovazzi1
7f31f7f519 refactor(chatComponent): simplify condition for setting canOpen state in Chat component
The condition for setting the `canOpen` state in the Chat component was simplified by removing unnecessary checks for `formKeysData.input_keys` and `Object.keys(tabsState[flow.id].formKeysData.input_keys).length > 0`. The new condition only checks for the existence of `tabsState[flow.id].formKeysData`. This change improves code readability and reduces unnecessary complexity.
2023-08-07 18:35:14 -03:00
Gabriel Luiz Freitas Almeida
68c4799ab0 🔧 chore(launch.json): update launch.json to include a new configuration for debugging Python tests
 feat(launch.json): add a new configuration for debugging Python tests with the purpose of "debug-test" and console set to "integratedTerminal"
2023-08-07 14:47:04 -03:00
Gabriel Luiz Freitas Almeida
9fcc96e767 🔀 refactor(manager.py): update import statement for models in database manager to improve readability and maintainability 2023-08-07 14:18:07 -03:00
Gabriel Luiz Freitas Almeida
4e1fc2202a 🔥 refactor(test_cli.py): remove unused imports and test cases
The test_cli.py file had some unused imports and test cases that were not being used. This commit removes those unused imports and test cases to improve code cleanliness and maintainability.
2023-08-07 14:16:37 -03:00
Gabriel Luiz Freitas Almeida
71012ac47b 🔥 chore(alembic): remove flowstyles table
 feat(alembic): add migration to remove flowstyles table

🔥 chore(alembic): remove old migration file for removing flowstyles table

🐛 fix(database): import Flow model to avoid unused import warning
2023-08-07 14:09:27 -03:00
Gabriel Luiz Freitas Almeida
96dfb9b324 🐛 fix(main.py): fix condition to setup static files only if static_files_dir is not None 2023-08-07 12:08:16 -03:00
Gabriel Luiz Freitas Almeida
9dba69cffc 📝 docs(CONTRIBUTING.md): add branch structure information to CONTRIBUTING.md file for better understanding of the repository structure
📝 docs(README.md): add a section about joining the Discord server to encourage community engagement and collaboration
2023-08-07 12:07:45 -03:00
Gabriel Luiz Freitas Almeida
1601745ed9 🔀 refactor(alembic/env.py): update import statement for SQLModel in env.py to reflect new location in manager module
🔀 refactor(interface/custom/custom_component.py): update import statement for session_getter in custom_component.py to reflect new location in utils module

🔀 refactor(main.py): update import statement for initialize_database in main.py to reflect new location in utils module

🔀 refactor(database/factory.py): update import statement for DatabaseManager in factory.py to reflect new location in manager module
2023-08-07 12:00:58 -03:00
Gabriel Luiz Freitas Almeida
8436c66aa7 📦 chore(manager.py): add DatabaseManager class to handle database operations
📦 chore(utils.py): add initialize_database function and session_getter context manager to handle database initialization and session management
2023-08-07 12:00:27 -03:00
Gabriel Luiz Freitas Almeida
8036f74d8b 🔀 chore(conftest.py): update import statement for DatabaseManager to reflect file name change 2023-08-07 11:59:57 -03:00
Gabriel Luiz Freitas Almeida
41707c1eac 🔧 chore(test_cli.py): refactor test_components_path to use a temporary directory for components path
🔧 chore(test_cli.py): refactor test_components_path to use a temporary directory for components path to improve test isolation and avoid side effects
2023-08-07 11:59:23 -03:00
Gabriel Luiz Freitas Almeida
d75fb49bf2 🔥 chore(alembic): remove FlowStyles table
This commit removes the FlowStyles table from the database. The table was no longer needed and has been dropped. The corresponding indexes and foreign key constraints have also been removed.

Downgrade functionality has been implemented to recreate the FlowStyles table and its associated indexes and foreign key constraints if needed.
2023-08-07 10:25:46 -03:00
Gabriel Luiz Freitas Almeida
b7861ac77f 🔧 chore(alembic.ini): update sqlalchemy.url to dynamically set the path to the database in the root of the project 2023-08-07 10:24:28 -03:00
Gabriel Luiz Freitas Almeida
e2e14d8c93 🔥 refactor(router.py): remove unused flow_styles_router import to improve code cleanliness and reduce unused code
🔥 refactor(test_database.py): remove unused flow_style related tests to improve code cleanliness and reduce unused code
2023-08-07 10:24:02 -03:00
Gabriel Luiz Freitas Almeida
4547edef0f 🔥 refactor(api): remove unused flow_styles module and related code
🔥 refactor(api): remove unused flow_styles router and related endpoints
🔥 refactor(api): remove unused FlowStyle model and related code
🔥 refactor(api): remove unused FlowStyleCreate, FlowStyleRead, and FlowStyleUpdate models
🔥 refactor(api): remove unused style relationship from Flow model
🔥 refactor(api): remove unused FlowReadWithStyle model
🔥 refactor(api): remove unused flow_styles_id parameter from read_flow_style endpoint
🔥 refactor(api): remove unused update_flow_style endpoint
🔥 refactor(api): remove unused delete_flow_style endpoint
🔥 refactor(api): remove unused flow_id parameter from delete_flow_style endpoint
🔥 refactor(api): remove unused style parameter from create_flow_style endpoint
🔥 refactor(api): remove unused read_flow_styles endpoint
🔥 refactor(api): remove unused flow_styles_id parameter from read_flow_styles endpoint
🔥 refactor(api): remove unused flow_style_id parameter from update_flow_style endpoint
🔥 refactor(api): remove unused flow_style parameter from update_flow_style endpoint
🔥 refactor(api): remove unused flow_style parameter from create_flow_style endpoint
🔥 refactor(api): remove unused flow_styles_router import
🔥 refactor(api): remove unused flow_styles_router variable
🔥 refactor(api): remove unused flow_styles_router prefix and tags
2023-08-07 10:13:40 -03:00