From 488013bb7959b0fee5c55fbb4f13abbe704a4f1d Mon Sep 17 00:00:00 2001 From: abram axel booth Date: Wed, 16 Oct 2024 16:34:51 -0400 Subject: [PATCH] wip-reporter-followup --- osf/metrics/reports.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/osf/metrics/reports.py b/osf/metrics/reports.py index 68897c725be..5d71d488e15 100644 --- a/osf/metrics/reports.py +++ b/osf/metrics/reports.py @@ -326,14 +326,3 @@ def for_last_month(cls, item_osfid: str) -> PublicItemUsageReport | None: ) _response = _search.execute() return _response[0] if _response else None - - -@receiver(metrics_post_save, sender=PublicItemUsageReport) -def update_supplementary_metadata(sender, instance, **kwargs): - if website_settings.SHARE_ENABLED: - from api.share.utils import task__update_share - task__update_share.apply_async( - args=(instance.item_osfid,), - kwargs={'is_supplementary': True, 'is_backfill': True}, - countdown=30, # delay 30 seconds; plenty of time for index refresh - )