Skip to content

Client for reading Fastly dictionary ab test state #14344

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dotcom-rendering/fixtures/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ module.exports = {
googletagUrl: '//securepubads.g.doubleclick.net/tag/js/gpt.js',
mmaUrl: 'https://manage.theguardian.com',
abTests: {},
serverSideABTests: {},
edition: 'UK',
ipsosTag: 'environment',
isLiveBlog: false,
Expand Down
3 changes: 2 additions & 1 deletion dotcom-rendering/fixtures/generated/cricket-match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,7 @@ export const cricketMatchData: FECricketMatchPage = {
prebidBidCache: true,
},
abTests: {},
serverSideABTests: {},
googletagUrl: '//securepubads.g.doubleclick.net/tag/js/gpt.js',
stage: 'PROD',
frontendAssetsFullURL: 'https://assets.guim.co.uk/',
Expand All @@ -1901,7 +1902,7 @@ export const cricketMatchData: FECricketMatchPage = {
forecastsapiurl: '/weatherapi/forecast',
supportUrl: 'https://support.theguardian.com',
commercialBundleUrl:
'https://assets.guim.co.uk/commercial/b46e5e342ee9d3f9e36a/graun.standalone.commercial.js',
'https://assets.guim.co.uk/commercial/d05ba48ca72061c05d80/graun.standalone.commercial.js',
idOAuthUrl: 'https://oauth.theguardian.com',
webTitle: 'Fifth Test Match, The Kia Oval',
isFront: false,
Expand Down
131 changes: 64 additions & 67 deletions dotcom-rendering/fixtures/generated/fe-articles/Analysis.ts

Large diffs are not rendered by default.

137 changes: 67 additions & 70 deletions dotcom-rendering/fixtures/generated/fe-articles/Audio.ts

Large diffs are not rendered by default.

99 changes: 48 additions & 51 deletions dotcom-rendering/fixtures/generated/fe-articles/Comment.ts

Large diffs are not rendered by default.

196 changes: 99 additions & 97 deletions dotcom-rendering/fixtures/generated/fe-articles/Dead.ts

Large diffs are not rendered by default.

83 changes: 40 additions & 43 deletions dotcom-rendering/fixtures/generated/fe-articles/Editorial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const Editorial: FEArticle = {
},
],
},
elementId: 'dfb472d2-1d83-4332-bb06-ebb02fab56ef',
elementId: '64f27ca5-46e2-4a85-b2ff-ac5680ecc888',
imageSources: [
{
weighting: 'inline',
Expand Down Expand Up @@ -297,32 +297,32 @@ export const Editorial: FEArticle = {
{
_type: 'model.dotcomrendering.pageElements.TextBlockElement',
html: '<p>The greatest advances in the battle against the coronavirus have been made by modern science, but before there were vaccines, countries had to rely on older techniques: stopping people mingling; preventing new cases of the disease arriving from overseas. Britain’s record with lockdowns is not great (late to implement, premature in lifting), but with quarantine at the border there is barely even a record to defend. For much of last year there was a notional obligation on travellers from various countries to self-isolate on arrival in the UK, but with a shifting roster of places that qualified for “safe” travel corridors.</p>',
elementId: '444bb991-3779-49ed-abd5-3a2535903440',
elementId: '350074cb-d950-4e69-b762-f4917e294151',
},
{
_type: 'model.dotcomrendering.pageElements.TextBlockElement',
html: '<p>There were many categories of exemption. The regulations were unclear and poorly implemented. <a href="https://www.theguardian.com/world/commentisfree/2021/jan/28/uk-covid-travel-quarantine-hotel" title="">Efforts at enforcement have been patchy</a>. Essentially, self-isolation has been self-policed. Only towards the end of last year, as it became clear that mutant strains of the virus were spreading – and that Britain’s approach was persistently failing – did the government start focusing on <a href="https://www.theguardian.com/world/2021/jan/27/how-quarantine-rules-work-and-what-uk-government-is-planning" title="">quarantine as part of the anti-virus arsenal</a>. More travellers are now required to show proof of a negative Covid test and there are tighter restrictions on arrivals from certain “hotspot” countries. That approach is still flawed. People, and the virus they might carry, do not always travel straight from the heart of an outbreak to the UK. Mutations are dispersed along multiple paths.</p>',
elementId: 'a84e7e42-1755-4138-a6c9-af07f7d4b3bf',
elementId: 'a55607e4-7309-478c-8585-64a0673488f7',
},
{
_type: 'model.dotcomrendering.pageElements.TextBlockElement',
html: '<p>Ministers have said further border measures are required, but cannot say when they will be applied. The new regime is expected to involve diverting large numbers of arrivals to government-approved hotels for up to 10 days, with an option of getting out sooner with a negative test. The Department for Transport and the Treasury <a href="https://www.theguardian.com/world/2021/feb/03/grant-shapps-resists-blanket-border-controls-to-stem-covid-in-britain" title="">have been squeamish</a> about the cost of such a regime. Passengers would get a bill, but the whole system would still be expensive and inflict another wound on an already injured aviation sector.</p>',
elementId: '55f8f7ec-5644-4212-bc09-f790b8615bb6',
elementId: '69b58f12-6653-49b0-be16-1da318071986',
},
{
_type: 'model.dotcomrendering.pageElements.TextBlockElement',
html: '<p>But, as has been demonstrated many times in the pandemic, resisting tighter restrictions to avoid an immediate financial burden is a false economy. Delay allows the disease to spread. The onerous measures are still required and have to be in place for longer. That remains true even as the vaccination programme is rolled out. Not enough is yet known about vaccine resilience in the face of recently discovered coronavirus variants, let alone any future mutations. <a href="https://www.theguardian.com/world/2021/jan/22/covid-vaccines-what-are-the-implications-of-new-variants-of-virus" title="">The risk is not negligible.</a></p>',
elementId: '5b1e1f08-3bf9-4a54-b556-9e5330c5abe0',
elementId: '82f6f1d2-224c-40ed-8fb8-bcdfd7c0d34c',
},
{
_type: 'model.dotcomrendering.pageElements.TextBlockElement',
html: '<p>Countries with the strongest records against disease have applied the full range of containment measures quickly and thoroughly, including efficient testing, contact tracing, and a presumption that all new arrivals face quarantine (with some flexibility for humanitarian exceptions, naturally). That principle should be the basis for the UK’s regime. A speedy vaccination roll-out has given Boris Johnson <a href="https://www.theguardian.com/society/2021/jan/31/daily-record-as-600000-people-in-the-uk-receive-covid-jabs-on-saturday" title="">cause to celebrate</a> his government’s accomplishments relative to other countries. Ministerial relief at having something to cheer is palpable, but it must not lead to neglect of other fronts in the battle or feed the culture of impatience and denial that causes many Conservative MPs to demand unwarranted easing of restrictions.</p>',
elementId: 'd105bed6-3e2b-4291-9fc6-da6eaf118bfc',
elementId: '473860cf-fd40-42c1-b4ed-c0ba426c963c',
},
{
_type: 'model.dotcomrendering.pageElements.TextBlockElement',
html: '<p>No one should belittle the social, economic and psychological cost of anti-Covid restrictions. Quarantine, like lockdown, is a harsh instrument to be used only as an emergency resort. But we are now a year into such an emergency. The government’s haphazard approach, justified by a pursuit of short-term economic relief, has only prolonged the ordeal. The vaccine programme illuminates a way out. It would be a tragic squandering of that success if overreliance on new technology were to breed complacency regarding older but no less vital methods of protecting the public.</p>',
elementId: '7b5faf0c-a2ef-4edf-accb-1a81954208a1',
elementId: '83bf082a-69bb-40ad-8067-28f827af260a',
},
],
attributes: {
Expand Down Expand Up @@ -535,7 +535,7 @@ export const Editorial: FEArticle = {
productID: 'theguardian.com:basic',
},
image: [
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMtYWdlLTIwMjEucG5n&enable=upscale&s=e7c2330f3db61275d41a19075da11728',
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&precrop=40:21,offset-x50,offset-y0&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMtYWdlLTIwMjEucG5n&enable=upscale&s=1af342de88461ffd633fdeb521ec0a7c',
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=1200&quality=85&auto=format&fit=crop&s=aefabb0b00e0f22e6369e0e289b1d699',
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=900&quality=85&auto=format&fit=crop&s=7826af58a1f33eca97d979efbeb2fd0e',
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&quality=85&auto=format&fit=max&s=0701f8ecfdb34e888d932a0c334c886e',
Expand Down Expand Up @@ -570,7 +570,7 @@ export const Editorial: FEArticle = {
'article:author': 'https://www.theguardian.com/profile/editorial',
'og:image:width': '1200',
'og:image':
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMtYWdlLTIwMjEucG5n&enable=upscale&s=e7c2330f3db61275d41a19075da11728',
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&precrop=40:21,offset-x50,offset-y0&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMtYWdlLTIwMjEucG5n&enable=upscale&s=1af342de88461ffd633fdeb521ec0a7c',
'al:ios:url':
'gnmguardian://commentisfree/2021/feb/03/the-guardian-view-on-quarantine-an-old-method-and-a-vital-one?contenttype=Article&source=applinks',
'article:publisher': 'https://www.facebook.com/theguardian',
Expand Down Expand Up @@ -603,7 +603,7 @@ export const Editorial: FEArticle = {
'twitter:app:url:iphone':
'gnmguardian://commentisfree/2021/feb/03/the-guardian-view-on-quarantine-an-old-method-and-a-vital-one?contenttype=Article&source=twitter',
'twitter:image':
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMtYWdlLTIwMjEucG5n&s=3ae71df7698ef52ebb1e0c89bf8574b6',
'https://i.guim.co.uk/img/media/c8200f3ea53cda44927b11af11e8fc731afc3f34/0_0_5322_3193/master/5322.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&precrop=40:21,offset-x50,offset-y0&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMtYWdlLTIwMjEucG5n&s=336744e57f749ed41457eb13c074d605',
'twitter:site': '@guardian',
'twitter:app:url:ipad':
'gnmguardian://commentisfree/2021/feb/03/the-guardian-view-on-quarantine-an-old-method-and-a-vital-one?contenttype=Article&source=twitter',
Expand Down Expand Up @@ -765,6 +765,7 @@ export const Editorial: FEArticle = {
googletagUrl: '//securepubads.g.doubleclick.net/tag/js/gpt.js',
mmaUrl: 'https://manage.theguardian.com',
abTests: {},
serverSideABTests: {},
edition: 'UK',
ipsosTag: 'environment',
isLiveBlog: false,
Expand Down Expand Up @@ -1141,7 +1142,7 @@ export const Editorial: FEArticle = {
url: '/world/europe-news',
},
{
title: 'US',
title: 'US news',
url: '/us-news',
longTitle: 'US news',
},
Expand Down Expand Up @@ -1222,6 +1223,11 @@ export const Editorial: FEArticle = {
url: '/football/teams',
longTitle: 'football/teams',
},
{
title: 'Euro 2025',
url: '/football/women-s-euro-2025',
longTitle: 'football/women-s-euro-2025',
},
],
},
{
Expand Down Expand Up @@ -1396,6 +1402,11 @@ export const Editorial: FEArticle = {
url: '/football/teams',
longTitle: 'football/teams',
},
{
title: 'Euro 2025',
url: '/football/women-s-euro-2025',
longTitle: 'football/women-s-euro-2025',
},
],
},
{
Expand Down Expand Up @@ -1624,28 +1635,6 @@ export const Editorial: FEArticle = {
title: 'Inside the Guardian',
url: 'https://www.theguardian.com/insidetheguardian',
},
{
title: 'The Observer',
url: '/observer',
children: [
{
title: 'Comment',
url: '/theobserver/news/comment',
},
{
title: 'The New Review',
url: '/theobserver/new-review',
},
{
title: 'Observer Magazine',
url: '/theobserver/magazine',
},
{
title: 'Observer Food Monthly',
url: '/theobserver/foodmonthly',
},
],
},
{
title: 'Guardian Weekly',
url: 'https://www.theguardian.com/weekly?INTCMP=gdnwb_mawns_editorial_gweekly_GW_TopNav_UK',
Expand All @@ -1663,17 +1652,13 @@ export const Editorial: FEArticle = {
url: '/crosswords/series/quick',
},
{
title: 'Speedy',
url: '/crosswords/series/speedy',
title: 'Sunday quick',
url: '/crosswords/series/sunday-quick',
},
{
title: 'Quick cryptic',
url: '/crosswords/series/quick-cryptic',
},
{
title: 'Everyman',
url: '/crosswords/series/everyman',
},
{
title: 'Quiptic',
url: '/crosswords/series/quiptic',
Expand All @@ -1686,10 +1671,6 @@ export const Editorial: FEArticle = {
title: 'Prize',
url: '/crosswords/series/prize',
},
{
title: 'Azed',
url: '/crosswords/series/azed',
},
{
title: 'Genius',
url: '/crosswords/series/genius',
Expand All @@ -1712,6 +1693,10 @@ export const Editorial: FEArticle = {
title: 'Corrections',
url: '/theguardian/series/corrections-and-clarifications',
},
{
title: 'Tips',
url: 'https://www.theguardian.com/tips',
},
],
brandExtensions: [
{
Expand Down Expand Up @@ -1976,6 +1961,18 @@ export const Editorial: FEArticle = {
dataLinkName: 'uk : footer : patrons',
extraClasses: '',
},
{
text: 'Tips',
url: 'https://www.theguardian.com/tips',
dataLinkName: 'uk : footer : tips',
extraClasses: '',
},
{
text: 'Accessibility settings',
url: '/help/accessibility-help',
dataLinkName: 'accessibility settings',
extraClasses: '',
},
],
],
},
Expand Down
Loading
Loading