Skip to content

Commit b106f52

Browse files
committed
Feature flag: remove CDN_ENABLED
There are some leftovers here. CDN is enabled by default to all projects. Related #9779
1 parent ee52a2f commit b106f52

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

readthedocs/projects/models.py

-8
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,6 @@ def add_features(sender, **kwargs):
19081908
UPDATE_CONDA_STARTUP = "update_conda_startup"
19091909
CONDA_APPEND_CORE_REQUIREMENTS = "conda_append_core_requirements"
19101910
ALL_VERSIONS_IN_HTML_CONTEXT = "all_versions_in_html_context"
1911-
CDN_ENABLED = "cdn_enabled"
19121911
DOCKER_GVISOR_RUNTIME = "gvisor_runtime"
19131912
RECORD_404_PAGE_VIEWS = "record_404_page_views"
19141913
ALLOW_FORCED_REDIRECTS = "allow_forced_redirects"
@@ -1975,13 +1974,6 @@ def add_features(sender, **kwargs):
19751974
"when building with Sphinx"
19761975
),
19771976
),
1978-
(
1979-
CDN_ENABLED,
1980-
_(
1981-
"Proxito: CDN support for a project's public versions when privacy levels "
1982-
"are enabled."
1983-
),
1984-
),
19851977
(
19861978
DOCKER_GVISOR_RUNTIME,
19871979
_("Build: Use Docker gVisor runtime to create build container."),

readthedocs/proxito/tests/test_full.py

-8
Original file line numberDiff line numberDiff line change
@@ -1524,14 +1524,6 @@ def test_404_download(self):
15241524
)
15251525
class TestCDNCache(BaseDocServing):
15261526

1527-
def setUp(self):
1528-
super().setUp()
1529-
get(
1530-
Feature,
1531-
feature_id=Feature.CDN_ENABLED,
1532-
projects=list(Project.objects.all()),
1533-
)
1534-
15351527
def _test_cache_control_header_project(self, expected_value, host=None):
15361528
"""
15371529
Test the CDN-Cache-Control header on requests for `self.project`.

0 commit comments

Comments
 (0)