Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: delete files #985

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix: delete files #985

wants to merge 2 commits into from

Conversation

ervandagadzhanyan
Copy link
Collaborator

No description provided.

@@ -7,6 +7,7 @@
import minio
import sqlalchemy.orm
import sqlalchemy_filters.exceptions
from badgerdoc_storage.storage import get_storage
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import the storage instead of a dedicated function, please

Comment on lines 249 to 253
except NotImplementedError as e:
logger_.error(f"{storage.__class__}.remove: {e}")
return False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think we need it here

@@ -236,15 +236,19 @@ def upload_thumbnail(
return True


def delete_one_from_minio(bucket: str, obj: str, client: minio.Minio) -> bool:
def delete_one_from_minio(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you rename it to something more generic, considering the fact we are not linked to minio

@ervandagadzhanyan ervandagadzhanyan force-pushed the fix-delete-files branch 3 times, most recently from 3f3be1e to cfa3576 Compare October 2, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants