Skip to content

Commit

Permalink
PSDQ. Enable PSDQ task for processing v3 (#1303)
Browse files Browse the repository at this point in the history
* PSDQ. Enable PSDQ task for processing v3

* Remove whitespace
  • Loading branch information
warrensearle authored Jan 14, 2025
1 parent b17b6d8 commit 102ca94
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 10 deletions.
2 changes: 1 addition & 1 deletion functions/actions/tasks/taskHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export default (config) => {
// TASK_TYPE.STATUTORY_CONSULTATION,
// TASK_TYPE.CHARACTER_AND_SELECTION_SCC,
TASK_TYPE.EMP_TIEBREAKER,
// TASK_TYPE.PRE_SELECTION_DAY_QUESTIONNAIRE,
TASK_TYPE.PRE_SELECTION_DAY_QUESTIONNAIRE,
TASK_TYPE.SELECTION_DAY,
];
} else {
Expand Down
54 changes: 45 additions & 9 deletions functions/shared/Timeline/exerciseTimeline.TMP.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ export default (config) => {
entry: 'JAC Contacts Independent Assessors',
date: data.contactIndependentAssessors,
dateString: getDateString(data.contactIndependentAssessors),
// TODO make this a task
}
);
}
Expand All @@ -224,7 +223,27 @@ export default (config) => {
entry: 'Eligibility SCC',
date: data.eligibilitySCCDate,
dateString: getDateString(data.eligibilitySCCDate),
taskType: TASK_TYPE.ELIGIBILITY_SCC,
}
);
}

if (data.preSelectionDayQuestionnaireSendDate) {
timeline.push(
{
entry: 'Pre Selection Day Questionnaire - send',
date: data.preSelectionDayQuestionnaireSendDate,
dateString: getDateString(data.preSelectionDayQuestionnaireSendDate),
taskType: TASK_TYPE.PRE_SELECTION_DAY_QUESTIONNAIRE,
}
);
}

if (data.preSelectionDayQuestionnaireReturnDate) {
timeline.push(
{
entry: 'Pre Selection Day Questionnaire - return',
date: data.preSelectionDayQuestionnaireReturnDate,
dateString: getDateString(data.preSelectionDayQuestionnaireReturnDate),
}
);
}
Expand All @@ -240,31 +259,49 @@ export default (config) => {
if (data.characterChecksDate) {
timeline.push(
{
entry: 'Character Checks',
entry: 'Character Checks - Candidate Consent sent',
date: data.characterChecksDate,
dateString: getDateString(data.characterChecksDate),
// TODO make this a task
}
);
}

if (data.characterChecksReturnDate) {
timeline.push(
{
entry: 'Character Checks return',
entry: 'Character Checks - Candidate Consent return',
date: data.characterChecksReturnDate,
dateString: getDateString(data.characterChecksReturnDate),
}
);
}

if (data.characterChecksProfessionalDate) {
timeline.push(
{
entry: 'Character Checks - Professional Checks sent',
date: data.characterChecksProfessionalDate,
dateString: getDateString(data.characterChecksProfessionalDate),
}
);
}

if (data.characterChecksProfessionalReturnDate) {
timeline.push(
{
entry: 'Character Checks - Professional Checks return',
date: data.characterChecksProfessionalReturnDate,
dateString: getDateString(data.characterChecksProfessionalReturnDate),
}
);
}

if (data.statutoryConsultationDate) {
timeline.push(
{
entry: 'Statutory consultation',
date: data.statutoryConsultationDate,
dateString: getDateString(data.statutoryConsultationDate),
taskType: TASK_TYPE.STATUTORY_CONSULTATION,
}
);
}
Expand All @@ -275,7 +312,6 @@ export default (config) => {
entry: 'Character and Selection SCC',
date: data.characterAndSCCDate,
dateString: getDateString(data.characterAndSCCDate),
taskType: TASK_TYPE.CHARACTER_AND_SELECTION_SCC,
}
);
}
Expand All @@ -285,8 +321,8 @@ export default (config) => {
{
entry: 'Selection process outcome',
date: data.finalOutcome,
dateString: getDateString(data.finalOutcome),
taskType: TASK_TYPE.SELECTION_OUTCOME,
dateString: getDateString(data.finalOutcome, 'month'),
// taskType: TASK_TYPE.SELECTION_OUTCOME,
}
);
}
Expand Down

0 comments on commit 102ca94

Please sign in to comment.