Skip to content

Conversation

@NogaNHS
Copy link
Contributor

@NogaNHS NogaNHS commented Dec 5, 2025

Overview

Jira ticket: PRMP-908

Description

Refactored and improved the mns service with document review logic with better handling.

Checklist

Tasks for all changes:

  • 1. I have linked this PR to its Jira ticket.
  • 2. I have run git pre-commits. (WIP)
  • 3. I have added and/or updated relevant tests.
  • 4. I have updated relevant documentation.
  • 5. I have considered the cross-team impact (and have PR approval from both Core & Demographics if necessary).
  • 6. I have successfully deployed this change to a sandbox and witnessed unit and e2e tests passing:

@NogaNHS NogaNHS requested review from a team as code owners December 5, 2025 14:50
Copy link
Contributor

@danielleandersonNHS danielleandersonNHS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of comments to address/consider

@jameslinnell
Copy link
Contributor

Checklist number 5 should not have a strikethrough as there are changes here that have an affect on the Core. Also it's unecessary to strike it through as it's a question about whether you have thought about the other team. If if there is no affect to the other team the answer to that question should still be yes.

@jameslinnell jameslinnell reopened this Dec 9, 2025
@jameslinnell
Copy link
Contributor

Sorry, didn't mean to close that. Pressed the wrong button.

@chrisbloe chrisbloe changed the title PRMP-908 Refactor MNS document review logic and handling [PRMP-908] Refactor MNS document review logic and handling Dec 9, 2025
# Conflicts:
#	lambdas/enums/document_review_status.py
#	lambdas/models/document_review.py
#	lambdas/services/document_service.py
#	lambdas/services/document_upload_review_service.py
#	lambdas/tests/unit/services/test_document_upload_review_service.py
#	lambdas/utils/exceptions.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it worth using the models here to create respective dynamodb entries?

# Conflicts:
#	lambdas/enums/document_review_status.py
#	lambdas/enums/lambda_error.py
#	lambdas/tests/unit/services/test_document_upload_review_service.py
# Conflicts:
#	lambdas/services/document_service.py
#	lambdas/services/document_upload_review_service.py
#	lambdas/tests/unit/services/test_document_upload_review_service.py
@github-actions
Copy link

Code security issues found

View full details here.

@sonarqubecloud
Copy link

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.

5 participants