From 73f9f2145428f7c5b1b46febfc911aa62d627523 Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Thu, 9 Jan 2025 16:12:00 +0100 Subject: [PATCH] rename to upload --- services/cleanup/models.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/services/cleanup/models.py b/services/cleanup/models.py index 641d2b5fb..3c3e24866 100644 --- a/services/cleanup/models.py +++ b/services/cleanup/models.py @@ -8,12 +8,8 @@ from django.db.models.query import QuerySet from shared.bundle_analysis import StoragePaths from shared.django_apps.core.models import Commit, Pull -from shared.django_apps.reports.models import ( - CommitReport, - CompareCommit, - ReportDetails, - ReportSession, -) +from shared.django_apps.reports.models import CommitReport, CompareCommit, ReportDetails +from shared.django_apps.reports.models import ReportSession as Upload from services.archive import ArchiveService, MinioEndpoints from services.cleanup.utils import CleanupContext @@ -162,7 +158,7 @@ def cleanup_commitreport(context: CleanupContext, query: QuerySet) -> tuple[int, Pull: partial(cleanup_archivefield, "flare"), ReportDetails: partial(cleanup_archivefield, "files_array"), CommitReport: cleanup_commitreport, - ReportSession: partial(cleanup_with_storage_field, "storage_path"), + Upload: partial(cleanup_with_storage_field, "storage_path"), CompareCommit: partial(cleanup_with_storage_field, "report_storage_path"), # TODO: figure out any other models which have files in storage that are not `ArchiveField` # TODO: TA is also storing files in GCS