Skip to content

SAK-51126 Samigo remove legacy email and related code #13561

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

Merged
merged 5 commits into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import org.sakaiproject.tool.assessment.ui.bean.evaluation.StudentScoresBean;
import org.sakaiproject.tool.assessment.ui.bean.evaluation.TotalScoresBean;
import org.sakaiproject.tool.assessment.ui.bean.authz.AuthorizationBean;
import org.sakaiproject.tool.assessment.ui.bean.util.EmailBean;
import org.sakaiproject.tool.assessment.ui.listener.evaluation.StudentScoreListener;
import org.sakaiproject.tool.assessment.ui.listener.evaluation.SubmissionNavListener;

Expand Down Expand Up @@ -330,16 +329,6 @@ else if (target.indexOf("/jsf/author/publishedSettings") > -1
bean.setAssessmentAttachment();
toolSession.removeAttribute("SENT_TO_FILEPICKER_HELPER");
}

// case 4: create new mail, then set
// emailBean.attachmentList = filepicker list
else if (target.indexOf("/jsf/evaluation/createNewEmail") > -1
&& ("true").equals(toolSession.getAttribute("SENT_TO_FILEPICKER_HELPER"))) {
EmailBean bean = (EmailBean) ContextUtil.lookupBeanFromExternalServlet("email", req, res);
bean.prepareAttachment();
toolSession.removeAttribute("SENT_TO_FILEPICKER_HELPER");
}

else if (target.indexOf("/jsf/evaluation/questionScore") > -1
&& ("true").equals(toolSession.getAttribute("SENT_TO_FILEPICKER_HELPER"))) {
QuestionScoresBean bean = (QuestionScoresBean) ContextUtil.lookupBeanFromExternalServlet("questionScores", req, res);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
import org.sakaiproject.tool.assessment.ui.bean.evaluation.QuestionScoresBean;
import org.sakaiproject.tool.assessment.ui.bean.evaluation.SubmissionStatusBean;
import org.sakaiproject.tool.assessment.ui.bean.evaluation.TotalScoresBean;
import org.sakaiproject.tool.assessment.ui.bean.util.EmailBean;
import org.sakaiproject.tool.assessment.ui.listener.util.ContextUtil;
import org.sakaiproject.tool.assessment.util.BeanSort;
import org.sakaiproject.user.api.User;
Expand Down Expand Up @@ -124,7 +123,6 @@ public void processAction(ActionEvent ae) throws
QuestionScoresBean questionbean = (QuestionScoresBean) ContextUtil.lookupBean("questionScores");
HistogramScoresBean histobean = (HistogramScoresBean) ContextUtil.lookupBean("histogramScores");
SubmissionStatusBean submissionbean = (SubmissionStatusBean) ContextUtil.lookupBean("submissionStatus");
EmailBean emailBean = (EmailBean) ContextUtil.lookupBean("email");

// we probably want to change the poster to be consistent
String publishedId = ContextUtil.lookupParam("publishedId");
Expand Down Expand Up @@ -166,12 +164,8 @@ public void processAction(ActionEvent ae) throws
sb.append(" ");
sb.append(agent.getLastName());
bean.setGraderName(sb.toString());
emailBean.setFromName(agent.getEmail());
// Set from email here. We need it to decide if the Email link should be displayed or not.
// (if from email is null, we don't display the Email link)
// as well.
// Set grader email info to be used to determine if mailto links should be shown
bean.setGraderEmailInfo(agent.getEmail());
emailBean.setFromEmailAddress(agent.getEmail());

// checking for permission first
FacesContext context = FacesContext.getCurrentInstance();
Expand Down
Loading
Loading