Commit graph

6,317 commits

Author SHA1 Message Date
Lucas Oliveira
219d8803b8 Added condition to filter by user and likes when unauthorized 2023-11-16 12:10:09 -03:00
Gabriel Luiz Freitas Almeida
750a24521a 🐛 fix(store.py): change variable name 'liked' to 'use_api_key' for better clarity and semantics
🔧 refactor(store.py): remove unnecessary condition for 'status' variable in build_search_filter_conditions method
🔧 refactor(store.py): remove unnecessary condition for 'liked' variable in build_liked_filter method
🔧 refactor(store.py): remove unnecessary condition for 'liked' variable in query_components method
🔧 refactor(store.py): remove unnecessary condition for 'use_api_key' variable in query_components method
🔧 refactor(store.py): remove unnecessary condition for 'store_api_Key' variable in query_components method
🔧 refactor(store.py): add default value for 'use_api_key' parameter in query_components method
🔧 refactor(store.py): remove unnecessary condition for 'liked' variable in query_components method
🔧
🔧 refactor(store
2023-11-16 12:04:26 -03:00
Lucas Oliveira
9c78d0afd9 Fixed filterByUser 2023-11-16 12:03:15 -03:00
Lucas Oliveira
5bf969f8b4 Added distinction between components and flows 2023-11-16 11:51:34 -03:00
cristhianzl
8803e944ee fix(market-card.tsx): add conditional rendering for username to prevent error when data.user_created.username is undefined 2023-11-16 11:47:39 -03:00
Gabriel Luiz Freitas Almeida
c7ceb43979 Update user_created field to use username instead
of first_name
2023-11-16 11:33:25 -03:00
Gabriel Luiz Freitas Almeida
c91d89380a 🐛 fix(store.py): remove unnecessary code that checks for liked and store_api_Key variables
🐛 fix(service.py): remove unnecessary import statement for logger
 feat(store.py): add support for filtering components by liked status and store API key
 feat(service.py): add build_liked_filter method to build filter conditions based on liked status and store API key
2023-11-16 11:26:59 -03:00
Gabriel Luiz Freitas Almeida
99460fd181 🔧 chore(service.py): remove unused imports to improve code readability and maintainability
🔧 chore(service.py): change user_data_context from contextmanager to asynccontextmanager to support asynchronous operations
🔧 chore(service.py): handle case when user_data is a list and take the first element
🔧 chore(service.py): remove liked and api_key parameters from get_components method and handle public components separately
🔧 chore(service.py): handle case when results is a dictionary and convert it to a list of results_objects
2023-11-16 11:21:59 -03:00
Gabriel Luiz Freitas Almeida
23f6e5941a 🐛 fix(store.py): add validation for filtering by likes and raise an error if API key is missing
 feat(store.py): add support for filtering components by likes using the provided API key
2023-11-16 11:21:49 -03:00
Lucas Oliveira
d1f0076988 Added author 2023-11-16 11:14:51 -03:00
Lucas Oliveira
5d145bd15a Fixed search width 2023-11-16 11:09:11 -03:00
Gabriel Luiz Freitas Almeida
ccd851cad0 🐛 fix(store.py): add filter_by_user parameter to get_components function to enable filtering components by user
🐛 fix(service.py): add filter_by_user parameter to StoreService's get_components method to enable filtering components by user
🐛 fix(index.ts): add filterByUser parameter to getStoreComponents function to enable filtering components by user
2023-11-16 11:03:45 -03:00
Lucas Oliveira
36cb4c31a0 Added liked and created by me filter, liked not working and created not implemented at backend 2023-11-16 11:02:14 -03:00
Gabriel Luiz Freitas Almeida
0547dd5d76 Handle 401 Unauthorized error in get_components
function
2023-11-16 10:57:02 -03:00
Gabriel Luiz Freitas Almeida
ce1a8d6835 Refactor store service and API router
Add error handling for unauthorized access to resources
2023-11-16 10:55:40 -03:00
Lucas Oliveira
4d0baef491 fixed combobox and formatting 2023-11-16 10:47:58 -03:00
Lucas Oliveira
93df6b0a8b Added combobox and command 2023-11-16 10:46:29 -03:00
cristhianzl
24e9693c53 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-16 10:27:23 -03:00
cristhianzl
12277dae67 feat(market-card.tsx): add display of user who created the market card for better user experience and context
fix(index.ts): add user_created property to storeComponent type to match the API response structure
2023-11-16 10:27:14 -03:00
Gabriel Luiz Freitas Almeida
883bf3a86a 🔧 fix(test_store.py): fix import statement for CreateComponentResponse in test_search_components function
🚀 feat(test_store.py): update import statement for CreateComponentResponse in test_search_components function to reflect changes in schema
2023-11-16 09:44:35 -03:00
Gabriel Luiz Freitas Almeida
0f7c4861f4 🐛 fix(API/index.ts): change 'public' property to 'status' and set it to "public" or "private" based on the value of publicFlow to improve clarity and consistency 2023-11-16 09:44:21 -03:00
Gabriel Luiz Freitas Almeida
8f23c29818 Refactor StoreService upload method to return
CreateComponentResponse
2023-11-16 09:44:17 -03:00
Gabriel Luiz Freitas Almeida
e925da5671 Add last tested version to component creation and
handle outdated versions
2023-11-16 09:44:07 -03:00
Gabriel Luiz Freitas Almeida
978757c757 Add default values for parent and liked_by_user
fields in schema.py
2023-11-16 09:18:16 -03:00
Gabriel Luiz Freitas Almeida
79acc81c76 Refactor read_component to download_component 2023-11-16 09:09:28 -03:00
cristhianzl
c477db5cac Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-16 08:57:40 -03:00
Gabriel Luiz Freitas Almeida
33e0c4b645 Add Langflow version check and update components
with user data function
2023-11-15 22:22:22 -03:00
cristhianzl
c939da5ed4 fix(parameterComponent): refactor code to handle both item.display_name and item.type in rendering parameter component
fix(extraSidebarComponent): fix useEffect dependency warning by adding getFilterEdge to the dependency array
fix(utils): refactor groupByFamily function to use nodeGroupedObjType type for tempInputs and tempOutputs arrays
2023-11-14 23:48:58 -03:00
cristhianzl
817eb77335 fix(extraSidebarComponent): remove unused code related to filtering data
fix(sideBarDraggableComponent): update import statement for FlowsContext
2023-11-14 22:24:26 -03:00
cristhianzl
90bf92b2dc fix(extraSidebarComponent/index.tsx): fix bug causing issues with filtering data
feat(extraSidebarComponent/index.tsx): add support for filtering data based on selected filter edges
fix(components/index.tsx): fix import statement for FlowsContext in order to use the correct context
2023-11-14 22:15:39 -03:00
cristhianzl
8b0a1ccd5f Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-14 22:09:30 -03:00
Gabriel Luiz Freitas Almeida
71300ba42e Refactored code by removing unused imports and
adding import statements inside functions.
2023-11-14 22:07:12 -03:00
Gabriel Luiz Freitas Almeida
d93df82607 Refactor dependencies and imports in
custom_component.py and add new deps.py file
2023-11-14 22:01:37 -03:00
Gabriel Luiz Freitas Almeida
c36e901a74 Refactor imports and reformat code in
test_setup_superuser.py
2023-11-14 22:00:46 -03:00
cristhianzl
2ef03b56b8 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-14 21:59:52 -03:00
cristhianzl
a81ed4df52 refactor(flows): update import statement in FlowsComponent to use FlowsContext instead of TabsContext
refactor(market-card): update import statement in MarketCardComponent to use FlowsContext instead of TabsContext
refactor(store-page): remove unused setTabId function from StorePage component
2023-11-14 21:59:43 -03:00
Gabriel Luiz Freitas Almeida
2def762831 📦 chore(getters.py): add getters for various services and session in langflow backend
🔨 refactor(test_setup_superuser.py): refactor imports and replace deprecated dependencies in test_setup_superuser.py
2023-11-14 21:57:48 -03:00
Gabriel Luiz Freitas Almeida
60f6d08fc3 Merge remote-tracking branch 'origin/dev' into feature/store 2023-11-14 21:41:58 -03:00
Gabriel Luiz Freitas Almeida
c89e4bc422 Add Object field type to constants.py 2023-11-14 21:01:19 -03:00
Gabriel Luiz Freitas Almeida
c88d63546f 🔧 fix(field_typing): import Object class in __init__.py to fix missing import error
🔧 fix(constants.py): add Object class to CUSTOM_COMPONENT_SUPPORTED_TYPES to support object type in field typing
2023-11-14 21:00:43 -03:00
Gabriel Luiz Freitas Almeida
cfdc2da77b 🔧 fix(store.py): change get_components, read_component, get_tags, get_list_of_components_liked_by_user, and like_component functions to be asynchronous to improve performance and avoid blocking the event loop
🚀 feat(store.py): update get_components function to use async/await syntax for querying and counting components to improve readability and maintainability
🚀 feat(store.py): update read_component function to use async/await syntax for downloading component from the store to improve performance and avoid blocking the event loop
🚀 feat(store.py): update get_tags function to use async/await syntax for getting tags from the store to improve performance and avoid blocking the event loop
🚀 feat(store.py): update get_list_of_components_liked_by_user function to use async/await syntax for getting user likes from the store to improve performance and avoid blocking the event loop
🚀 feat(store.py): update like_component function to use async/await syntax for liking a component and getting the updated likes count from the store to improve performance and avoid blocking the event loop

🐛 fix(service.py): change _get method to async to make it compatible with async requests
 feat(service.py): change call_webhook method to async to make it compatible with async requests
🐛 fix(service.py): change count_components method to async to make it compatible with async requests
 feat(service.py): change query_components method to async to make it compatible with async requests
🐛 fix(service.py): change get_liked_by_user_components method to async to make it compatible with async requests
 feat(service.py): change get_components_in_users_collection method to async to make it compatible with async requests
🐛 fix(service.py): change download method to async to make it compatible with async requests
 feat(service.py): change upload method to async to make it compatible with async requests
🐛 fix(service.py): change get_tags method to async to make it compatible with async requests
 feat(service.py): change get_user_likes method to async to make it compatible with async requests
🐛 fix(service.py): change get_component_likes_count method to async to make it compatible with async requests
 feat(service.py): change like_component method to async to make it compatible with async requests
🐛 fix(utils.py): change update_components_with_user_data method to async to make it compatible with async requests
2023-11-14 16:26:02 -03:00
anovazzi1
775dec574f fix(StorePage): change the label of the "Most Popular" option in the select dropdown to "Popular" for brevity and consistency 2023-11-14 16:01:43 -03:00
anovazzi1
19887d6887 refactor(StorePage): remove unnecessary call to getSavedComponents() in getAllStore() function
fix(StorePage): remove redundant call to getSavedComponents() in onCloseModal() function
2023-11-14 16:00:26 -03:00
anovazzi1
6515cc9e06 fix(StorePage): change authorized prop value from !loadingSaved to hasApiKey for better clarity and consistency 2023-11-14 15:58:37 -03:00
Gabriel Luiz Freitas Almeida
6c18822368 New lock 2023-11-14 15:22:39 -03:00
Gabriel Luiz Freitas Almeida
a7c86f1d1e 🐛 fix(store.py): fix build_filter_conditions method to correctly build filter conditions for querying components
 feat(store.py): add build_liked_filter method to build filter conditions for querying liked components
 feat(store.py): add build_tags_filter method to build filter conditions for querying components with specific tags
 feat(store.py): add build_filter_conditions method to build filter conditions for querying components with various filters
 feat(store.py): modify query_components method to accept filter_conditions parameter for querying components with filters
🔧 chore(utils.py): reorder imports in get_factories_and_deps function
🔧 chore(utils.py): reorder imports in initialize_session_service function
2023-11-14 15:22:12 -03:00
Gabriel Luiz Freitas Almeida
8b6940f1c8 🔀 refactor(API/index.ts): rename 'filter_by_user' parameter to 'liked' for better clarity and consistency 2023-11-14 14:53:46 -03:00
Gabriel Luiz Freitas Almeida
887badcf72 🔧 chore(service.py): remove unused code and add logging for webhook failures in StoreService class 2023-11-14 14:53:39 -03:00
Gabriel Luiz Freitas Almeida
dfcee85374 🔥 refactor(store.py): remove unused imports and commented out code
🔒 chore(store.py): pass 'liked' parameter to 'update_components_with_user_data' function to improve code readability and maintainability
2023-11-14 14:53:32 -03:00
Gabriel Luiz Freitas Almeida
bd4e88273b 🐛 fix(store.py): change filter_by_user parameter name to liked to improve semantics and clarity
 feat(store.py): add support for filtering components by liked status to get_components function
🐛 fix(store.py): remove in_user_collection attribute from ListComponentResponse schema as it is not used
🐛 fix(service.py): change _get method signature to accept Optional parameters and add type hints
 feat(service.py): add build_tags_filter method to build the tags filter for get_components function
🐛 fix(service.py): remove filter_by_user parameter from count_components function and adjust logic accordingly
 feat(service.py): add liked parameter to get_components function to filter components by liked status
🐛 fix(service.py): change get_components_in_users_collection method parameter type from List[UUID] to List[str]
🐛 fix(service.py): change download method parameter type from str to UUID
🐛 fix(utils.py): change update_components_with_user_data function parameter type from List["ListComponentResponse"] to List[ListComponentResponse]
2023-11-14 14:47:02 -03:00