-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3896 - Mask Institution User Income View #3932
Conversation
@@ -88,8 +94,13 @@ export class AssessmentControllerService { | |||
); | |||
} | |||
|
|||
const assessmentDTO = assessment.assessmentData as AssessmentAPIOutDTO; |
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.
Suggestion. we can do it like this without force casting.
const assessmentDTO: AssessmentAPIOutDTO = assessment.assessmentData;
if (maskTotalFamilyIncome) {
assessmentDTO.totalFamilyIncome = MASKED_MONEY_AMOUNT;
}
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.
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.
Changed as suggested.
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.
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, |
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.
👍
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.
LGTM, nice work @andrewsignori-aot
|
totalFamilyIncome
following the same approach used to mask the MSFAA.Sample UI with the masked value