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

#3260 - CAS Integration 3A - Create new Supplier and Site - Name Fix And Error Log Improvement #3843

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

andrewsignori-aot
Copy link
Collaborator

  • Fixed the order that first and last names were provided to the formatter.
  • Added the HTTP bad request logs for better troubleshooting while the final error handling ticket is pending.

Sample logged error (Invalid SIN).

image

@andrewsignori-aot andrewsignori-aot added Bug Something isn't working Queue Consumers labels Oct 26, 2024
@andrewsignori-aot andrewsignori-aot self-assigned this Oct 26, 2024
@andrewsignori-aot andrewsignori-aot marked this pull request as ready for review October 26, 2024 00:12
Copy link

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.64% ( 3691 / 16304 )
Methods: 10.45% ( 212 / 2029 )
Lines: 26.01% ( 3201 / 12306 )
Branches: 14.12% ( 278 / 1969 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.43% ( 583 / 891 )
Methods: 59.26% ( 64 / 108 )
Lines: 68.54% ( 464 / 677 )
Branches: 51.89% ( 55 / 106 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 83.87% ( 1175 / 1401 )
Methods: 84.29% ( 118 / 140 )
Lines: 84.78% ( 997 / 1176 )
Branches: 70.59% ( 60 / 85 )

@dheepak-aot dheepak-aot self-requested a review October 28, 2024 15:54
supplierData.firstName,
supplierData.lastName,
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Comment on lines +16 to +18
const formattedName = `${lastName}, ${firstName}`
.substring(0, CAS_SUPPLIER_NAME_MAX_LENGTH)
.trim();
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 66.01% ( 5571 / 8439 )
Methods: 63.3% ( 683 / 1079 )
Lines: 70.12% ( 4401 / 6276 )
Branches: 44.93% ( 487 / 1084 )

@guru-aot guru-aot self-requested a review October 28, 2024 16:40
* Initializes the service under test.
* @returns array of mocked services.
*/
export async function initializeService(): Promise<
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

!!error.response?.data[CAS_RETURNED_MESSAGES]
) {
// Checking for bad request errors for better logging while the
// specific ticket to handle exception is pending.
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

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

LGTM, nice work @andrewsignori-aot

@andrewsignori-aot andrewsignori-aot deleted the fix/#3260-fix-name-and-better-error-log branch October 28, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Queue Consumers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants