Commit 790bc31
Remove contentful from the codebase (#16960)
* Remove Contentful usage from Products app
- Replace Contentful-based active_locale_available() with Wagtail query
- Remove resource center view functions and URL patterns
- Remove Contentful imports and unused helper functions
- Keep vpn_resource_center_redirect() for backward compatibility
- Fix circular import by moving model import inside function
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove Contentful usage from Firefox app
- Remove ContentfulPage import
- Delete FirefoxContentful view class
- Remove Contentful URL pattern
- Remove unused settings import
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove Contentful usage from Mozorg app
- Remove ContentfulPage import
- Delete ContentfulPreviewView class
- Delete dev_urls.py file (only contained Contentful preview URL)
- Remove dev_urls import and usage from mozorg/urls.py
- Remove unused imports (method_decorator, never_cache, settings)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove Contentful from Base views
- Remove ContentfulEntry import
- Delete get_contentful_sync_info() function
- Remove contentful_info from cron-health-check context
- Remove unused tz_now import
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove Contentful from Sitemaps
- Remove Contentful imports
- Delete _get_vrc_urls() and get_contentful_urls() functions
- Remove get_contentful_urls() call from get_all_urls()
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Clean up Contentful test files
- Delete all contentful/tests/ files
- Delete mozorg/tests/contentful_test_urlconf.py
- Remove Contentful imports and tests from base/tests/test_views.py
- Remove Contentful test classes from products/tests/test_views.py
- Remove Contentful tests and mocking from sitemaps/tests/test_utils.py
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove Contentful configuration from settings
- Remove bedrock.contentful.constants import
- Remove bedrock.contentful from INSTALLED_APPS
- Delete all CONTENTFUL_* settings
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove contentful third-party dependency
- Remove contentful==2.5.0 from requirements/prod.in
- Regenerate requirements/prod.txt
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Delete Contentful Django app
Remove entire bedrock/contentful/ directory including:
- models, views, API code, utilities
- management commands
- migrations (database tables will remain for later cleanup)
- templates and templatetags
- all other files and subdirectories
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Update database scripts to remove Contentful references
- Remove contentful.ContentfulEntry from export-db-to-sqlite.sh
- Remove Contentful data import/export section from fill-empty-postgres-database.sh
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Clean up remaining Contentful references
- Delete contentful-all.html templates from mozorg and firefox
- Remove Contentful sync info from cron-health-check.html
- Delete test_contentful_preview_view test from mozorg/tests
- Remove unused imports (Mock, pytest) from mozorg/tests/test_views.py
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove Contentful CSS bundles and files
- Remove 15 Contentful-related bundle definitions from static-bundles.json
- Delete all CSS files in media/css/contentful/ directory
- Remove bundle definitions: mozilla-c-article, mozilla-c-call-out, mozilla-c-picto,
mozilla-c-section-heading, mozilla-c-split, mozilla-c-card, mozilla-t-multi-column,
firefox-c-article, firefox-c-call-out, firefox-c-picto, firefox-c-section-heading,
firefox-c-split, c-logo, firefox-c-card, firefox-t-multi-column
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Add VPN Resource Center URLs to cms_only_urls
Add URL patterns for VPN Resource Center pages that are now CMS-only:
- products.vpn.resource-center.landing
- products.vpn.resource-center.article
These were previously in products/urls.py with prefer_cms() decorator
but removed when Contentful views were deleted. Adding them here allows
reverse URL lookups to work while pages are served by the CMS.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Remove remaining Contentful references from config files
- Remove contentful per-file-ignores from pyproject.toml
- Remove contentful module from example_sentry_payload.json
- Remove contentful_migrations ignore pattern from eslint.config.js
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* Add in redirects from old-old VPN info content
---------
Co-authored-by: Claude Sonnet 4.5 <[email protected]>1 parent 1e58aa8 commit 790bc31
File tree
78 files changed
+25
-6726
lines changed- bedrock
- base
- templates
- tests
- data
- cms
- contentful
- management
- commands
- migrations
- templates/includes/contentful
- templatetags
- tests
- firefox
- templates/firefox
- mozorg
- templates/mozorg
- tests
- products
- tests
- settings
- sitemaps
- tests
- bin
- media
- css/contentful
- firefox
- mozilla
- requirements
- tests/redirects
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
78 files changed
+25
-6726
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 92 | | |
103 | 93 | | |
104 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | | - | |
15 | | - | |
| 12 | + | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 76 | | |
110 | 77 | | |
111 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 109 | | |
130 | 110 | | |
131 | 111 | | |
| |||
172 | 152 | | |
173 | 153 | | |
174 | 154 | | |
175 | | - | |
176 | 155 | | |
177 | 156 | | |
178 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
This file was deleted.
0 commit comments