-
Notifications
You must be signed in to change notification settings - Fork 13
#5035 - Modified independent - Ministry update - Update modified independent status #5306
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
#5035 - Modified independent - Ministry update - Update modified independent status #5306
Conversation
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.
Pull Request Overview
This PR introduces functionality to allow ministry users to update a student's modified independent status, replacing the previous nullable field with a new "Not requested" default status. The implementation includes a new Keycloak role, API endpoints, UI components, and database migration updates.
Key Changes:
- Added new
NotRequestedstatus toModifiedIndependentStatusenum, changing field from nullable to required with default value - Created new ministry API endpoint and UI modal for updating modified independent status with validation and role-based permissions
- Updated database migrations to include "Not requested" in the enum type and set it as default value
Reviewed Changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| sources/packages/web/src/types/contracts/aest/roles.ts | Added new role for updating modified independent status |
| sources/packages/web/src/types/contracts/StudentContract.ts | Added NotRequested enum value with documentation |
| sources/packages/web/src/services/http/dto/Student.dto.ts | Changed modifiedIndependentStatus to required and added update DTO |
| sources/packages/web/src/services/http/StudentApi.ts | Added API method for updating modified independent status |
| sources/packages/web/src/services/StudentService.ts | Added service method for updating modified independent status |
| sources/packages/web/src/constants/error-code.constants.ts | Added error constant for status not updated scenario |
| sources/packages/web/src/composables/useFormatters.ts | Refactored status display logic to use switch statement |
| sources/packages/web/src/components/common/students/StudentProfile.vue | Added event listener for status updates |
| sources/packages/web/src/components/aest/students/modals/UpdateModifiedIndependentStatusModal.vue | New modal component for updating status |
| sources/packages/web/src/components/aest/students/ModifiedIndependentStatusTitleValue.vue | Added update functionality with role-based permissions |
| sources/packages/web/src/components/aest/students/DisabilityStatusUpdateTileValue.vue | Fixed attribute naming convention |
| sources/packages/backend/libs/sims-db/src/entities/student.model.ts | Changed field to required (non-nullable) |
| sources/packages/backend/libs/sims-db/src/entities/student-modified-independent-status.type.ts | Added NotRequested enum value |
| sources/packages/backend/apps/db-migrations/src/sql/Types/Create-modified-independent-status.sql | Added "Not requested" to enum type |
| sources/packages/backend/apps/db-migrations/src/sql/Student/Add-cols-modified-independent.sql | Set default value and NOT NULL constraint |
| sources/packages/backend/apps/api/src/services/student/student.service.ts | Added service method to update status with transaction |
| sources/packages/backend/apps/api/src/route-controllers/student/student.controller.service.ts | Added return type annotation |
| sources/packages/backend/apps/api/src/route-controllers/student/student.aest.controller.ts | Added endpoint with validation logic |
| sources/packages/backend/apps/api/src/route-controllers/student/models/student.dto.ts | Changed field to required and added update DTO |
| sources/packages/backend/apps/api/src/route-controllers/student/tests/e2e/*.e2e-spec.ts | Updated tests to expect NotRequested as default value |
| sources/packages/backend/apps/api/src/constants/error-code.constants.ts | Added error constant for backend |
| sources/packages/backend/apps/api/src/auth/roles.enum.ts | Added new role enum value |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...lers/student/_tests_/e2e/student.aest.controller.updateModifiedIndependentStatus.e2e-spec.ts
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/aest/students/ModifiedIndependentStatusTitleValue.vue
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/student.aest.controller.ts
Outdated
Show resolved
Hide resolved
andrewsignori-aot
left a comment
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.
Great work, please take a look at the comments.
|
andrewsignori-aot
left a comment
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 👍



Modified independent - Ministry update - Update modified independent status
Keycloak role
student-update-modified-independent-statusto allow ministry user to update the modified independent status of the student.API
E2E Tests
Not requested.DB Migrations update
Not requestedto the typesims.modified_independent_statusto be the default value ofsims.students.modified_independent_statusinstead of null.Note: The exisiting migration SQL files were update here instead of adding new migration. Hence before the PR is merged, DEV migrations pertinent to this change will be rolled back to allow the migrations to be re-executed.
Rollback evidences
UI