From 1b3802478d12e76aef1200618091a0a653e9ff8d Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 27 Nov 2023 18:32:00 +0100 Subject: [PATCH] Feature flag: remove `CDN_ENABLED` which is not used anymore (#10921) Small code cleaning to continue removing old feature flags. --- readthedocs/projects/models.py | 8 -------- readthedocs/proxito/tests/test_full.py | 8 -------- 2 files changed, 16 deletions(-) diff --git a/readthedocs/projects/models.py b/readthedocs/projects/models.py index 6a01a9aa57e..35f33d5845c 100644 --- a/readthedocs/projects/models.py +++ b/readthedocs/projects/models.py @@ -1921,7 +1921,6 @@ def add_features(sender, **kwargs): API_LARGE_DATA = "api_large_data" CONDA_APPEND_CORE_REQUIREMENTS = "conda_append_core_requirements" ALL_VERSIONS_IN_HTML_CONTEXT = "all_versions_in_html_context" - CDN_ENABLED = "cdn_enabled" RECORD_404_PAGE_VIEWS = "record_404_page_views" ALLOW_FORCED_REDIRECTS = "allow_forced_redirects" DISABLE_PAGEVIEWS = "disable_pageviews" @@ -1988,13 +1987,6 @@ def add_features(sender, **kwargs): "when building with Sphinx" ), ), - ( - CDN_ENABLED, - _( - "Proxito: CDN support for a project's public versions when privacy levels " - "are enabled." - ), - ), ( RECORD_404_PAGE_VIEWS, _("Proxito: Record 404s page views."), diff --git a/readthedocs/proxito/tests/test_full.py b/readthedocs/proxito/tests/test_full.py index a47ea1f98d8..53bf4ff50e8 100644 --- a/readthedocs/proxito/tests/test_full.py +++ b/readthedocs/proxito/tests/test_full.py @@ -1695,14 +1695,6 @@ def test_404_download(self): ) class TestCDNCache(BaseDocServing): - def setUp(self): - super().setUp() - get( - Feature, - feature_id=Feature.CDN_ENABLED, - projects=list(Project.objects.all()), - ) - def _test_cache_control_header_project(self, expected_value, host=None): """ Test the CDN-Cache-Control header on requests for `self.project`.