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

Admin-2515 full application submitted #1254

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

KoWeiJAC
Copy link
Contributor

@KoWeiJAC KoWeiJAC commented Nov 11, 2024

What's included?

Backend for this ticket: jac-uk/admin#2515

  • In onApplicationUpdate check for completed staged applications (look at the new timestamp) and update the corresponding applicationRecord to have the status of 'Full application submitted' (DP)
  • Ensure the 'Full application not submitted' status appears in the Selection Days list of statuses that can be assigned and that it is configured to send the application back to the previous stage of Shortlisting
  • In onApplicationUpdate send an email (via Notify) when a candidate has submitted their full application

@KoWeiJAC KoWeiJAC marked this pull request as ready for review November 12, 2024 08:09
@KoWeiJAC KoWeiJAC changed the title Feat/2515 full application submitted Admin-2515 full application submitted Nov 12, 2024
@KoWeiJAC KoWeiJAC self-assigned this Nov 12, 2024
const inSelectionDaysStage = dataAfter._processing ? (dataAfter._processing.stage === 'selection') : false;
const submittedLogBefore = dataBefore._submittedLog || {};
const submittedLogAfter = dataAfter._submittedLog || {};
const selectionTimestampBefore = submittedLogBefore.selection ? submittedLogBefore.selection.toMillis() : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is toMillis() an actual function?

if (!exercise) return false;

const selectionProcess = exercise._applicationContent.selection || {};
const isStagedExercise = Object.values(selectionProcess).includes(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be handy to put this into the exerciseHelper, eg to have a function like this:

function isStagedExercise(exercise) {
...
}

so that we can reuse it in the future. I think we will probably combine helpers across some of the repos at some point soon.

@KoWeiJAC KoWeiJAC merged commit 7b420c0 into develop Nov 28, 2024
4 checks passed
@KoWeiJAC KoWeiJAC deleted the feat/2515-full-application-submitted branch November 28, 2024 10: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.

3 participants