Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature flag: remove CDN_ENABLED which is not used anymore #10921

Merged
merged 1 commit into from Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 0 additions & 8 deletions readthedocs/projects/models.py
Expand Up @@ -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"
Expand Down Expand Up @@ -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."),
Expand Down
8 changes: 0 additions & 8 deletions readthedocs/proxito/tests/test_full.py
Expand Up @@ -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`.
Expand Down