Skip to content

Instantly share code, notes, and snippets.

@mattrobertsky
Last active November 25, 2019 15:04
Show Gist options
  • Save mattrobertsky/fcecc54fc6ec2652f7ae0342983e4c18 to your computer and use it in GitHub Desktop.
Save mattrobertsky/fcecc54fc6ec2652f7ae0342983e4c18 to your computer and use it in GitHub Desktop.
Manual return data munging
Goto https://github.com/hmrc/app-config-production/blob/master/soft-drinks-industry-levy.yaml
Find the commented out (or in history) data-corrector-b64encoded
Paste value into REPL e.g. val bytesEncoded = '....'
val textDecoded = new String(java.util.Base64.getDecoder.decode(bytesEncoded))
too see the entire content do println(textDecoded)
the decoded Json represents a list of returns that haven't been submitted - update the sdil-ref, period and data to match your usecase
re-encode...
val json = "...."
val bytesEncoded = java.util.Base64.getEncoder.encode(json.getBytes())
add back into app-config-production and deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment