Commit graph

3,487 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
bc53800b1c 🔧 chore(main.py): refactor imports and remove unused code in main.py for better code organization and maintainability
🔧 chore(manager.py): remove unused functions and refactor code in manager.py for better code organization and maintainability
2023-09-18 17:43:05 -03:00
Gabriel Luiz Freitas Almeida
049ffc72ef 🔧 fix(__main__.py): import correct function for initializing settings manager
🔧 fix(utils.py): fix condition for checking if user is superuser
2023-09-18 17:41:36 -03:00
Gabriel Luiz Freitas Almeida
828492eaf2 🔧 chore(main.py): import setup_superuser function to be able to set up a superuser for the application 2023-09-18 15:52:15 -03:00
Gabriel Luiz Freitas Almeida
94020b3126 📝 chore(manager.py): update variable names for superuser in database manager and utils module for better clarity and consistency
The variable names `FIRST_SUPERUSER` and `FIRST_SUPERUSER_PASSWORD` have been changed to `SUPERUSER` and `SUPERUSER_PASSWORD` respectively in the `manager.py` and `utils.py` files. This change improves clarity and consistency in the codebase.
2023-09-18 15:45:40 -03:00
Gabriel Luiz Freitas Almeida
c390a6ca1d 🔧 chore(utils.py): refactor get_settings_manager, get_db_manager, get_session, and get_chat_manager functions to use service_manager for better code organization and maintainability
 feat(utils.py): add setup_superuser function to create a superuser if it does not exist and reset superuser credentials after creation
2023-09-18 15:43:18 -03:00
Gabriel Luiz Freitas Almeida
0c3d59a804 🐛 fix(__main__.py): import correct function for get_db_manager and get_settings_manager in langflow/__main__.py
🐛 fix(api_key.py): import correct function for get_session in langflow/api/v1/api_key.py
🐛 fix(chat.py): import correct function for get_chat_manager and get_session in langflow/api/v1/chat.py
🐛 fix(components.py): import correct function for get_session in langflow/api/v1/components.py
🐛 fix(endpoints.py): import correct function for get_session and get_settings_manager in langflow/api/v1/endpoints.py
🐛 fix(flows.py): import correct function for get_session and get_settings_manager in langflow/api/v1/flows.py
🐛 fix(login.py): import correct function for get_session and get_settings_manager in langflow/api/v1/login.py
🐛 fix(users.py): import correct function for get_session in langflow/api/v1/users.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/agents/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/chains/base.py
🐛 fix(custom_component.py): import correct function for get_db_manager in langflow/interface/custom/custom_component.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/document_loaders/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/embeddings/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/llms/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/memories/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/output_parsers/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/prompts/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/retrievers/base.py

🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect

🔧 fix(test_user.py): update import statement for get_settings_manager to reflect new module structure
🔧 fix(test_user.py): update variable names for superuser and superuser password to match new naming convention
🔧 fix(test_user.py): update variable names for superuser and superuser password to match new naming convention
🔧 fix(test_vectorstore_template.py): update import statement for get_settings_manager to reflect new module structure
2023-09-18 15:42:39 -03:00
Cristhian Zanforlin Lousa
14c9f863dc 🔧 fix(dialog.tsx): remove unnecessary CSS classes 'noundo' and 'nocopy' to simplify the code and improve maintainability
🔧 fix(codeAreaModal/index.tsx): remove unnecessary CSS classes 'nopan', 'nodrag', 'noundo', and 'nocopy' to simplify the code and improve maintainability
2023-09-18 14:26:27 -03:00
Cristhian Zanforlin Lousa
3e2f3046a9 🔧 chore(codeAreaModal/index.tsx): add additional class names to CodeMirror component for better control and customization 2023-09-18 13:51:01 -03:00
Gabriel Luiz Freitas Almeida
44466dc2d1 🐛 fix(RecursiveCharacterTextSplitter.py): uncomment line to assign repr_value to separators variable
 feat(util.py): add build_loader_repr_from_documents function to generate a representation string from a list of documents
