Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 2e54905

Browse files
committed
remove the changes to should_write_to_storage
1 parent 9f5c4fd commit 2e54905

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

shared/django_apps/core/models.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,16 +421,8 @@ def should_write_to_storage(self) -> bool:
421421
"""
422422
This only applies to the flare field.
423423
Flare is used to draw static graphs (see GraphHandler view in api) and can be large.
424-
The majority of flare graphs are used in pr comments, so we keep the (maybe large) flare available while
425-
the pull is OPEN. If the pull is not OPEN, we dump the flare to save space. We will recreate it on
426-
the fly if it is needed for a non-OPEN pull (see GraphHandler view in api).
427424
Flare cleanup is handled by FlareCleanupTask in worker.
428425
"""
429-
if self.state != PullStates.OPEN.value:
430-
# while a pull is OPEN, we check whether to write_to_storage
431-
# when a pull is no longer OPEN, we no longer want the flare in storage.
432-
# The nightly cron job cleans up the value in storage (see FlareCleanupTask in worker)
433-
return False
434426
if self.repository is None or self.repository.author is None:
435427
return False
436428
is_codecov_repo = self.repository.author.username == "codecov"

0 commit comments

Comments
 (0)