You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Team is testing GraphRag Data Management API. We are able to list and upload containers but the delete operation fails
To Reproduce
Steps to reproduce the behavior:
Start backend server
Go to localhost:port#/manpages/docs
trigger the /data/delete/{storage_name}
See error
Expected behavior
Sucessfully delete the container both on cosmos and storage account.
Screenshots
If applicable, add screenshots to help explain your problem. -- see attached
Desktop (please complete the following information):
OS: Mac - Sonoma
Version 14.6.1
Additional context
GraphRag API is deployed to kubernetes as pod. We are running it via service / port forward to local host. Delete operations fail at File "/backend/src/api/data.py", line 208, in delete_files
container_store_client.delete_item(
@data_route.delete(
"/{storage_name}",
summary="Delete a data storage container",
response_model=BaseResponse,
responses={200: {"model": BaseResponse}},
)
async def delete_files(storage_name: str):
"""
Delete a specified data storage container.
"""
sanitized_storage_name = sanitize_name(storage_name)
try:
# delete container in Azure Storage
delete_blob_container(sanitized_storage_name)
# update container-store in cosmosDB
container_store_client = (
azure_storage_client_manager.get_cosmos_container_client(
database_name="graphrag", container_name="container-store"
)
)
container_store_client.delete_item(
item=sanitized_storage_name,
partition_key=sanitized_storage_name
Describe the bug
Team is testing GraphRag Data Management API. We are able to list and upload containers but the delete operation fails
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Sucessfully delete the container both on cosmos and storage account.
Screenshots
If applicable, add screenshots to help explain your problem. -- see attached
Desktop (please complete the following information):
Additional context
GraphRag API is deployed to kubernetes as pod. We are running it via service / port forward to local host. Delete operations fail at File "/backend/src/api/data.py", line 208, in delete_files
container_store_client.delete_item(
@data_route.delete(
"/{storage_name}",
summary="Delete a data storage container",
response_model=BaseResponse,
responses={200: {"model": BaseResponse}},
)
async def delete_files(storage_name: str):
"""
Delete a specified data storage container.
"""
sanitized_storage_name = sanitize_name(storage_name)
try:
# delete container in Azure Storage
delete_blob_container(sanitized_storage_name)
# update container-store in cosmosDB
container_store_client = (
azure_storage_client_manager.get_cosmos_container_client(
database_name="graphrag", container_name="container-store"
)
)
container_store_client.delete_item(
item=sanitized_storage_name,
partition_key=sanitized_storage_name
The text was updated successfully, but these errors were encountered: