Skip to content

[INTF25] Build flag applicant mutator#86

Merged
ericahan22 merged 5 commits intomainfrom
INTF25-flag-applicant-mutator
Nov 19, 2025
Merged

[INTF25] Build flag applicant mutator#86
ericahan22 merged 5 commits intomainfrom
INTF25-flag-applicant-mutator

Conversation

@ericahan22
Copy link
Member

@ericahan22 ericahan22 commented Nov 12, 2025

Notion ticket link

Build Flag Applicant Mutator

Implementation description

  • Added isApplicantFlagged to ApplicantRecordDTO
    • Also changed type of id from number to string to comply with the Technical Design Document and database schemas
  • Added the service function setApplicantRecordFlag to set it to true/false
  • Made relevant resolver file with setApplicantRecordFlag mutator
  • Added applicantRecordType to the GraphQL types
    • Used String! types for position and status columns instead of enums
  • Created a migration to add createdAt and updatedAt columns to the applicant_records table

Steps to test

  1. Run the following mutation in the GraphQL playground and ensure it works. Instead of rec_123 use a real applicantRecordId, e.g., aa6cb234-ecc5-43e5-b2cf-4ec426577658. Try with flagValue as true and false.
mutation {
  setApplicantRecordFlag(applicantRecordId: "rec_123", flagValue: true) {
    id,
    applicantId,
    position,
    roleSpecificQuestions,
    choice,
    status,
    skillCategory,
  }
}
  1. To see the effect of setting the applicant flag, also try
mutation {
  setApplicantRecordFlag(applicantRecordId: "rec_123", flagValue: true) {
    id
    applicantId
    position
    roleSpecificQuestions
    choice
    status
    skillCategory
    combined_score
    isApplicantFlagged
  }
}

What should reviewers focus on?

  • Make sure design justifications are reasonable
  • Make sure the migration file is ok

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

Copy link
Contributor

@mxc-maggiechen mxc-maggiechen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@isabellehuangg isabellehuangg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Makes sense

@ericahan22 ericahan22 merged commit b1b6fa8 into main Nov 19, 2025
1 check passed
@ericahan22 ericahan22 deleted the INTF25-flag-applicant-mutator branch November 19, 2025 03:06
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.

3 participants