Skip to content

EVALSYS-1627 Email/Notifications ask on Close Now whether to send the results email now - #214

Merged
danielmerino merged 1 commit into
masterfrom
EVALSYS-1627
Nov 20, 2026
Merged

danielmerino merged 1 commit into
masterfrom
EVALSYS-1627

Conversation

@danielmerino

Copy link
Copy Markdown
Contributor

JIRA: https://sakaiproject.atlassian.net/browse/EVALSYS-1627 (follow-up of EVALSYS-1612)

Problem

When an evaluation without a future results view date is closed early with "Close Now", it goes straight to the viewable state, where no job is rescheduled. The original due job stays, so the results-available email is still sent on the original due date. Always sending it on close is not right either, since evaluations are often closed temporarily (to change a setting, or to check the report) and reopened later.

Changes

  • "Close Now" opens a dialog: Send now, Wait for the scheduled date or Cancel. It is only shown when closing makes the results viewable right away; otherwise the behaviour is unchanged.
  • EvalEvaluationSetupService.closeEvaluation(evaluationId, userId, sendResultsNow): new overload; the existing method keeps its behaviour (sendResultsNow = false).
  • EvalJobLogic.scheduleResultsNotificationNow(): removes pending due/closed/viewable jobs and schedules a closed job now, so the usual job chain sends the owner/instructor/student notifications once.
  • New controlevaluations.close.dialog.* messages (EN, ES).

🤖 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>
@danielmerino
danielmerino merged commit 7bc96ae into master 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.

2 participants