Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Sharala-Perumal
Copy link
Collaborator

PIMS-1656/1658: Create getTitleSummary and createOrder endpoints for LTSA

🎯 Summary

PIMS-1656
PIMS-1658

πŸ”° Checklist

  • I have read and agree with the following checklist and am following the guidelines in our Code of Conduct document.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation where required.
  • I have tested my changes to the best of my ability.
  • My changes generate no new warnings.

Copy link
Collaborator

@dbarkowsky dbarkowsky left a comment

Choose a reason for hiding this comment

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

Standardized some naming that was causing a build issue.
Added some strong typing to these functions.
Tested, and it all seems to be working as expected.

Now we just need tests.


// TODO: Replace stub response with controller logic
return stubResponse(res);
if (!getLandTitleInfo) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we might never trigger this. The service throws errors if it fails. It doesn't just return a response with no data.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Implemented suggested change

@Sharala-Perumal Sharala-Perumal marked this pull request as draft May 2, 2024 21:55
@qlty-cloud-legacy
Copy link

qlty-cloud-legacy bot commented May 2, 2024

Code Climate has analyzed commit 9ca6f51 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 95.2% (50% is the threshold).

This pull request will bring the total coverage in the repository to 95.5%.

View more on Code Climate.

@Sharala-Perumal Sharala-Perumal marked this pull request as ready for review May 8, 2024 00:03
@Sharala-Perumal Sharala-Perumal changed the title PIMS:1656 & 1658 - Create getTitleSummary and createOrder endpoints for LTSA PIMS: 1656 & 1658 - Create getTitleSummary and createOrder endpoints for LTSA May 8, 2024
@@ -0,0 +1,4 @@
export interface ILtsaTokens {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like an interface this small doesn't really necessitate its own file. You could probably consolidate all these interfaces to one place.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I feel like an interface this small doesn't really necessitate its own file. You could probably consolidate all these interfaces to one place.

LTSA process is broken into 3 bits - get Tokens, get Title summary, get order Info. I created one interface per bit for readability purposes. If the standard is to consolidate all into one, I'm happy to do that :)

Copy link
Collaborator

@dbarkowsky dbarkowsky left a comment

Choose a reason for hiding this comment

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

Works well in testing. Implementation matches that from old PIMS.

@dbarkowsky dbarkowsky merged commit 4671a88 into main May 10, 2024
@dbarkowsky dbarkowsky deleted the PIMS-1656 branch May 10, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants