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

Bug fix: reminder service not using config #8369

Merged
merged 2 commits into from
Dec 26, 2024

Conversation

mehansen
Copy link
Collaborator

@mehansen mehansen commented Dec 20, 2024

BACKEND PULL REQUEST

Related Issue

Discovered while I was reviewing #8315
Context: This service sends reminder emails every day to recently created orgs that have not ID verified. It was originally disabled in the non-prod envs but in this PR almost 2 years ago I accidentally broke that part so it's been not using the config property correctly since then

Changes Proposed

use the @Value annotation to get the property instead of @ConditionalOnProperty, which is meant to be used for bean registration

Testing

Tested in dev5 by deploying merethe/fix-reminderservice-config-TEST and checked app insights to see it's hitting the log for skipping

Screenshot 2024-12-20 at 3 35 41 PM

Can also be tested locally by tweaking the cron and checking the logs

@mehansen mehansen marked this pull request as ready for review December 23, 2024 17:38
Copy link
Collaborator

@emyl3 emyl3 left a comment

Choose a reason for hiding this comment

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

Nice catch! 🎣 Checked the app insights logs to see the verification emails are being skipped!

Copy link
Collaborator

@mpbrown mpbrown left a comment

Choose a reason for hiding this comment

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

Great work on finding and fixing this!

@mehansen mehansen added this pull request to the merge queue Dec 26, 2024
Merged via the queue into main with commit 2ccf672 Dec 26, 2024
33 checks passed
@mehansen mehansen deleted the merethe/fix-reminderservice-config branch December 26, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants