[PRMP-1408] DocumentReference history endpoint functionality#1144
Open
kamenbachvarov-nhs wants to merge 25 commits intomainfrom
Open
[PRMP-1408] DocumentReference history endpoint functionality#1144kamenbachvarov-nhs wants to merge 25 commits intomainfrom
kamenbachvarov-nhs wants to merge 25 commits intomainfrom
Conversation
lillie-dae
previously approved these changes
Mar 2, 2026
3877ebf to
c1cf854
Compare
NogaNHS
reviewed
Mar 4, 2026
| entries = [] | ||
|
|
||
| for doc_ref in items: | ||
| self.check_if_doc_ref_belongs_to_patient(doc_ref, nhs_number) |
Contributor
There was a problem hiding this comment.
Why are we checking this here? what is the risk?
Contributor
Author
There was a problem hiding this comment.
moved this check as nhs filter - created it to cover for a scenario where user enters correct s3filekey but its reference is for a different patient
NogaNHS
reviewed
Mar 4, 2026
| table_name=self.lg_table, | ||
| search_key="S3FileKey", | ||
| search_condition=s3_file_key, | ||
| index_name="S3FileKeyIndex", |
Contributor
There was a problem hiding this comment.
Can you add a filter to check the nhs number here?
NogaNHS
reviewed
Mar 4, 2026
Comment on lines
+57
to
+58
| doc_ref["LastUpdated"] = int(doc_ref["LastUpdated"]) | ||
| doc_ref["FileSize"] = int(doc_ref["FileSize"]) |
Contributor
Author
There was a problem hiding this comment.
used to give me a model error, does not do that after refactoring so removed this casting
they are decimals
Code security issues foundView full details here. |
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Overview
Jira ticket: PRMP-1408
Description
Checklist
Tasks for all changes:
I have run git pre-commits.(WIP)Deploy - Sandbox- workflow run - 22580045616SANDBOX Full- Deploy feature branch to sandbox- workflow run - 22581283158Additional tasks for UI changes (delete if not applicable):
happy path

wrong id

user is not custodian

version history feature flag not enabled
