Skip to content

Commit

Permalink
rename to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jan 14, 2025
1 parent 0dd448f commit 302fb5e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions services/cleanup/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 12 in services/cleanup/models.py

View check run for this annotation

Codecov Notifications / codecov/patch

services/cleanup/models.py#L7-L12

Added lines #L7 - L12 were not covered by tests

from services.archive import ArchiveService, MinioEndpoints
from services.cleanup.utils import CleanupContext

Check warning on line 15 in services/cleanup/models.py

View check run for this annotation

Codecov Notifications / codecov/patch

services/cleanup/models.py#L14-L15

Added lines #L14 - L15 were not covered by tests
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 302fb5e

Please sign in to comment.