Last active
November 25, 2019 15:04
-
-
Save mattrobertsky/fcecc54fc6ec2652f7ae0342983e4c18 to your computer and use it in GitHub Desktop.
Manual return data munging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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