-
Notifications
You must be signed in to change notification settings - Fork 17
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
Remove code related to world location news article #2529
Conversation
b5f1be1
to
e444dd1
Compare
e444dd1
to
8349714
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR with a good description, which clearly sets out the context for this work as well as all the preliminary investigations you did and decisions made. As I understand there will be no need to render/preview those 2 'orphaned' draft editions.
I also appreciate that you included the translation deletion in a separate commit as it’s much easier to review the changes in the multiple files 🏅
I checked the redirect. Looks like it deletes the relevant code and the existing news_article
is sufficiently tested.
Could we also remove the entry from the list of schemas in the README, the erb file and the frontend'ey bits?
- app/views/content_items/world_location_news_article.html.erb
- app/assets/stylesheets/views/_world-location-news-article.scss
- https://github.com/alphagov/government-frontend/blob/fec549f/app/assets/stylesheets/application.scss#L85
Thanks so much Aga, really appreciate you having a look! And good spot on those remaining references 🕵️♀️, I'll remove those now! |
9d74e0b
to
22d9508
Compare
This content type is no longer in use, and by the time this is merged we will have migrated all content items away from this type.
This content type is no longer in use.
22d9508
to
2728400
Compare
This content type is no longer in use, having been replaced by the 'news article' schema. For example, if you look at some of the urls that are removed here in
config/govuk_examples.yml
, you can see that all of theworld_location_news_article
examples now redirect to a .../news/... url, and have a schema ofnews_article
.Whitehall does not publish anything with this schema anymore, and the few articles that were left behind with this schema were 'orphaned' content items which should have been previously redirected (but we suspect a bulk redirect task probably failed in a few cases, hence leaving behind 5 content items with this schema). This redirect has now been completed for all content items, meaning we have no remaining content items with this schema.
This means that code to render it can now be removed. This will also enable us to clean up the schema from govuk-content-schemas - PR here (failing because of tests removed in the current PR here).
Query on non draft content store showing no remaining items:
There are two content items in the draft content store - these also look like similar cases to the above, as they look 'orphaned' and the editions in whitehall link, and publish, to the version that does not use the world-location-news-article schema. Since these are both old content items, and on the draft stack, and are duplicates of the correct content items with the in-use schema (so if they are ever published, which is unlikely because they're from 2017, they will get published with the new schema and to the correct url), we've made the decision to leave these since we don't think they'll cause issues.
Trello