Skip to content
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

[Feature] Improve candidate assessmentStatus data #12428

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JamesHuf
Copy link
Contributor

@JamesHuf JamesHuf commented Jan 8, 2025

🤖 Resolves #12421

👋 Introduction

Updates the way the assessmentStatus field for PoolCandidates is calculated to allow a slightly more detailed status to be shown to candidates.

🕵️ Details

Prevents assessmentSteps showing up in the assessmentStatus.assessmentStepStatuses field on PoolCandidates until they have at least one assessmentResult to make it possible for candidates to tell if the step has started to be assessed or not.

🧪 Testing

  1. Confirm tests still pass
  2. Create and submit an application and update it's assessment progress confirming it's possible to tell if a step has begun assessment by whether it shows in the assessmentStepStatuses field.

Useful query:

query PoolCandidate {
  poolCandidate(id: userId) {
      assessmentStatus {
        assessmentStepStatuses {
          step
          decision
        }
        overallAssessmentStatus
        currentStep
      }
    }
}

🚚 Deployment

After deployment run the artisan command to recalculate assessment statuses:

php artisan app:sync-assessment-status

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.

✨ Reveal some assessment info to client to calculate statuses
1 participant