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

#3896 - Mask Institution User Income View #3932

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

andrewsignori-aot
Copy link
Collaborator

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

  • Masked the totalFamilyIncome following the same approach used to mask the MSFAA.
  • Masked only for public institutions.
  • The method used to format the money in the NOA UI when it is a number has no issues with the "masked" string.
    image

Sample UI with the masked value

image

@andrewsignori-aot andrewsignori-aot added the SIMS-Api SIMS-Api label Nov 13, 2024
@andrewsignori-aot andrewsignori-aot self-assigned this Nov 13, 2024
@andrewsignori-aot andrewsignori-aot marked this pull request as ready for review November 13, 2024 23:06
@@ -88,8 +94,13 @@ export class AssessmentControllerService {
);
}

const assessmentDTO = assessment.assessmentData as AssessmentAPIOutDTO;
Copy link
Collaborator

@dheepak-aot dheepak-aot Nov 13, 2024

Choose a reason for hiding this comment

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

Suggestion. we can do it like this without force casting.

const assessmentDTO: AssessmentAPIOutDTO = assessment.assessmentData;
    if (maskTotalFamilyIncome) {
      assessmentDTO.totalFamilyIncome = MASKED_MONEY_AMOUNT;
    }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The cast is necessary to allow it to accept a string.
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed as suggested.

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. One suggestion. 👍

@@ -66,6 +66,7 @@ export class AssessmentStudentsController extends BaseController {
return this.assessmentControllerService.getAssessmentNOA(assessmentId, {
studentId: userToken.studentId,
maskMSFAA: false,
maskTotalFamilyIncome: false,
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

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.29% ( 3693 / 16565 )
Methods: 10.32% ( 212 / 2055 )
Lines: 25.6% ( 3203 / 12513 )
Branches: 13.92% ( 278 / 1997 )

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 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 66.05% ( 5579 / 8447 )
Methods: 63.3% ( 683 / 1079 )
Lines: 70.15% ( 4406 / 6281 )
Branches: 45.08% ( 490 / 1087 )

@andrewsignori-aot andrewsignori-aot merged commit ec1c635 into release/v1.15.0 Nov 13, 2024
20 checks passed
@andrewsignori-aot andrewsignori-aot deleted the feature/#3896-mask-noa-data 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
SIMS-Api SIMS-Api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants