Skip to content

Commit 2b7e1f9

Browse files
authored
Merge branch 'main' into ja-article-rendering-migration
2 parents a1c2d53 + bc71031 commit 2b7e1f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+979
-893
lines changed

dotcom-rendering/cdk/bin/cdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ new RenderingCDKStack(cdkApp, 'FaciaRendering-PROD', {
6868
stage: 'PROD',
6969
domainName: 'facia-rendering.guardianapis.com',
7070
scaling: {
71-
minimumInstances: 18,
71+
minimumInstances: 30,
7272
maximumInstances: 180,
7373
policies: {
7474
step: {

dotcom-rendering/fixtures/manual/footballData.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const regions: Regions = [
2121

2222
export const initialDays: FootballMatches = [
2323
{
24-
date: new Date('2022-01-01T00:00:00Z'),
24+
dateISOString: new Date('2022-01-01T00:00:00Z').toISOString(),
2525
competitions: [
2626
{
2727
id: '635',
@@ -31,7 +31,9 @@ export const initialDays: FootballMatches = [
3131
matches: [
3232
{
3333
kind: 'Live',
34-
dateTime: new Date('2022-01-01T11:11:00Z'),
34+
dateTimeISOString: new Date(
35+
'2022-01-01T11:11:00Z',
36+
).toISOString(),
3537
paId: '4482093',
3638
homeTeam: {
3739
name: 'Torino',
@@ -45,7 +47,9 @@ export const initialDays: FootballMatches = [
4547
},
4648
{
4749
kind: 'Fixture',
48-
dateTime: new Date('2022-01-01T19:45:00Z'),
50+
dateTimeISOString: new Date(
51+
'2022-01-01T19:45:00Z',
52+
).toISOString(),
4953
paId: '4482890',
5054
homeTeam: 'Auxerre',
5155
awayTeam: 'St Etienne',
@@ -60,7 +64,9 @@ export const initialDays: FootballMatches = [
6064
matches: [
6165
{
6266
kind: 'Result',
63-
dateTime: new Date('2022-01-01T20:00:00Z'),
67+
dateTimeISOString: new Date(
68+
'2022-01-01T20:00:00Z',
69+
).toISOString(),
6470
paId: '4482835',
6571
homeTeam: {
6672
name: 'Las Palmas',
@@ -82,7 +88,9 @@ export const initialDays: FootballMatches = [
8288
matches: [
8389
{
8490
kind: 'Result',
85-
dateTime: new Date('2022-01-01T20:00:00Z'),
91+
dateTimeISOString: new Date(
92+
'2022-01-01T20:00:00Z',
93+
).toISOString(),
8694
paId: '4482836',
8795
homeTeam: {
8896
name: 'Brighton & Hove Albion Women',
@@ -103,7 +111,7 @@ export const initialDays: FootballMatches = [
103111

104112
export const moreDays: FootballMatches = [
105113
{
106-
date: new Date('2022-01-05T00:00:00Z'),
114+
dateISOString: new Date('2022-01-05T00:00:00Z').toISOString(),
107115
competitions: [
108116
{
109117
id: '635',
@@ -113,7 +121,9 @@ export const moreDays: FootballMatches = [
113121
matches: [
114122
{
115123
kind: 'Fixture',
116-
dateTime: new Date('2022-01-05T19:45:00Z'),
124+
dateTimeISOString: new Date(
125+
'2022-01-05T19:45:00Z',
126+
).toISOString(),
117127
paId: '4482890',
118128
homeTeam: 'Juventus',
119129
awayTeam: 'Roma',

dotcom-rendering/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@
4141
"@guardian/bridget": "8.1.0",
4242
"@guardian/browserslist-config": "6.1.0",
4343
"@guardian/cdk": "50.13.0",
44-
"@guardian/commercial": "25.0.0",
44+
"@guardian/commercial": "25.1.0",
4545
"@guardian/core-web-vitals": "7.0.0",
4646
"@guardian/eslint-config": "7.0.1",
4747
"@guardian/eslint-config-typescript": "9.0.1",
4848
"@guardian/identity-auth": "6.0.1",
4949
"@guardian/identity-auth-frontend": "8.1.0",
50-
"@guardian/libs": "21.4.0",
50+
"@guardian/libs": "22.0.0",
5151
"@guardian/ophan-tracker-js": "2.2.5",
5252
"@guardian/react-crossword": "2.0.2",
53-
"@guardian/react-crossword-next": "npm:@guardian/react-crossword@0.0.0-canary-20250226111729",
53+
"@guardian/react-crossword-next": "npm:@guardian/react-crossword@3.0.0",
5454
"@guardian/shimport": "1.0.2",
5555
"@guardian/source": "8.0.0",
5656
"@guardian/source-development-kitchen": "12.0.0",

dotcom-rendering/playwright/tests/braze.e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const expectLocalStorageItem = (
3333
};
3434

3535
test.describe('Braze messaging', () => {
36-
test('records in local storage that the Braze SDK was loaded', async ({
36+
test.skip('records in local storage that the Braze SDK was loaded', async ({
3737
context,
3838
page,
3939
}) => {
@@ -73,7 +73,7 @@ test.describe('Braze messaging', () => {
7373
await expectLocalStorageItem(page, 'gu.brazeUserSet', 'true');
7474
});
7575

76-
test('clears Braze data when a user logs out', async ({
76+
test.skip('clears Braze data when a user logs out', async ({
7777
context,
7878
page,
7979
}) => {

dotcom-rendering/playwright/tests/ophan.e2e.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ const articleUrl =
1919
const frontUrl = 'https://www.theguardian.com/uk';
2020

2121
test.describe('Ophan requests', () => {
22-
test('should make an IMPRESSION request on an article when consent is rejected', async ({
22+
/**
23+
* Why is this test skipped?
24+
*
25+
* Since the launch of Guardian Ad Lite, rejecting all cookies takes the user to the "Consent or Pay" page,
26+
* instead of removing the cookie banner. This new behaviour is causing the below test to fail.
27+
*/
28+
test.skip('should make an IMPRESSION request on an article when consent is rejected', async ({
2329
page,
2430
context,
2531
}) => {

dotcom-rendering/scripts/deploy/riff-raff.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ deployments:
7878
cloudFormationStackByTags: false
7979
cloudFormationStackName: tag-page-rendering
8080
amiParameter: AMITagpagerendering
81+
templateParameters:
82+
tagpagerenderingPrivateSubnets: /devx/bigger/private/subnets
8183
# tag-page-rendering autoscaling
8284
tag-page-rendering:
8385
type: autoscaling

dotcom-rendering/scripts/env/check-deps.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ if (pkg.devDependencies) {
1212
* We don't check packages that are not semver-compatible
1313
* @type {RegExp[]}
1414
*/
15-
const exceptions = /** @type {const} */ ([
16-
/npm:@guardian\/react-crossword@0.0.0-canary/,
17-
]);
15+
const exceptions = /** @type {const} */ ([/npm:@guardian\/react-crossword@/]);
1816

1917
const mismatches = Object.entries(pkg.dependencies)
2018
.filter(

0 commit comments

Comments
 (0)