Skip to content

Comments

Fix for how we calculate the submission_end_date to only use the scheduled end date value#45

Merged
jmgasper merged 2 commits intomasterfrom
develop
Jan 27, 2026
Merged

Fix for how we calculate the submission_end_date to only use the scheduled end date value#45
jmgasper merged 2 commits intomasterfrom
develop

Conversation

@jmgasper
Copy link
Collaborator

No description provided.

@jmgasper jmgasper merged commit 6e29aac into master Jan 27, 2026
6 checks passed
SELECT
cp."challengeId" AS challenge_id,
MAX(COALESCE(cp."actualEndDate", cp."scheduledEndDate")) AS submission_end_date
cp."scheduledEndDate" AS submission_end_date

Choose a reason for hiding this comment

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

[❗❗ correctness]
Changing the calculation of submission_end_date to use only cp."scheduledEndDate" instead of MAX(COALESCE(cp."actualEndDate", cp."scheduledEndDate")) could lead to incorrect results if actualEndDate is set and differs from scheduledEndDate. Ensure that this change aligns with the intended logic and that actualEndDate is not required for any business logic.

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.

1 participant