Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 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 Mar 17, 2026
eaf48ac
CCM-14974: Trivy fix
ScottFullerton-NHSE Mar 17, 2026
52f3773
CCM-14974: Trivy fix
ScottFullerton-NHSE Mar 17, 2026
27f1f1c
CCM-14974: Fix non-null status
ScottFullerton-NHSE Mar 17, 2026
6b6e4a7
CCM-14974: Update sql
ScottFullerton-NHSE Mar 18, 2026
bf50c4d
CCM-14974: Trivy ignore
ScottFullerton-NHSE Mar 18, 2026
d27e0b9
CCM-14974: Update test to remove pdm check
ScottFullerton-NHSE Mar 18, 2026
7b0d390
Bump h3 from 1.15.5 to 1.15.8 in /src/eventcatalog
dependabot[bot] Mar 18, 2026
1936436
CCM-14974: Update package lock
ScottFullerton-NHSE Mar 19, 2026
6c8d3cc
Merge remote-tracking branch 'origin/main' into feature/CCM-14974-csv…
ScottFullerton-NHSE Mar 19, 2026
53cb1b9
CCM-14961: Fix trivy vulnerabilities
simonlabarere Mar 18, 2026
7bac1fb
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/even…
ScottFullerton-NHSE Mar 19, 2026
ffbc2ee
CCM-14974: Readd test and change it to message skipped
ScottFullerton-NHSE Mar 20, 2026
b7ee129
CCM-14974: Added failure reasons to events
ScottFullerton-NHSE Mar 25, 2026
d99ddc6
CCM-14974: Fix linting + typecheck
ScottFullerton-NHSE Mar 25, 2026
e59b8a6
CCM-14974: Fix linting
ScottFullerton-NHSE Mar 25, 2026
099e80e
CCM-14974: Fix unit tests
ScottFullerton-NHSE Mar 25, 2026
00037da
CCM-14974: Fix sonarcloud
ScottFullerton-NHSE Mar 25, 2026
a7102ed
CCM-14974: Add failure reason and code to component test
ScottFullerton-NHSE Mar 25, 2026
bae078d
Merge branch 'main' into feature/CCM-14974-csv-reports-failure-events
gareth-allan Mar 26, 2026
e2a818d
CCM-14974: Dependency updates
gareth-allan Mar 26, 2026
ee5d708
CCM-14974: Remove generate-csv util
gareth-allan Mar 26, 2026
5435af2
CCM-14974: Update package-lock
gareth-allan Mar 26, 2026
8859031
CCM-14974: Add failure codes to PrintLetterTransitioned events in com…
gareth-allan Mar 27, 2026
87f9d29
CCM-14974: Added failure codes to other failing component test scenarios
gareth-allan Mar 27, 2026
e6bbefc
CCM-14974: Expand notify-api-client test
gareth-allan Mar 27, 2026
69f07b7
Merge branch 'main' into feature/CCM-14974-csv-reports-failure-events
gareth-allan Mar 27, 2026
09d3943
Merge branch 'main' into feature/CCM-14974-csv-reports-failure-events
gareth-allan Mar 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Comment thread
ScottFullerton-NHSE marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ WITH vars AS (
e.time,
CASE
WHEN e.type LIKE '%.item.dequeued.%'
OR e.type LIKE '%.queue.digital.letter.read.%' THEN 'Digital'
WHEN e.type LIKE '%.print.letter.transitioned.%' THEN 'Print' ELSE NULL
OR e.type LIKE '%.queue.digital.letter.read.%'
OR e.type LIKE '%.pdm.resource.submission.rejected.%'
OR e.type LIKE '%.pdm.resource.retries.exceeded.%'
OR e.type LIKE '%.messages.request.rejected.%' THEN 'Digital'
WHEN e.type LIKE '%.print.letter.transitioned.%'
OR e.type LIKE '%.print.file.quarantined.%' THEN 'Print' ELSE NULL
END as communicationtype,
CASE
WHEN e.type LIKE '%.item.dequeued.%' THEN 'Unread'
WHEN e.type LIKE '%.queue.digital.letter.read.%' THEN 'Read'
WHEN e.type LIKE '%.pdm.resource.submission.rejected.%' THEN 'Failed'
WHEN e.type LIKE '%.pdm.resource.retries.exceeded.%' THEN 'Failed'
WHEN e.type LIKE '%.messages.request.rejected.%' THEN 'Failed'
WHEN e.type LIKE '%.print.file.quarantined.%' THEN 'Failed'
WHEN e.letterstatus = 'RETURNED' THEN 'Returned'
WHEN e.letterstatus = 'FAILED' THEN 'Failed'
WHEN e.letterstatus = 'DISPATCHED' THEN 'Dispatched'
Expand All @@ -31,11 +39,12 @@ WITH vars AS (
ORDER BY te.time DESC,
CASE
-- Digital Priority Order
WHEN te.communicationtype = 'Digital' AND te.status = 'Failed' THEN 3
WHEN te.status = 'Read' THEN 2
WHEN te.status = 'Unread' THEN 1
-- Print Priority Order
WHEN te.status = 'Returned' THEN 4
WHEN te.status = 'Failed' THEN 3
WHEN te.communicationtype = 'Print' AND te.status = 'Failed' THEN 3
WHEN te.status = 'Dispatched' THEN 2
WHEN te.status = 'Rejected' THEN 1 ELSE 0
END DESC
Expand All @@ -45,7 +54,8 @@ WITH vars AS (
te.communicationtype,
te.status
FROM "translated_events" AS te
where te.status IS NOT NULL
WHERE te.status IS NOT NULL
AND te.communicationtype IS NOT NULL
)
SELECT oe.messagereference as "Message Reference",
oe.time as "Time",
Expand Down
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading