Repository navigation
EVALSYS-1627 Email/Notifications ask on Close Now whether to send the results email now - #214
Merged
Merged
Conversation
ottenhoff
approved these changes
Nov 19, 2026
… 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
force-pushed
the
EVALSYS-1627
branch
from
November 20, 2026 07:19
daf0bd0 to
b17b074
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.controlevaluations.close.dialog.*messages (EN, ES).🤖 Generated with Claude Code