Skip to content

Conversation

@stevejalim
Copy link
Contributor

@stevejalim stevejalim commented Jan 10, 2025

DO NOT MERGE UNTIL THE VPN RC PAGES HAVE BEEN PUBLISHED IN ALL 10 LANGUAGES FROM THE NEW CMS. See #15846

This changeset removes Contentful-related code from our codebase.

  • Drops the contentful app: views, models and templates
  • Drops Contentful-related settings
  • Drop static bundles that appeared to be for Contentful components only
  • Updates DB export script to not dump the contentful table
  • Does NOT do anything to automatically drop the contentful_ DB tables, however
  • Remove use of prefer_cms decorator for VPN RC views and moves the routing to cms_only_urls so that we can still reverse those page addresses
  • Move legacy /more/ redirects related to the VPN pages to global redirects (losing the locale-availability check, but deferring it to the CMS to 404 or not instead)

Issue / Bugzilla link

Resolves #15843
Depends on #15846

@stevejalim
Copy link
Contributor Author

@alexgibson Over to you for a scan over. If you're happy let's push to to the integration tests branch to get an early heads-up on any issues.

Hopefully we'll have the VPN RC pages all published in all locales late next week, then we can merge this

@codecov
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.70%. Comparing base (f13a56d) to head (2d4fe74).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15845      +/-   ##
==========================================
+ Coverage   79.28%   79.70%   +0.41%     
==========================================
  Files         159      152       -7     
  Lines        8343     7436     -907     
==========================================
- Hits         6615     5927     -688     
+ Misses       1728     1509     -219     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

stevejalim and others added 2 commits January 20, 2025 11:18
* Drops the contentful app: views, models and templates
* Drops Contentful-related settings
* Drop static bundles that appeared to be for Contentful components only
* Updates DB export script to not dump the contentful table
* Does NOT do anything to automatically drop the contentful_ DB tables, however
* Remove use of prefer_cms decorator for VPN RC views and moves the routing to cms_only_urls so that we can still reverse those page addresses
* Move legacy /more/ redirects related to the VPN pages to global redirects (losing the locale-availability check, but deferring it to the CMS to 404 or not instead)
@stevejalim stevejalim force-pushed the 15843-remove-contentful branch from 2ca808c to 2d4fe74 Compare January 20, 2025 11:19
@stephaniehobson
Copy link
Contributor

stephaniehobson commented May 14, 2025

@stevejalim What's the status of this? It'd be good to merge the simplification. Also, it needs a rebase ;)

@stephaniehobson
Copy link
Contributor

Note: this is blocked on deciding what to do with the VPN pages with translations that existed in Contenful but do not yet have translations in Wagtail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Contentful app, templates and related CSS bundles

5 participants