Skip to content
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

feat: add setting for Xpress email recipients. #1297 #914

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

bashanlam
Copy link
Contributor

Closes #
UserOfficeProject/issue-tracker#1297

Description

Add Xpress setting for email recipients.

Motivation and Context

Add Xpress setting for email recipients.

How Has This Been Tested

Manually tested Xpress setting for email recipients.

Changes

Insert record to Setting table for Xpress email recipients SAMPLE_SAFETY_EMAIL and TECHNIQUE_SCIENTISTS_EMAIL.
Update backend function for the Xpress email recipients.

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@bashanlam bashanlam requested a review from a team as a code owner January 21, 2025 15:17
@bashanlam bashanlam requested review from Junjiequan and ACLay and removed request for a team January 21, 2025 15:17
Chi Kai Lam added 2 commits January 22, 2025 13:38
…:UserOfficeProject/user-office-core into 1297-Xpress-setting-for-email-recipients
@bashanlam bashanlam requested a review from ACLay January 22, 2025 13:42
IF register_patch('0168_XpressEmailSetting.sql', 'Chi Kai Lam', 'Xpress email setting for recipients SAMPLE_SAFETY_EMAIL and TECHNIQUE_SCIENTISTS_EMAIL', '2025-01-13') THEN
BEGIN
INSERT INTO settings (settings_id, settings_value, description) VALUES ('SAMPLE_SAFETY_EMAIL', '', 'Email address for the sample safety.');
INSERT INTO settings (settings_id, settings_value, description) VALUES ('TECHNIQUE_SCIENTISTS_EMAIL', '', 'Email address for the Xpress technique scientist.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how it will work to have technique scientists as a static setting. The email needs to be sent only to the scientists belonging to the technique the proposal is submitted to, and we don't know which technique that is until the proposal has been submitted. If the setting has every technique scientist in it, it would alert scientists in other techniques that don't care about the proposal (not to mention require us to maintain another list).

@jekabs-karklins
Copy link
Contributor

Hello @bashanlam ,
Let me know if I should review this already, or you are addressing the question from @simonfernandes ,
cheers

@jekabs-karklins jekabs-karklins self-requested a review January 23, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants