Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add temporary rake task to cleanup Whitehall Frontend documents
All public rendering has been removed from Whitehall, therefore no content items should exist that believe they should be rendered by Whitehall Frontend. A mismatch currently occurs where router believes these items of content should be redirected, but Content Store has a content item for them (e.g. policy areas). Presumably a temporary rake task or something on a console was run at some distant point in the past to implement the redirects in router, but the content items were never removed. Three issues were caused: - users can access the content items still, even though the content has been changed/withdrawn/moved - running the `register:routes` rake task in Content Store will result in `whitehall-frontend` being registered with router, even though it no longer exists - it's causing us to believe Whitehall Frontend still renders things when updating [these pages](https://docs.publishing.service.gov.uk/document-types.html) in the dev docs This completes that clean-up.
- Loading branch information