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

TNO-2598 Fix Reporting Service #1768

Merged
merged 1 commit into from
May 1, 2024
Merged

TNO-2598 Fix Reporting Service #1768

merged 1 commit into from
May 1, 2024

Conversation

Fosol
Copy link
Collaborator

@Fosol Fosol commented May 1, 2024

Removing invalid email so that reports and notifications will not fail.

Also corrected DevOps configuration to enable email in TEST.

@Fosol Fosol added bug Something isn't working devops DevOps templates, documentation, configuration, tools. labels May 1, 2024
@Fosol Fosol self-assigned this May 1, 2024
@@ -18,4 +18,4 @@ data:
MAX_FAIL_LIMIT: "5"
TOPICS: index
CHES_EMAIL_ENABLED: "true"
CHES_EMAIL_AUTHORIZED: "false"
CHES_EMAIL_AUTHORIZED: "true"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Mistakenly set this as false in a few places.

@@ -703,7 +703,7 @@ private async Task GenerateReportAsync(ReportRequestModel request, API.Areas.Ser
await HandleChesEmailOverrideAsync(request.RequestorId);

var contexts = new List<EmailContextModel>();
if (!String.IsNullOrWhiteSpace(request.To))
if (!String.IsNullOrWhiteSpace(request.To) && request.To.IsValidEmail())
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The downside to this is it will ignore invalid email addresses and will hide a possible issue.

@Fosol Fosol merged commit 9bc815a into bcgov:dev May 1, 2024
1 check passed
@Fosol Fosol deleted the tno-2598 branch May 1, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devops DevOps templates, documentation, configuration, tools.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant