Skip to content

Conversation

@gavxue
Copy link
Collaborator

@gavxue gavxue commented Dec 3, 2025

Notion ticket link

Build Resolve Conflict/Reassign Reviewer or Interviewer Mutator

Implementation description

  • mutator reassigns a reviewed_applicant_record to another reviewer by deleting the old one and create a new one
  • we need to delete and create since the reviewerId is a primary key

Steps to test

  1. create a new reviewed_applicant_record using the following mutation
mutation {
  createReviewedApplicantRecord(
    input: {
      applicantRecordId: "[APPLICANT_RECORD_ID]"
      reviewerId: 2
      status: "Conflict"
    }
  ) {
    applicantRecordId
    reviewerId
    status
    reviewerHasConflict
  }
}
  1. run the new mutator that reassigns the reviewed_applicant_record
mutation {
  reassignReviewedApplicantRecord(
    applicantRecordId: "[APPLICANT_RECORD_ID]"
    oldReviewerId: 2
    newReviewerId: 3
  ) {
    applicantRecordId
    reviewerId
    review {
      passionFSG
      teamPlayer
      desireToLearn
      skill
      skillCategory
    }
    status
    score
    reviewerHasConflict
  }
}
  1. check that the mutation worked and that the following object is returned
{
  "data": {
    "reassignReviewedApplicantRecord": {
      "applicantRecordId": "[APPLICANT_RECORD_ID]",
      "reviewerId": 3,
      "review": null,
      "status": "Conflict",
      "score": null,
      "reviewerHasConflict": false
    }
  }
}

What should reviewers focus on?

  • correct logic

Checklist

  • My PR name is descriptive and in imperative tense
  • My commit messages are descriptive and in imperative tense. My commits are atomic and trivial commits are squashed or fixup'd into non-trivial commits
  • I have run the appropriate linter(s)
  • I have requested a review from the PL, as well as other devs who have background knowledge on this PR or who will be building on top of this PR

@gavxue gavxue self-assigned this Dec 3, 2025
@gavxue gavxue changed the title Build Resolve Conflict/Reassign Reviewer or Interviewer Mutator [INTF25] Build Resolve Conflict/Reassign Reviewer or Interviewer Mutator Dec 3, 2025
@gavxue gavxue requested a review from mxc-maggiechen December 3, 2025 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant