-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VEGA-2260 Record updates in
changes
table #minor (#98)
* Update example to latest LPA spec * Fix broken API functional test * Make local dynamodb visible to NoSQL workbench See https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html * Modify PUT to use a transaction * Add changes table and wiring into client * Create changes table locally and align terraform to it * Separate method for put with logging * Reinstate original put method * Return claims from JWT verifier This is so that we can log the subject recovered from the JWT. * Rename field to applied This records the datetime when the update was applied. * Store extra request data in changes log * Fix tests for new JWT verifier API * Terraform fix * Another terraform fix * Create errors in a consistent way * Remove spurious logging * Fix typo in JSON serialisation * Add identifier to each update * Check update object is properly constructed * Fix lint error * Prevent 'struct literal uses unkeyed fields' static analysis error --------- Co-authored-by: Elliot Smith <[email protected]>
- Loading branch information
1 parent
eda6da1
commit 1517085
Showing
18 changed files
with
319 additions
and
126 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "CERTIFICATE_PROVIDER_SIGN", | ||
"changes": [ | ||
{ | ||
"key": "/certificateProvider/address/line1", | ||
"new": "98 CVVVV", | ||
"old": null | ||
}, | ||
{ | ||
"key": "/certificateProvider/address/town", | ||
"new": "Murkkkk Town", | ||
"old": null | ||
}, | ||
{ | ||
"key": "/certificateProvider/address/country", | ||
"new": "GB", | ||
"old": null | ||
}, | ||
{ | ||
"key": "/certificateProvider/signedAt", | ||
"new": "2024-01-13T22:00:00Z", | ||
"old": null | ||
}, | ||
{ | ||
"key": "/certificateProvider/contactLanguagePreference", | ||
"new": "en", | ||
"old": null | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
{ | ||
"lpaType": "personal-welfare", | ||
"donor": { | ||
"firstNames": "Homer", | ||
"surname": "Zoller", | ||
"dateOfBirth": "1960-04-06", | ||
"email": "[email protected]", | ||
"firstNames": "Feeg", | ||
"lastName": "Bundlaaaa", | ||
"address": { | ||
"line1": "79 Bury Rd", | ||
"town": "Hampton Lovett", | ||
"postcode": "WR9 2PF", | ||
"line1": "74 Cloob Close", | ||
"town": "Mahhhhhhhhhh", | ||
"country": "GB" | ||
} | ||
}, | ||
"dateOfBirth": "1970-01-24", | ||
"email": "[email protected]" | ||
}, | ||
"attorneys": [ | ||
{ | ||
"firstNames": "Jake", | ||
"surname": "Vallar", | ||
"dateOfBirth": "2001-01-17", | ||
"email": "[email protected]", | ||
"status": "active", | ||
"address": { | ||
"line1": "71 South Western Terrace", | ||
"town": "Milton", | ||
"postcode": "6306", | ||
"country": "AU" | ||
} | ||
}, | ||
{ | ||
"firstNames": "Tory", | ||
"surname": "Lapolla", | ||
"dateOfBirth": "1989-12-29", | ||
"status": "replacement", | ||
"firstNames": "Herman", | ||
"lastName": "Seakrest", | ||
"address": { | ||
"line1": "184 Bayside Apartments", | ||
"line2": "East Street", | ||
"line3": "Saratosa", | ||
"town": "Polebrook", | ||
"country": "US" | ||
} | ||
"line1": "81 NighOnTimeWeBuiltIt Street", | ||
"town": "Mahhhhhhhhhh", | ||
"country": "GB" | ||
}, | ||
"dateOfBirth": "1982-07-24", | ||
"email": "[email protected]", | ||
"status": "active" | ||
} | ||
] | ||
], | ||
"certificateProvider": { | ||
"firstNames": "Vone", | ||
"lastName": "Spust", | ||
"address": { | ||
"line1": "122111 Zonnington Way", | ||
"town": "Mahhhhhhhhhh", | ||
"country": "GB" | ||
}, | ||
"channel": "online", | ||
"email": "[email protected]" | ||
}, | ||
"lifeSustainingTreatmentOption": "option-a", | ||
"signedAt": "2024-01-10T23:00:00Z", | ||
"certificateProviderNotRelatedConfirmedAt": "2024-01-11T22:00:00Z" | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.