MonkeyLoader All articles
Maintenance

The Flag That Wouldn't Leave: Giving Bank Holiday Promos a Sell-By Date

MonkeyLoader
The Flag That Wouldn't Leave: Giving Bank Holiday Promos a Sell-By Date

Photo: kaartcam @ Mapillary.com, CC BY-SA 4.0, via Wikimedia Commons

Every August, someone flips a flag called aug_bank_holiday_promo to true. Every September, nobody flips it back. By October it is still discounting a category that finance has already closed, and support is explaining a £5 saving that no longer appears in the campaign brief. Seasonal flags are supposed to be temporary. In UK retail, they often become permanent furniture.

This is an argument for treating every seasonal feature flag like a loan: it has an owner, a repayment date and a way to call it in. If you run bank holiday promotions, Christmas campaigns or Black Friday bundles, the cleanup routine matters as much as the launch.

A flag is a loan, not a gift

A flag that changes price, delivery promise or returns copy is not a harmless toggle. It has financial and legal consequences. That means it needs three things before it merges:

  1. An owner. A named person or team, not 'the web team'.
  2. An expiry date. A real date in the flag system, after the campaign and its grace period.
  3. A kill path. A tested way to turn it off without waiting for a deploy.

If a seasonal flag has no owner, it should not ship. If it has no expiry date, it is config debt with a nicer name. If the only kill path is 'revert the PR', it is not a kill path.

What goes wrong when they linger

The obvious problem is margin. A discount flag left on through a quiet week is a quiet loss. The less obvious problems are worse: stale copy that promises next-day delivery over a bank holiday, analytics that attribute October sales to an August campaign, and support scripts that describe a promotion the customer cannot see. In public-sector or charity work, a 'temporary' banner can also create an accessibility problem long after the campaign team has moved on.

The fix is not a big flag cleanup project every quarter. It is a small amount of metadata at creation time and a short audit at the end of each peak.

The flag record

Keep the record next to the flag, not in a wiki nobody opens. A minimal version:

flag: promo_2026_aug_bank_holiday
owner: [email protected]
expires_at: 2026-09-07
kill_path: /admin/flags/promo_2026_aug_bank_holiday
ticket: RETAIL-4412
fallback: false

Name the flag with the year and the occasion. promo_2026_aug_bank_holiday is easier to retire than bank_holiday_promo, which will get reused, mutated and eventually trusted by three different teams. If the promotion is regional, put the region in the name: promo_2026_england_may_bank_holiday. That sounds fussy until someone in Belfast gets a discount that was only meant for England.

Audit checklist for UK peaks

Run this before the Christmas freeze and again in the first quiet week of January. It takes less than an hour if your flag system exposes metadata.

The bank holiday calendar is not one calendar

This is where seasonal flags get embarrassing. Scotland has a different summer bank holiday, a second January holiday and St Andrew's Day. Northern Ireland has St Patrick's Day and the Battle of the Boyne. England and Wales have their own pattern. A flag called bank_holiday_promo with no region is a bug waiting for a support ticket.

If the promotion applies only to one nation, encode that in the flag name and in the targeting. If it applies to all, test the copy against each calendar. A delivery promise that says 'order by Friday for Tuesday' can be wrong in Glasgow and right in Manchester on the same weekend.

Retire in small steps

Do not wait for a grand cleanup. Mark the flag deprecated, remove the UI, then remove the flag, then delete the code. Each step is small enough to review. The last step is the one teams skip, and it is the one that stops the flag coming back.

A seasonal flag with a sell-by date is not bureaucracy. It is how you avoid explaining, in November, why an August promotion is still live. The campaign ended. The flag should too.

All Articles

Related Articles

Friday or Bust: A Delivery Estimator That Reads the Bank Holiday Calendar

Friday or Bust: A Delivery Estimator That Reads the Bank Holiday Calendar

The Penny That Goes Missing: A VAT-Safe Price Loader for UK and EU Baskets

The Penny That Goes Missing: A VAT-Safe Price Loader for UK and EU Baskets

Ask Before You Compare: A Tariff Widget That Waits Its Turn

Ask Before You Compare: A Tariff Widget That Waits Its Turn