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

IEN-920 | End of Journey Report #677

Merged
merged 2 commits into from
Nov 7, 2024
Merged

IEN-920 | End of Journey Report #677

merged 2 commits into from
Nov 7, 2024

Conversation

jerry-ey
Copy link
Collaborator

@jerry-ey jerry-ey commented Nov 5, 2024

  • add End of Journey column to milestone extract with the following logic
/**
 * The `endOfJourneyColumn` defines a CASE statement that evaluates the journey status of an applicant.
 * It checks the `ien_applicant_status_audit` and `ien_applicant_status` tables to determine whether the applicant
 * has reached either 'End of Journey - Journey Complete' or 'End of Journey - Journey Incomplete' status.
 *
 * Logic:
 * - If there exists a record with 'End of Journey - Journey Complete' for the same `applicant_id`, the column
 *   is set to 'End of Journey - Journey Complete'.
 * - If no 'Journey Complete' record is found but a 'Journey Incomplete' record exists, the column is set to
 *   'End of Journey - Journey Incomplete'.
 * - If neither status exists for the applicant, the column value is set to NULL.
 */

CleanShot 2024-11-06 at 13 05 24@2x

  • similarly, add End of Journey column to applicant extract

CleanShot 2024-11-06 at 13 04 04@2x

Copy link

sonarqubecloud bot commented Nov 6, 2024

@jerry-ey jerry-ey marked this pull request as ready for review November 6, 2024 21:05
Copy link
Collaborator

@dbayly-freshworks dbayly-freshworks left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jerry-ey jerry-ey merged commit 4b39891 into main Nov 7, 2024
7 checks passed
@jerry-ey jerry-ey deleted the IEN-920 branch November 7, 2024 17:29
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