Skip to content

Mobile above nav test - Suppress RR banner on variant2. - #16717

Closed
oliverabrahams wants to merge 23 commits into
mainfrom
oa/mobile-above-nav
Closed

oliverabrahams wants to merge 23 commits into
mainfrom
oa/mobile-above-nav

Conversation

@oliverabrahams

Copy link
Copy Markdown
Contributor

What does this change?

Both variants are only for 2 types of pages.

  1. Crossword pages with tag type crossword which is the same as ArticleDesign Crossword 'type/crossword'
  2. The crossword Front with PageId 'crosswords'

https://github.com/guardian/content-api-scala-client/blob/ed83e958d5ebff2b3aa418dfeb2450236b68109c/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala#L123

  • Adds a new variant to the test variant2 for variant2 we do not show the RR sticky bottom banner.
  • Adds variant2 to the variants which show the advert above nav on mobile web

Why?

How has this change been tested?

Screenshots

Before After
before after

oliverabrahams and others added 23 commits September 4, 2026 12:27
For ease of finding slot for other code

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
# Conflicts:
#	ab-testing/config/abTests.ts
#	dotcom-rendering/src/layouts/CrosswordLayout.tsx
#	dotcom-rendering/src/layouts/FrontLayout.tsx
#	pnpm-lock.yaml
@github-actions

Copy link
Copy Markdown

🚀 Image pushed to AWS ECR

Image digest: sha256:47e273eea22471c52a6c1e16fe94631caf74b92a596739432cee1daa0f26b74c

🐛 Run the image locally

The following can be used to run the image locally:

# Refer to image using the immutable digest. Find alternatives below.
IMAGE_IDENTIFIER="@sha256:47e273eea22471c52a6c1e16fe94631caf74b92a596739432cee1daa0f26b74c"

# Refer to image using branch tag
# IMAGE_IDENTIFIER=":branch-oa-mobile-above-nav"

# Refer to image using build tag
# IMAGE_IDENTIFIER=":build-31104"

# Refer to image via the GitHub commit SHA tag
# IMAGE_IDENTIFIER=":sha-c2c9841bdbcf1cdf6cfcf8b6c54f1e480a8fef73"

# Set environment variables for the AWS CLI
AWS_PROFILE="<A_PROFILE_FROM_JANUS>"
AWS_DEFAULT_REGION="eu-west-1"

IMAGE_ACCOUNT_ID=$(aws ssm get-parameter --name /organisation/accounts/artifacts --query "Parameter.Value" --output text)
REGISTRY="${IMAGE_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
IMAGE="${REGISTRY}/guardian/dotcom-rendering${IMAGE_IDENTIFIER}"

# Login to AWS ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
aws ecr get-login-password | docker login --username AWS --password-stdin $REGISTRY

# Pull the image
docker pull $IMAGE

# Run the image. You'll likely need to set additional flags. See https://docs.docker.com/reference/cli/docker/container/run.
docker run $IMAGE

From guardian/actions-publish-image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant