Skip to content

Quickstart: Campaign feature development

James Gorrie edited this page Nov 23, 2023 · 3 revisions

We often run campaigns that have certain features or modifications enabled across the site for the length of that campaign.

To add or remove these features without code changes, allowing for quick and out of hours releasing, we use the Campaign switches on the Reader Revenue Support Console (RRCP) switchboard.

This allows for sending these changes to colleagues for testing using a URL hash. E.g. https://support.theguardian.com/us/contribute#settings.switches.campaignSwitches.usEoy2023=On

The switch is only enabled for that browser session and is not persisted.

To create a new campaign

  1. Go to the RRCP switchboard
  2. Create a new switch under "Campaign switches"
  3. Save the switchboard
  4. Add the switch to Switches.scala under CampaignSwitches as switchName: Option[Switch] = None

A screenshot of the steps to adding a campaign switch in RRCP

CODE / Local testing

To test in code, you would need to follow step 1. on the CODE switchboard.

To test locally, copy the switches_v2.json file stored in S3 to the specified path in DEV.public.conf ie. ~/.gu/support-admin-console/switches_v2.json.

# Make sure you have Janus credentials and `~/.gu/support-admin-console` exists
aws s3 cp s3://$SUPPORT_ADMIN_BUCKET/ENV/switches_v2.json  ~/.gu/support-admin-console/switches_v2.json --profile membership

πŸ™‹β€β™€οΈ General Information

🎨 Client-side 101

βš›οΈ React+Redux

πŸ’° Payment methods

πŸŽ› Deployment & Testing

πŸ“Š AB Testing

🚧 Helper Components

πŸ“š Other Reference

1️⃣ Quickstarts

πŸ›€οΈ Tracking

Clone this wiki locally