📝 (endpoints.py): Add support for caching components to improve performance and reduce load on the server
📝 (setup.py): Change function create_or_update_starter_projects to be asynchronous to handle await calls 📝 (types.py): Add caching mechanism to function aget_all_components to improve performance and reduce redundant calls 📝 (main.py): Change call to create_or_update_starter_projects to be awaited to handle asynchronous operation 📝 (index.tsx): Add functionality to reload components in the menu bar to update component data dynamically 📝 (index.ts): Modify getAll function to accept a force_refresh parameter to force a refresh of data 📝 (typesStore.ts): Update getTypes function to accept a force_refresh parameter and pass it to the getAll function 📝 (index.ts): Update getTypes function in TypesStoreType to accept a force_refresh parameter 📝 (test_initial_setup.py): Update test_create_or_update_starter_projects to await the asynchronous function create_or_update_starter_projects
This commit is contained in:
parent
dd4b617b48
commit
a65965fcb3
9 changed files with 75 additions and 13 deletions
|
|
@ -46,7 +46,7 @@ def test_get_project_data():
|
|||
async def test_create_or_update_starter_projects(client):
|
||||
with session_scope() as session:
|
||||
# Run the function to create or update projects
|
||||
create_or_update_starter_projects()
|
||||
await create_or_update_starter_projects()
|
||||
|
||||
# Get the number of projects returned by load_starter_projects
|
||||
num_projects = len(load_starter_projects())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue