Skip to content

EVALSYS-1627 [25.x] Email/Notifications ask on Close Now whether to send the results email now - #215

Merged
danielmerino merged 1 commit into
25.xfrom
EVALSYS-1627-25.x
Nov 20, 2026
Merged

danielmerino merged 1 commit into
25.xfrom
EVALSYS-1627-25.x

Conversation

@danielmerino

Copy link
Copy Markdown
Contributor

Backport of #214 to 25.x.

https://sakaiproject.atlassian.net/browse/EVALSYS-1627

Cherry-pick of b17b074. The only conflict was the @RequestParam style in ControlEvaluationsController.closeEval(), which keeps the 25.x form without explicit names.

🤖 Generated with Claude Code

… results email now

Closing an evaluation early without a future results view date moves it
straight to the viewable state, where no job is rescheduled, so the
results-available email still went out on the original due date.
Sending it on every early close is not right either, because
evaluations are often closed temporarily and reopened later.

"Close Now" now opens a dialog to choose between sending the
results-available email now or keeping the original schedule. The
dialog is only shown when closing makes the results viewable right
away; otherwise nothing changes.

- EvalEvaluationSetupService: new closeEvaluation(evaluationId, userId,
  sendResultsNow); the existing method keeps its behaviour.
- EvalJobLogic: new scheduleResultsNotificationNow(), which replaces the
  pending due/closed/results jobs with a closed job that runs now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit b17b074)
@danielmerino
danielmerino merged commit 115b46f into 25.x Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant