-
Notifications
You must be signed in to change notification settings - Fork 3
CCM-14974: Additional failure events in CSV reports #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
simonlabarere
merged 28 commits into
main
from
feature/CCM-14974-csv-reports-failure-events
Mar 31, 2026
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
01c3bfe
CCM-14974: Added 4 new events to the failure report
ScottFullerton-NHSE eaf48ac
CCM-14974: Trivy fix
ScottFullerton-NHSE 52f3773
CCM-14974: Trivy fix
ScottFullerton-NHSE 27f1f1c
CCM-14974: Fix non-null status
ScottFullerton-NHSE 6b6e4a7
CCM-14974: Update sql
ScottFullerton-NHSE bf50c4d
CCM-14974: Trivy ignore
ScottFullerton-NHSE d27e0b9
CCM-14974: Update test to remove pdm check
ScottFullerton-NHSE 7b0d390
Bump h3 from 1.15.5 to 1.15.8 in /src/eventcatalog
dependabot[bot] 1936436
CCM-14974: Update package lock
ScottFullerton-NHSE 6c8d3cc
Merge remote-tracking branch 'origin/main' into feature/CCM-14974-csv…
ScottFullerton-NHSE 53cb1b9
CCM-14961: Fix trivy vulnerabilities
simonlabarere 7bac1fb
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/even…
ScottFullerton-NHSE ffbc2ee
CCM-14974: Readd test and change it to message skipped
ScottFullerton-NHSE b7ee129
CCM-14974: Added failure reasons to events
ScottFullerton-NHSE d99ddc6
CCM-14974: Fix linting + typecheck
ScottFullerton-NHSE e59b8a6
CCM-14974: Fix linting
ScottFullerton-NHSE 099e80e
CCM-14974: Fix unit tests
ScottFullerton-NHSE 00037da
CCM-14974: Fix sonarcloud
ScottFullerton-NHSE a7102ed
CCM-14974: Add failure reason and code to component test
ScottFullerton-NHSE bae078d
Merge branch 'main' into feature/CCM-14974-csv-reports-failure-events
gareth-allan e2a818d
CCM-14974: Dependency updates
gareth-allan ee5d708
CCM-14974: Remove generate-csv util
gareth-allan 5435af2
CCM-14974: Update package-lock
gareth-allan 8859031
CCM-14974: Add failure codes to PrintLetterTransitioned events in com…
gareth-allan 87f9d29
CCM-14974: Added failure codes to other failing component test scenarios
gareth-allan e6bbefc
CCM-14974: Expand notify-api-client test
gareth-allan 69f07b7
Merge branch 'main' into feature/CCM-14974-csv-reports-failure-events
gareth-allan 09d3943
Merge branch 'main' into feature/CCM-14974-csv-reports-failure-events
gareth-allan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
infrastructure/terraform/components/dl/data/failure_codes.csv
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| code,description | ||
| DL_PDMV_001,Letter rejected by PDM | ||
| DL_PDMV_002,Timeout waiting for letter storage | ||
| DL_CLIV_003,Attachment contains a virus | ||
| DL_INTE_001,Request rejected by Core API |
39 changes: 39 additions & 0 deletions
39
infrastructure/terraform/components/dl/glue_catalog_table_failure_code_lookup.tf
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| resource "aws_glue_catalog_table" "failure_code_lookup" { | ||
| name = "failure_code_lookup" | ||
| description = "Lookup table for failure code descriptions" | ||
| database_name = aws_glue_catalog_database.reporting.name | ||
|
|
||
| table_type = "EXTERNAL_TABLE" | ||
|
|
||
| storage_descriptor { | ||
| location = "s3://${module.s3bucket_reporting.bucket}/reference-data/failure_codes/" | ||
|
|
||
| input_format = "org.apache.hadoop.mapred.TextInputFormat" | ||
| output_format = "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat" | ||
|
|
||
| ser_de_info { | ||
| name = "csv" | ||
| serialization_library = "org.apache.hadoop.hive.serde2.OpenCSVSerde" | ||
|
|
||
| parameters = { | ||
| "separatorChar" = "," | ||
| "skip.header.line.count" = "1" | ||
| } | ||
| } | ||
|
|
||
| columns { | ||
| name = "code" | ||
| type = "string" | ||
| } | ||
|
|
||
| columns { | ||
| name = "description" | ||
| type = "string" | ||
| } | ||
| } | ||
|
|
||
| parameters = { | ||
| EXTERNAL = "TRUE" | ||
| classification = "csv" | ||
| } | ||
| } |
17 changes: 17 additions & 0 deletions
17
infrastructure/terraform/components/dl/s3_object_failure_codes.tf
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Auto-generated CSV containing failure code definitions | ||
| # Source: src/digital-letters-events/failure-codes.ts | ||
| # Build: make build / make generate (runs generate-dependencies) | ||
| resource "aws_s3_object" "failure_codes" { | ||
| bucket = module.s3bucket_reporting.bucket | ||
| key = "reference-data/failure_codes/failure_codes.csv" | ||
| source = "${path.module}/data/failure_codes.csv" | ||
| content_type = "text/csv" | ||
| etag = filemd5("${path.module}/data/failure_codes.csv") | ||
|
|
||
| tags = merge( | ||
| local.default_tags, | ||
| { | ||
| Name = "${local.csi}-failure-codes-csv" | ||
| } | ||
| ) | ||
| } |
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,7 @@ export type SingleMessageErrorResponse = { | |
| { | ||
| id: string; | ||
| code: string; | ||
| detail: string; | ||
| }, | ||
| ]; | ||
| }; | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.