Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.22 KB

18-apply-the-special-report-tone.md

File metadata and controls

24 lines (19 loc) · 1.22 KB

Apply the special report tone

Sometimes CP or someone from Editorial will ask us to apply the special report treatment to a tag. The following doc explains how to make that happen.

  1. Find out the id of the tag where we need the special report tone. For example "news/series/panama-papers".
  2. Replace with the id of the special tag and run this code on a python REPL:
import hashlib
tag = "<NEW-SPECIAL-TAG>"
m = hashlib.md5()
m.update("a-public-salt3W#ywHav!p+?r+W2$E6="+tag)
print m.hexdigest()
  1. Add the generated hash to the facia-scala-client on this file and raise a PR against master https://github.com/guardian/facia-scala-client/blame/48f90b6173c6409507a58e8046868f0d9e93ca06/fapi-client/src/main/scala/com/gu/facia/api/utils/CardStyle.scala#L52

  2. Merge the PR and release the library to Maven using sbt.

  3. Update facia-scala-client library on Frontend and MAPI. Merge and deploy the PRs. On Frontend - https://github.com/guardian/frontend/pull/15842/commits/3c6a598a0340fc9f4bd4e774d1466a5806f67c67 On MAPI - https://github.com/guardian/mobile-apps-api/pull/900/commits/99012625a0b9e4bbab61d224768ca31bf36fcf46

  4. Profit! This will make Frontend and MAPI give this tone tag the special report treatment