Commit graph

4,090 commits

Author SHA1 Message Date
gustavoschaedler
0a5026a6ed 🔧 fix(auth.py): change refresh token expiration time from 180 minutes to 70 minutes for better security
🔧 fix(auth.py): change SECRET_KEY comment from "TODO" to "JUST FOR TEST" for clarity
🔧 fix(auth.py): change create_access_token function name to create_token for consistency
🔧 fix(auth.py): change create_refresh_token function to accept refresh_token parameter instead of data dictionary
🔧 fix(auth.py): change create_refresh_token function to decode and validate refresh_token before creating new user tokens
🔧 fix(auth.py): change authenticate_user function to use get_user_by_username instead of get_user
🔧 fix(auth.py): change get_current_user function to use get_user_by_username instead of get_user
🔧 fix(auth.py): change get_user function name to get_user_by_username for clarity
🔧 fix(users.py): change get_password_hash function to be inside the router scope for better encapsulation
🔧 fix(users.py): change add_user function to return UserListModel instead of User
🔧 fix(users.py): change update_user function to update user data based on UserPatchModel fields
🔧 fix(users.py): change update_user function to handle username conflicts and update user's updated_at field
🔧 fix(users.py): change delete_user function to delete user based on user_id
 feat(login.py): add refresh_token endpoint to refresh access token using refresh token
 feat(login.py): add refresh_token function to create new user tokens based on refresh token
 feat(login.py): add refresh_token endpoint to refresh access token using refresh token
 feat(login.py): add refresh_token function to create new user tokens based on refresh token
 feat(login.py): add refresh_token endpoint to refresh access token using refresh token
 feat(login.py): add refresh_token function to create new user tokens based on refresh token
 feat(login.py): add refresh_token endpoint to refresh access token using refresh token
 feat(login.py): add refresh_token function to create new user tokens based on refresh token
 feat(login.py): add refresh_token endpoint to refresh access token using refresh token
 feat(login.py): add refresh_token function to create new user tokens based on refresh token
 feat(login.py): add refresh_token endpoint to refresh access token using refresh token
 feat(login.py): add refresh
2023-08-11 03:13:08 +01:00
gustavoschaedler
f0f061ab46 🔒 chore(auth.py): increase access token expiration time to 60 minutes for better user experience
🔒 chore(auth.py): add refresh token functionality with expiration time of 180 minutes
🔒 chore(login.py): change token endpoint URL from /token to /login for better semantics
🔒 chore(login.py): add refresh token creation to login endpoint to provide a refresh token along with the access token
2023-08-10 19:05:11 +01:00
Gabriel Luiz Freitas Almeida
83631606d3 🐛 fix(manager.py): fix undefined variable 'database_url' error in _create_engine method
 feat(manager.py): add support for SQLite database by setting connect_args in create_engine method
2023-08-10 11:30:06 -03:00
gustavoschaedler
f065a46950 Merge remote-tracking branch 'origin/dev' into authentication 2023-08-09 21:46:08 +01:00
anovazzi1
5e370f3e34
Refactoring: Rename Generic Variable Names to More Descriptive Ones (#725)
This PR is a code refactoring initiative aiming to improve the
readability and maintainability of our codebase. It specifically targets
generic or non-descriptive variable names, renaming them to more
meaningful names that better express their purpose within the code.
2023-08-09 11:21:34 -03:00
Gabriel Luiz Freitas Almeida
be14d45589 🐛 fix(utils.py): handle CommandError when running migrations and delete alembic_version table if wrong revision in DB 2023-08-09 10:28:41 -03:00
Gabriel Luiz Freitas Almeida
61bee4424f
Add zip_path and workspace_url fields (#729) 2023-08-09 09:18:30 -03:00
Melvin Hillsman
f4ad8572e7 Add zip_path and workspace_url fields
As noted in the
[documentation](https://python.langchain.com/docs/integrations/document_loaders/slack)
for this plugin zip_path is the first named parameter not file_path and
workspace_url is the second with zip_path being required and
workspace_url being optional.

Fixes #695

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
2023-08-08 21:01:34 -05:00
anovazzi1
9b523ad11c update templateName variable to templateField 2023-08-08 20:59:28 -03:00
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
anovazzi1
fccb004248 format code and fix merge errors generated after conflict 2023-08-08 20:53:39 -03: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
anovazzi1
303387a3ec Merge branch 'dev' into variables_refactor 2023-08-08 20:46:18 -03: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
Igor Carvalho
e56fa4c7d5 Add initial api modal constant structure 2023-08-07 17:40:24 -03:00
Igor Carvalho
71018dbd43 change more names 2023-08-07 17:20:26 -03:00
Igor Carvalho
1f93cb5513 Refactor: Change more variables names 2023-08-07 17:14:54 -03:00