-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set UpdatedEntity on an import notification when a linked movement is…
… being updated (#97) * Signal on import notification when a related entity has changed by adding an audit entry, which will set UpdatedEntity field on save * Formatting * Formatting * Show UpdatedEntity changing when a link already exists * Don't create audit when related data changes, only save via Update * Formatting * Add class constraint * Remove unused method * Ignore SonarQube warning * Remove related data service and replace with direct DB context update call
- Loading branch information
Showing
9 changed files
with
187 additions
and
83 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
53 changes: 53 additions & 0 deletions
53
...nTests/Fixtures/Linking/ALVS/CHEDAGB20241041389-bbaff9ag-4415-444c-b8c2-b62cde50786f.json
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,53 @@ | ||
{ | ||
"serviceHeader": { | ||
"sourceSystem": "CDSSIM", | ||
"destinationSystem": "ALVS", | ||
"correlationId": "000", | ||
"serviceCallTimestamp": "2024-10-04T13:58:09.5864286Z" | ||
}, | ||
"header": { | ||
"entryReference": "CHEDAGB20241041389", | ||
"entryVersionNumber": 3, | ||
"previousVersionNumber": 2, | ||
"declarationUCR": "SimCHEDA.GB.2024.1041389", | ||
"declarationPartNumber": null, | ||
"declarationType": null, | ||
"arrivalDateTime": null, | ||
"submitterTURN": null, | ||
"declarantId": null, | ||
"declarantName": "CDS_Simulator", | ||
"dispatchCountryCode": null, | ||
"goodsLocationCode": "BELBELGVM", | ||
"masterUCR": "SimCHEDA.GB.2024.1041389" | ||
}, | ||
"items": [ | ||
{ | ||
"clearanceRequestReference": null, | ||
"itemNumber": 1, | ||
"customsProcedureCode": null, | ||
"taricCommodityCode": null, | ||
"goodsDescription": null, | ||
"consigneeId": null, | ||
"consigneeName": null, | ||
"itemNetMass": null, | ||
"itemSupplementaryUnits": null, | ||
"itemThirdQuantity": null, | ||
"itemOriginCountryCode": null, | ||
"documents": [ | ||
{ | ||
"documentCode": "C640", | ||
"documentReference": "GBCHD2024.1041389", | ||
"documentStatus": "P", | ||
"documentControl": null, | ||
"documentQuantity": 3 | ||
} | ||
], | ||
"check": [ | ||
{ | ||
"checkCode": "H2019", | ||
"departmentCode": "GB" | ||
} | ||
] | ||
} | ||
] | ||
} |
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 @@ | ||
The intention is that this data follows the SmokeTest data to provide additional updates that can be applied after the smoke test data has been imported. |
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.