-
Notifications
You must be signed in to change notification settings - Fork 561
Change dotcoom rendering parameter (?guui => ?dcr=true/false) #21753
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
Conversation
PRbuilds results: Screenshots 💚 A11y validation 💚 Microdata Validation Apache Benchmark Load Testing LightHouse Reporting --automated message |
@@ -78,7 +78,7 @@ class ArticleController( | |||
} | |||
|
|||
private def getJson(article: ArticlePage)(implicit request: RequestHeader): List[(String, Object)] = { | |||
val contentFieldsJson = if (request.isGuuiJson) List( |
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.
It looks pretty correct to get rid of guuiJson to just be using forceDCR.
But just to make 100% sure, can you check that .json?dcr=true
on an article definitely still works locally?, and produces a different result to .json?dcr=false
, which should be equivalent to just .json
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.
Yep have verified this!
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.
👍
e59759f
to
8521163
Compare
Seen on PROD (merged by @philmcmahon 19 minutes and 12 seconds ago)
|
guardian/frontend#21753 made `?dcr` the way to control whether or not a given article is rendered by DCR, but this was not documented in DCR's README.md!
What does this change?
Renames the parameter we use to force dotcom rendering. Currently we have
guui
andguui=false
. In this bright new world we will havedcr=true
anddcr=false
which seems more sensible.It's still an acronym though so I'm happy for something else, just not sure
rendering=
would be that good either. I've stuck a comment in where the value is read from the query string, hopefully that should minimise confusion.Tested