Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #26997
What does this change?
atom-renderer
What is the value of this and can you measure success?
Unblocks the Play 3 upgrade:
Removes deprecated code
Impact
1. Articles rendered by frontend will no longer render audio, chart, explainer, guide, Q & A, quiz and timeline atoms. Only interactive and media atoms will be rendered
This has a very low impact on users. Over the past 2 weeks we've can't see any articles published after 2017 rendered by frontend in Kibana (unless the user requests for
?dcr=false
).The reason why the majority of these old articles are still rendered by frontend is because they are old liveblogs. Here's what happens if we filter those out.
This issue will be resolved in:
2.
embed/atom
endpoint will stop rendering audio atomsIt looks like only the Google Bot is hitting the endpoint
embed/atom/audio
3. Editions and AMP still request some atoms by hitting
embed/atom
. What about those?Editions and AMP hit
embed/atom
endpoint to request:This change won't have any impact to the above requests because these atoms are already rendered by client-side code that lives in frontend and
atom-renderer
code is not used.frontend/applications/app/controllers/AtomPageController.scala
Lines 136 to 145 in c354525
frontend/applications/app/controllers/AtomPageController.scala
Lines 196 to 197 in c354525
frontend/applications/app/views/atomEmbed.scala.html
Lines 30 to 33 in c354525
Twirl templates for:
4. How do we know Editions only requests media and AMP only requests chart and interactive atoms?
Editions
Only for media atoms Editions request the image from the poster image url. No other reference to any other type of atom exists in the editions repo.
Tested in CODE
AMP
Tested in CODE
Chart

Interactive

Also, using https://atomworkshop.gutools.co.uk/ I found articles with different types of atoms, requested them and verified via Kibana that nothing hits
embed/atom
endpoint to request those atoms.