From a59dfb855e5c67a3565b233155b5acb496912a6e Mon Sep 17 00:00:00 2001 From: Marc Fraile Date: Tue, 7 Oct 2025 14:07:57 -0400 Subject: [PATCH 1/2] Default templates: update Cloudgene website to the current address. --- src/main/java/cloudgene/mapred/core/Template.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cloudgene/mapred/core/Template.java b/src/main/java/cloudgene/mapred/core/Template.java index ae470683..1b3db831 100644 --- a/src/main/java/cloudgene/mapred/core/Template.java +++ b/src/main/java/cloudgene/mapred/core/Template.java @@ -29,7 +29,7 @@ public class Template { "Sorry, our service is currently under maintenance. Imputation Server is expected to be down until Tuesday 08:00 AM EDT."), new Template(FOOTER, - "

powered by Cloudgene

"), + "

powered by Cloudgene

"), new Template(REGISTER_MAIL, "Dear %s,\nThis email has been sent automatically by the \"%s\" system to confirm that your profile has now been registered.\n\n" From 7946f81b28abcad443163214093f92128ecc39be Mon Sep 17 00:00:00 2001 From: Marc Fraile Date: Tue, 7 Oct 2025 14:09:59 -0400 Subject: [PATCH 2/2] Default templates: use text blocks for ease of reading; format file. --- .../java/cloudgene/mapred/core/Template.java | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/main/java/cloudgene/mapred/core/Template.java b/src/main/java/cloudgene/mapred/core/Template.java index 1b3db831..1ffef7f8 100644 --- a/src/main/java/cloudgene/mapred/core/Template.java +++ b/src/main/java/cloudgene/mapred/core/Template.java @@ -22,7 +22,7 @@ public class Template { public static final String USER_EMAIL_DESCRIPTION = "USER_EMAIL_DESCRIPTION"; public static final String USER_WITHOUT_EMAIL_DESCRIPTION = "USER_WITHOUT_EMAIL_DESCRIPTION"; - + public static final Template[] SNIPPETS = new Template[] { new Template(MAINTENANCE_MESSAGE, @@ -32,20 +32,29 @@ public class Template { "

powered by Cloudgene

"), new Template(REGISTER_MAIL, - "Dear %s,\nThis email has been sent automatically by the \"%s\" system to confirm that your profile has now been registered.\n\n" - + "To confirm your email address, please click on this activation link %s"), + """ + Dear %s, + This email has been sent automatically by the "%s" system to confirm that your profile has now been registered. + + To confirm your email address, please click on this activation link %s"""), new Template(RETIRE_JOB_MAIL, - "Dear %s,\nYour job retires in %s days! All imputation results will be deleted at that time.\n\n" - + "Please ensure that you have downloaded all results from https://imputationserver.sph.umich.edu/start.html#!jobs/%s"), + """ + Dear %s, + Your job retires in %s days! All imputation results will be deleted at that time. + + Please ensure that you have downloaded all results from https://imputationserver.sph.umich.edu/start.html#!jobs/%s"""), new Template(RECOVERY_MAIL, - "Dear %s,\nThis email has been sent automatically by the \"%s\" system.\n\n" - + "To reset your password, please click on this link %s. "), + """ + Dear %s, + This email has been sent automatically by the "%s" system. + + To reset your password, please click on this link %s."""), new Template(FOOTER_SUBMIT_JOB, ""), - - new Template(TERMS, "I will not attempt to re-identify or contact research participants.
" + + + new Template(TERMS, "I will not attempt to re-identify or contact research participants.
" + "I will report any inadvertent data release, security breach or other data management incident of which I become aware."), new Template(USER_EMAIL_DESCRIPTION, "Receive email notifications when jobs are completed."),