-
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
#3222 - Provide Ministry the ability to edit basic BCeID Profile Info #3770
#3222 - Provide Ministry the ability to edit basic BCeID Profile Info #3770
Conversation
sources/packages/backend/apps/api/src/auth/userToken.interface.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/models/student.dto.ts
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/student/student.service.ts
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/student/student.service.ts
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/student/student.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/student/student.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/student/student.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/student/student.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/sims-db/src/entities/student.model.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/sims-db/src/entities/student.model.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/student/student.service.models.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/student.controller.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/aest/students/modals/EditStudentProfileModal.vue
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/models/student.dto.ts
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/aest/students/modals/EditStudentProfileModal.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/aest/students/modals/EditStudentProfileModal.vue
Outdated
Show resolved
Hide resolved
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.
Thanks for the hard work so far and for making the changes. Please take a look at the remaining comments.
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.
Thanks for making the changes, looks good 👍
|
||
/** | ||
* Updates the student info (lastname, givenNames, dob, email) | ||
* for a basic BCeID student. |
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.
👍
} | ||
return studentProfile; | ||
return { | ||
...studentProfile, |
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.
👍
studentId: number; | ||
birthdate: string; | ||
lastName: string; | ||
givenNames: string; |
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.
is this optional?
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 @sh16011993
|
As a part of this PR, the following were completed:
Business Requirements Completed:
Technical Requirements Completed:
GivenName
is empty and therefore, will not throw any validation error and can be persisted as an empty field.aest/student/:studentId
. Performed the validation if the student is a BCeID student and also validated the user fields and added the same role (student-edit-profile
) to this endpoint.Note: I tried using the
v-date-input
for the Date component in the modal but it is a lab component and I ran into issues with using this component. Issues, for instance,clearable
not clearing the field etc. Therefore, I have used the regularv-text-field
with thetype=date
.e2e tests will be part of the next PR.
Screenshots
Snackbar
showing the update after the successful updateSnackbar
showing the error message if an error happens for any reason during the student profile update