2023-09-14 21:38:10 -03:00
Guangya Liu
03a71b1fe8 use optional for user 2023-09-14 19:48:48 -04:00
Guangya Liu
c710c1ce82 Fixed lint error 2023-09-14 13:33:48 -04:00
Guangya Liu
888ded02f9 Fixed format pre-check error 2023-09-14 10:17:13 -04:00
Guangya Liu
9b9a84f81f Fixed Bug 916: No module named 'langflow.settings' error 2023-09-14 10:14:56 -04:00
Gabriel Luiz Freitas Almeida
57cba4233a
Fixed format errors (#903) 2023-09-14 01:29:26 +00:00
Cristhian Zanforlin Lousa
e1bb4b4a24
🐛 fix(genericModal/index.tsx): close modal when template has no varia… (#911)
…bles to prevent user confusion
2023-09-13 22:26:38 -03:00
Cristhian Zanforlin Lousa
887bfb8ee7 🐛 fix(genericModal/index.tsx): close modal when template has no variables to prevent user confusion 2023-09-13 21:42:26 -03:00
Gabriel Luiz Freitas Almeida
c6be7cdecd Merge remote-tracking branch 'origin/main' into dev 2023-09-13 21:32:51 -03:00
Cristhian Zanforlin Lousa
8121dc0a8b 🔨 refactor(dialog.tsx): remove unused IconComponent import and replace it with Cross2Icon from @radix-ui/react-icons
🎨 style(dialog.tsx): update DialogContent className to improve positioning and animation effects
2023-09-12 16:56:53 -03:00
anovazzi1
492ca19fff text update 2023-09-12 16:35:04 -03:00
anovazzi1
90c864fafc refactor(parameterComponent): update text displayed based on the value of the 'left' prop for better clarity and consistency 2023-09-12 16:35:04 -03:00
igorrCarvalho
cd28ae2c59 Refactor: Add header to node tooltips 2023-09-12 16:35:04 -03:00
igorrCarvalho
c03b11ab70 Refactor: Remove description space whem node does not have a space 2023-09-12 16:35:04 -03:00
igorrCarvalho
e38b904af2 Refactor: Remove blank space when node has no description 2023-09-12 16:35:04 -03:00
Guangya Liu
48586fc3e6 Fix format errors 2023-09-12 11:17:11 -04:00
anovazzi1
249cf833fa fix(AdminPage/index.tsx): fix asynchronous handling of updateUser function to properly reset filter and set success data after user update
fix(styleUtils.ts): fix import statement for GradientSparkles component to use curly braces for named import
2023-09-11 18:46:50 -03:00
anovazzi1
732c140fb7 Merge remote-tracking branch 'origin/dev' into feature/profilePage 2023-09-11 18:36:11 -03:00
anovazzi1
22a7f37efb fix(GradientSparkles/index.tsx): remove unnecessary import of Infinity component from lucide-react
fix(GradientSparkles/index.tsx): replace usage of imported Infinity component with inline SVG code to avoid crashing the UI
2023-09-11 18:33:04 -03:00
Lucas Oliveira
64bb977045 Fixed isActive and isSuperuser not changing when creating user 2023-09-11 18:09:22 -03:00
Gabriel Luiz Freitas Almeida
967483e59c Revert "Fixed isActive and isSuperuser not changing when creating user"
This reverts commit b454b8c7ce.
2023-09-11 17:29:34 -03:00
Lucas Oliveira
b454b8c7ce Fixed isActive and isSuperuser not changing when creating user 2023-09-11 16:59:33 -03:00
Lucas Oliveira
d09df8a497 Formatting Fixes 2023-09-11 16:07:40 -03:00
Lucas Oliveira
f8ab2f12be Merge branch 'dev' into feature/profilePage 2023-09-11 16:07:17 -03:00
Lucas Oliveira
77e9e79332 Fix on api button 2023-09-11 16:06:27 -03:00
Lucas Oliveira
268906fe49 Minor bug fixes to clean console 2023-09-11 16:05:25 -03:00
Gabriel Luiz Freitas Almeida
6a477d2dd8
Fix lint error (#886) 2023-09-11 17:27:04 +00:00
Cristhian Zanforlin Lousa
a2eadbedb1 🐛 fix(api.tsx): add conditional check before calling login function to prevent errors when response data is missing access_token or refresh_token 2023-09-11 09:10:44 -03:00
Cristhian Zanforlin Lousa
b832e0844e 🐛 fix(API/index.ts): add condition to check if token exists before making the request to renew access token to prevent errors 2023-09-11 09:08:32 -03:00
Gabriel Luiz Freitas Almeida
f379d54686 🐛 fix(process.py): add support for processing Document objects in process_graph_cached function 2023-09-09 08:28:29 -03:00
Gabriel Luiz Freitas Almeida
4d0531d0cd 🐛 fix(users.py): fix variable name in if condition to correctly check for password update 2023-09-08 18:41:44 -03:00
Lucas Oliveira
f4186840fb Changed error handling 2023-09-08 17:07:27 -03:00
Lucas Oliveira
c180b3c302 Changed error handling and conditions 2023-09-08 17:07:08 -03:00
Lucas Oliveira
dfe459ce1d Fixed changing password not working 2023-09-08 16:47:53 -03:00
Lucas Oliveira
705dd6acea Fixed gradient not saving correctly 2023-09-08 16:47:53 -03:00
Gabriel Luiz Freitas Almeida
ea11b16f58 🔒 chore(users.py): refactor reset_password function to improve password verification logic 2023-09-08 16:44:25 -03:00
Gabriel Luiz Freitas Almeida
a68535cbe4 🐛 fix(users.py): prevent users from changing their password in the patch_user endpoint to ensure security
🐛 fix(users.py): prevent users from using their current password when resetting their password to ensure security
2023-09-08 16:42:56 -03:00
Gabriel Luiz Freitas Almeida
01a289dd9a 🐛 fix(users.py): assign the hashed new password to a variable before updating the user's password to ensure consistency
 test(test_user.py): add test to verify if the new password works after resetting it
2023-09-08 14:28:32 -03:00
Gabriel Luiz Freitas Almeida
f95a38a4b5 🐛 fix(crud.py): change HTTP status code from 304 to status.HTTP_304_NOT_MODIFIED for better readability and consistency
 feat(crud.py): add support for updating user profile image in the update_user function
 feat(test_user.py): add test case for updating user profile image in the test_patch_user function
2023-09-08 14:23:19 -03:00
Gabriel Luiz Freitas Almeida
75f03b17f4 🔧 chore(67cc006d50bf_add_profile_image_column.py): refactor upgrade and downgrade functions to check if "user" table exists and if "profile_image" column is already present before adding or dropping the column respectively 2023-09-08 14:19:28 -03:00
Gabriel Luiz Freitas Almeida
071ad8621b 🔧 chore(user.py): add optional profile_image field to UserRead model for improved user profile functionality 2023-09-08 14:13:54 -03:00
Lucas Oliveira
bd44500508 Added gradient chooser and success messages 2023-09-08 13:08:39 -03:00