Skip to content

Commit

Permalink
copy paste the tracker query fix and add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
brindasasi committed Aug 2, 2024
1 parent 16775bb commit 600d09a
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
FragmentType,
Scalars,
PoolCandidateSearchInput,
CandidateSuspendedFilter,
CandidateExpiryFilter,
} from "@gc-digital-talent/graphql";
import { Pending, ThrowNotFound } from "@gc-digital-talent/ui";
import { toast } from "@gc-digital-talent/toast";
Expand All @@ -27,11 +29,15 @@ type RouteParams = {
};

const ScreeningAndEvaluation_PoolQuery = graphql(/* GraphQL */ `
query ScreeningAndEvaluation_Pools($poolId: UUID!, $first: Int!) {
query ScreeningAndEvaluation_Pools(
$poolId: UUID!
$first: Int!
$where: PoolCandidateSearchInput
) {
pool(id: $poolId) {
...AssessmentStepTracker_Pool
}
poolCandidatesPaginated(first: $first) {
poolCandidatesPaginated(first: $first, where: $where) {
paginatorInfo {
lastPage
}
Expand Down Expand Up @@ -76,6 +82,11 @@ const ScreeningAndEvaluationPage = () => {
variables: {
poolId,
first: CANDIDATES_BATCH_SIZE,
where: {
applicantFilter: { pools: [{ id: poolId }] },
suspendedStatus: CandidateSuspendedFilter.Active,
expiryStatus: CandidateExpiryFilter.Active,
},
},
});
const lastPage = data?.poolCandidatesPaginated.paginatorInfo.lastPage ?? 0;
Expand Down

0 comments on commit 600d09a

Please sign in to comment.