Skip to content

CCM-11602: Update Get Letters endpoint#135

Merged
francisco-videira-nhs merged 33 commits into
mainfrom
feature/CCM-11602_get_endpoint
Sep 18, 2025
Merged

CCM-11602: Update Get Letters endpoint#135
francisco-videira-nhs merged 33 commits into
mainfrom
feature/CCM-11602_get_endpoint

Conversation

@simonlabarere

@simonlabarere simonlabarere commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

Description

Implement the GET letters endpoint and create an example for Sandbox.

Note that the scope of the ticket has changed. We no longer want suppliers to be able to GET several pages of PENDING letters. We want them to get PENDING letters, acknowledge they have accepted them and then get a new page of PENDING letters.

Testing

Logging when Supplier ID not provided

image image

Happy path (response + logging)

image image

Empty response when no PENDING letters

image image

Getting new letters after acknowledgement

Getting PENDING letters (note that the 'size' parameter is now called 'limit'):
image

Letters set to ACCEPTED:
image
image

Getting PENDING letters again returns new letters:
image

Context

Required for suppliers to get a list of letters to process.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@simonlabarere simonlabarere requested a review from a team as a code owner August 29, 2025 09:40
@simonlabarere simonlabarere requested a review from a team as a code owner August 29, 2025 11:05
@simonlabarere simonlabarere changed the title CCM-11602: Test CCM-11602: Update Get Letters endpoint Sep 4, 2025
@simonlabarere simonlabarere requested a review from a team as a code owner September 8, 2025 08:24
simonlabarere and others added 10 commits September 10, 2025 11:01
* CCM-11942 Fixing cross repo workflows

* CCM-11942 Fixing cross repo workflows

* CCM-11942 Fixing cross repo workflows
* CCM-11751: Use github release assests for shared modules call

* CCM-11751: Use github release assests for shared modules call

* CCM-11751: Use github release assests for shared modules call

* CCM-11751: Use github release assests for shared modules call
* CCM-11580: OAS syntax fixes

Remove 'requestedProductionStatus' from letter-related JSON schemas and update examples to singular form

CCM-11580: Update serve-oas command

CCM-11580: Update serve-oas command

CCM-11580: Remove unneeded endpoints and resource types

+ Move getData endpoint under letter

CCM-11580: Remove hello world endpoint

CCM-11580: Remove hello world endpoint

CCM-11580: Add sandbox handler metadata to endpoints

CCM-11580: More fixes to examples syntax

CCM-11580: Remove remaining reference to hello-world lambda

CCM-11580: Remove remaining reference to hello-world lambda

CCM-11580: add limit parameter to list letters endpoint

CCM-11580: Update sandbox endpoints to match OAS

CCM-11580: Update letter responses in Sandbox to match spec changes

CCM-11580: implement get letter status endpoint in sandbox

Add groupId to schema and examples

* CCM-11580: remove x-eov extension from non sandox spec

---------

Co-authored-by: mark.slowey1 <mark.slowey1@nhs.net>
Small change to fix Sonar cloud badges
@simonlabarere simonlabarere force-pushed the feature/CCM-11602_get_endpoint branch from 4b0d9f9 to 0828b17 Compare September 10, 2025 10:05
Comment thread internal/datastore/src/__test__/letter-repository.test.ts Outdated
Comment thread internal/datastore/src/types.ts
Comment thread internal/datastore/src/types.ts
Comment thread lambdas/api-handler/src/handlers/get-letters.ts Outdated
Comment thread lambdas/api-handler/src/mappers/__tests__/letter-mapper.test.ts Outdated
Comment thread internal/datastore/src/__test__/letter-repository.test.ts Outdated
Comment thread lambdas/api-handler/src/services/__tests__/letter-operations.test.ts Outdated
masl2
masl2 previously approved these changes Sep 15, 2025
m-houston
m-houston previously approved these changes Sep 15, 2025
sidnhs
sidnhs previously approved these changes Sep 15, 2025
@masl2 masl2 dismissed stale reviews from sidnhs, m-houston, and themself via 8382a2a September 17, 2025 09:06
Comment thread lambdas/api-handler/src/handlers/get-letters.ts
@sonarqubecloud

Copy link
Copy Markdown

@francisco-videira-nhs francisco-videira-nhs merged commit f7c03eb into main Sep 18, 2025
41 checks passed
@francisco-videira-nhs francisco-videira-nhs deleted the feature/CCM-11602_get_endpoint branch September 18, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants