-
Notifications
You must be signed in to change notification settings - Fork 4
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 3459 return sirius data via new endpoint in new format #2770
Uml 3459 return sirius data via new endpoint in new format #2770
Conversation
…-endpoint-in-new-format
…heritance for the entities to help structure datastore and for future sirius implementation
…-endpoint-in-new-format
…-endpoint-in-new-format
created new files for dedicated tests
…-endpoint-in-new-format
…n-new-format' into UML-3459-return-sirius-data-via-new-endpoint-in-new-format
…tests, and removed unused imports
…-endpoint-in-new-format # Conflicts: # service-api/app/test/AppTest/Service/Lpa/LpaServiceTest.php
…n-new-format' into UML-3459-return-sirius-data-via-new-endpoint-in-new-format # Conflicts: # service-api/app/src/App/src/Service/Lpa/LpaDataFormatter.php
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2770 +/- ##
============================================
+ Coverage 91.25% 91.52% +0.27%
- Complexity 1504 1570 +66
============================================
Files 309 344 +35
Lines 6393 6657 +264
============================================
+ Hits 5834 6093 +259
- Misses 542 547 +5
Partials 17 17
|
…-endpoint-in-new-format
…n-new-format' into UML-3459-return-sirius-data-via-new-endpoint-in-new-format
…ew-endpoint-in-new-format # Conflicts: # service-api/app/src/App/src/Enum/LifeSustainingTreatment.php # service-api/app/src/App/src/Service/Lpa/LpaDataFormatter.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor tweaks in tests and it's good to go from me.
service-api/app/test/AppTest/Entity/CanSerialiseSiriusToModerniseFormatTest.php
Outdated
Show resolved
Hide resolved
…iseFormatTest.php Co-authored-by: Adam Cooper <[email protected]>
), | ||
$lpaObject = $this->hydrateObject($lpa); | ||
|
||
return $this->mapper->serializeObject( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this to return the hydrated object for use in our service classes.
The serialisation part will happen just before we return so we'll want to ensure that either a) the objects themselves can use their own mapper via a jsonSerialize method or b) a service is available to be called. I personally would go with a)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact. I'm going to approve this but the above work will need to be done before the combined stuff starts to happen.
Purpose
Returning Sirius LPAs via the new endpoint in the new format
Learning
The use of a new library to map incoming data store LPA array using https://github.com/EventSaucePHP/ObjectHydrator
Checklist