Skip to content

Commit

Permalink
Merge branch 'UML-3671-findActorLpa' of github.com:ministryofjustice/…
Browse files Browse the repository at this point in the history
…opg-use-an-lpa into UML-3671-findActorLpa
  • Loading branch information
nickdavis2001 committed Nov 14, 2024
2 parents 61d2045 + ab07778 commit b2467f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lambda-functions/upload-statistics/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ COPY requirements.txt requirements.txt

RUN pip install --requirement requirements.txt

RUN dnf update -y libarchive --releasever 2023.6.20241028 && \
dnf clean all

CMD [ "upload_statistics.lambda_handler" ]
10 changes: 9 additions & 1 deletion service-api/app/src/App/src/Service/Lpa/SiriusPerson.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ public function getFirstname(): string

public function getFirstnames(): string
{
return trim(sprintf('%s %s', $this->person['firstname'], $this->person['middlenames']));
/**
* Although technically we should be doing
*
* trim(sprintf('%s %s', $this->person['firstname'], $this->person['middlenames']));
*
* to produce an accurate "firstNames" field the interim object and current frontend code
* are not setup to handle that so we'll just return the firstname field here.
*/
return $this->getFirstname();
}

public function getMiddleNames(): string
Expand Down

0 comments on commit b2467f9

Please sign in to comment.