From 5718e4694b6c0ed783689530967fca8bc5f6cb0f Mon Sep 17 00:00:00 2001 From: Krystle Salazar Date: Fri, 16 Jun 2023 12:12:31 -0400 Subject: [PATCH 1/2] Update env files --- api/env.docker | 2 -- api/env.template | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/env.docker b/api/env.docker index 64cc15136d6..fce8ad7f460 100644 --- a/api/env.docker +++ b/api/env.docker @@ -19,5 +19,3 @@ SEMANTIC_VERSION=1.0.0 ELASTICSEARCH_URL=es WATERMARK_ENABLED=True - -FILTER_DEAD_LINKS_BY_DEFAULT=False diff --git a/api/env.template b/api/env.template index f9b8348d7ee..c1ac59d1031 100644 --- a/api/env.template +++ b/api/env.template @@ -64,5 +64,5 @@ IS_PROXIED=False #SENTRY_SAMPLE_RATE=1.0 #SENTRY_DSN= -#FILTER_DEAD_LINKS_BY_DEFAULT=False +FILTER_DEAD_LINKS_BY_DEFAULT=False ENABLE_FILTERED_INDEX_QUERIES=True From 1745eb07d1fa19082e392071080b2ab5405a8d18 Mon Sep 17 00:00:00 2001 From: Krystle Salazar Date: Fri, 16 Jun 2023 12:14:24 -0400 Subject: [PATCH 2/2] Treat 403s from Europeana as dead links --- api/api/utils/check_dead_links/provider_status_mappings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/api/utils/check_dead_links/provider_status_mappings.py b/api/api/utils/check_dead_links/provider_status_mappings.py index 046ca68233e..4ac3205569e 100644 --- a/api/api/utils/check_dead_links/provider_status_mappings.py +++ b/api/api/utils/check_dead_links/provider_status_mappings.py @@ -20,4 +20,8 @@ class StatusMapping: # https://github.com/WordPress/openverse/issues/1200 unknown=(429,), ), + europeana=StatusMapping( + # https://github.com/WordPress/openverse/issues/2417 + unknown=(429,), + ), )