Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UML-3671 rework find actor lpa #2878

Merged
merged 52 commits into from
Nov 19, 2024
Merged

UML-3671 rework find actor lpa #2878

merged 52 commits into from
Nov 19, 2024

Conversation

nickdavis2001
Copy link
Contributor

@nickdavis2001 nickdavis2001 commented Oct 15, 2024

Purpose

Rework findActorInLpa to use combined format

Approach

Make findActorInLpa be able to take GetAttorneyStatus interface as an arg, while for now continuing to support existing interim SiriusLpa. Move GetAttorneyStatus onto Person to enable that to happen. Extensive refactor of unit tests including adding fixture methods, to make them manageable. Replicate unit tests for combined format alongside interim format

Checklist

  • I have performed a self-review of my own code
  • I have added relevant logging with appropriate levels to my code
  • New event_codes have been documented on the wiki page
  • I have updated documentation (Confluence/GitHub wiki/tech debt doc) where relevant
  • I have added tests to prove my work
  • I have added welsh translation tags and updated translation files
  • I have run an accessibility tool on any pages I have made changes to and fixed any issues found
  • I have notified the Interaction Designer of any content changes so that appropriate screenshots/flow diagram changes can be made
  • The product team have tested these changes

@nickdavis2001 nickdavis2001 changed the title UML-3671 rework find actor lpa UML-3671 rework find actor lpa (WIP -Draft) Oct 15, 2024
@github-actions github-actions bot added php Pull requests that update Php code service-api labels Oct 15, 2024
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 95.02488% with 10 lines in your changes missing coverage. Please review.

Project coverage is 91.91%. Comparing base (f00760a) to head (ad503b5).
Report is 156 commits behind head on main.

Files with missing lines Patch % Lines
...e-api/app/src/App/src/Entity/LpaStore/LpaStore.php 50.00% 3 Missing ⚠️
...ce-api/app/src/App/src/Entity/Sirius/SiriusLpa.php 70.00% 3 Missing ⚠️
...i/app/src/App/src/Entity/Sirius/SiriusLpaDonor.php 75.00% 2 Missing ⚠️
...e-api/app/src/App/src/Service/Lpa/SiriusPerson.php 77.77% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #2878      +/-   ##
============================================
+ Coverage     91.25%   91.91%   +0.65%     
- Complexity     1504     1740     +236     
============================================
  Files           309      379      +70     
  Lines          6393     8283    +1890     
============================================
+ Hits           5834     7613    +1779     
- Misses          542      653     +111     
  Partials         17       17              
Flag Coverage Δ
use-an-lpa-admin 78.68% <ø> (-0.58%) ⬇️
use-an-lpa-api 97.22% <95.02%> (-0.15%) ⬇️
use-an-lpa-front 90.82% <ø> (+1.28%) ⬆️
Files with missing lines Coverage Δ
service-api/app/src/App/src/Entity/Lpa.php 100.00% <100.00%> (ø)
...p/src/App/src/Entity/LpaStore/LpaStoreAttorney.php 100.00% <ø> (ø)
.../app/src/App/src/Entity/LpaStore/LpaStoreDonor.php 100.00% <ø> (ø)
...p/src/Entity/LpaStore/LpaStoreTrustCorporation.php 100.00% <ø> (ø)
service-api/app/src/App/src/Entity/Person.php 100.00% <100.00%> (ø)
...pp/src/Entity/Sirius/Casters/LinkedDonorCaster.php 100.00% <100.00%> (ø)
...pp/src/App/src/Entity/Sirius/SiriusLpaAttorney.php 100.00% <100.00%> (ø)
...pp/src/Entity/Sirius/SiriusLpaTrustCorporation.php 100.00% <100.00%> (ø)
...ervice/Lpa/AccessForAll/AccessForAllValidation.php 100.00% <100.00%> (ø)
...rc/Service/Lpa/AccessForAll/AddAccessForAllLpa.php 100.00% <100.00%> (ø)
... and 13 more

... and 189 files with indirect coverage changes

---- 🚨 Try these New Features:

@nickdavis2001 nickdavis2001 changed the title UML-3671 rework find actor lpa (WIP -Draft) UML-3671 rework find actor lpa Oct 17, 2024
@nickdavis2001 nickdavis2001 marked this pull request as ready for review October 17, 2024 15:39
@nickdavis2001 nickdavis2001 requested a review from a team as a code owner October 17, 2024 15:39
@cooperaj cooperaj force-pushed the UML-3671-findActorLpa branch from f7c705d to 3352e77 Compare November 5, 2024 16:52
allenannom
allenannom previously approved these changes Nov 15, 2024
Copy link
Contributor

@allenannom allenannom left a comment

Choose a reason for hiding this comment

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

amazing!

@@ -240,21 +211,21 @@ public function validateRequest(string $userId, array $matchData): array
);
throw new BadRequestException(
'LPA details do not match',
['lpaRegDate' => $lpaData['registrationDate']]
['lpaRegDate' => $lpa['registrationDate']]
Copy link
Contributor

@cooperaj cooperaj Nov 18, 2024

Choose a reason for hiding this comment

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

This fail in a combined world

allenannom
allenannom previously approved these changes Nov 18, 2024
@github-actions github-actions bot added the python Pull requests that update Python code label Nov 19, 2024
@cooperaj cooperaj merged commit c3bf46b into main Nov 19, 2024
33 checks passed
@cooperaj cooperaj deleted the UML-3671-findActorLpa branch November 19, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
php Pull requests that update Php code python Pull requests that update Python code service-api service-front
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants