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

#3924 - Ecert Creation - "Prefer not to answer" Gender #3927

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

andrewsignori-aot
Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot commented Nov 13, 2024

  • Update the gender to have a white space as a default option.
  • Adjusted and created some E2E tests for e-Certs.
  • Adjusted MSFAA E2E that was already using "preferNotToAnswer".
  • SIN is using the same method from e-Cert and MSFAA.

@andrewsignori-aot andrewsignori-aot changed the title #3924 - Update gender to have a white space. #3924 - Ecert Creation - "Prefer not to answer" Gender Nov 13, 2024
Copy link

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.3% ( 3692 / 16557 )
Methods: 10.32% ( 212 / 2055 )
Lines: 25.6% ( 3202 / 12508 )
Branches: 13.94% ( 278 / 1994 )

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: 85.92% ( 1220 / 1420 )
Methods: 87.86% ( 123 / 140 )
Lines: 86.83% ( 1035 / 1192 )
Branches: 70.45% ( 62 / 88 )

@andrewsignori-aot andrewsignori-aot marked this pull request as ready for review November 13, 2024 21:07
@dheepak-aot dheepak-aot self-requested a review November 13, 2024 21:09
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 )

// Gender should have at least one character code.
// The default option as an empty space would represent
// the "Prefer not to answer"(preferNotToAnswer) option.
return " ";
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

const recordParsed = new PartTimeCertRecordParser(record);
expect(recordParsed.recordType).toBe("02");
expect(recordParsed.hasUser(student.user)).toBe(true);
expect(recordParsed.gender).toBe(" ");
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.

Thanks for adding the E-cert E2E test. Looks good. 👍

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 merged commit d6ce0a5 into release/v1.15.0 Nov 13, 2024
20 checks passed
@andrewsignori-aot andrewsignori-aot deleted the fix/#3924-e-cert-error-creation branch November 14, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants