Skip to content

Commit 302fb5e

Browse files
committed
rename to upload
1 parent 0dd448f commit 302fb5e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

services/cleanup/models.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
from django.db.models.query import QuerySet
99
from shared.bundle_analysis import StoragePaths
1010
from shared.django_apps.core.models import Commit, Pull
11-
from shared.django_apps.reports.models import (
12-
CommitReport,
13-
CompareCommit,
14-
ReportDetails,
15-
ReportSession,
16-
)
11+
from shared.django_apps.reports.models import CommitReport, CompareCommit, ReportDetails
12+
from shared.django_apps.reports.models import ReportSession as Upload
1713

1814
from services.archive import ArchiveService, MinioEndpoints
1915
from services.cleanup.utils import CleanupContext
@@ -162,7 +158,7 @@ def cleanup_commitreport(context: CleanupContext, query: QuerySet) -> tuple[int,
162158
Pull: partial(cleanup_archivefield, "flare"),
163159
ReportDetails: partial(cleanup_archivefield, "files_array"),
164160
CommitReport: cleanup_commitreport,
165-
ReportSession: partial(cleanup_with_storage_field, "storage_path"),
161+
Upload: partial(cleanup_with_storage_field, "storage_path"),
166162
CompareCommit: partial(cleanup_with_storage_field, "report_storage_path"),
167163
# TODO: figure out any other models which have files in storage that are not `ArchiveField`
168164
# TODO: TA is also storing files in GCS

0 commit comments

Comments
 (0)