-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
Description
As a manager or admin, I want to update review assignments so that I can adjust who is assigned to review an employee.
Acceptance Criteria:
- The service allows a PUT request to an endpoint like /reviews/assignments/${id} with a JSON body containing:
- revieweeId: The ID of the employee being reviewed.
- reviewerId: The ID of the employee conducting the review.
- reviewPeriodId: The ID of the review period that the assignment is related to.
- approved: A boolean indicating if the review has been approved (true) or not (false).
- The service can only be called if the current user has the CAN_UPDATE_REVIEW_ASSIGNMENTS permission (must be created)
- The service only allows a review assigment to be adjusted if the reviewee is among the current user's reports, but NOT a direct report (i.e. at least one level removed).
- The service only allows a review assigment to have approved set to true if the current user has the CAN_APPROVE_ALL_REVIEW_ASSIGNMENTS permission (must be created) or if the reviewee is among their reports, but NOT a direct report (i.e. at least one level removed).
- The service returns a JSON response containing the details of the updatted assignment, including:
- id: The unique identifier for the assignment.
- revieweeId: The ID of the employee being reviewed.
- reviewerId: The ID of the manager conducting the review.
- reviewPeriodId: The ID of the review period that the review assignment relates to.
- approved: A boolean indicating if the review has been approved (true) or not (false).