Skip to content

Commit

Permalink
Feature flag: remove CDN_ENABLED which is not used anymore (#10921)
Browse files Browse the repository at this point in the history
Small code cleaning to continue removing old feature flags.
  • Loading branch information
humitos authored Nov 27, 2023
1 parent 60944ee commit 1b38024
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions readthedocs/projects/models.py
Original file line number Diff line number Diff line change
@@ -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."),
8 changes: 0 additions & 8 deletions readthedocs/proxito/tests/test_full.py
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit 1b38024

Please sign in to comment.