Weekly email reminder for Missing time Entries#496
Merged
supriya3105 merged 10 commits intodevelopfrom Jun 22, 2022
Merged
Conversation
Current Code Coverage Percent of this PR:88.55 %Files having coverage below 100%
|
Contributor
|
@apoorv1316 Please test this PR. |
Member
akhilgkrishnan
left a comment
There was a problem hiding this comment.
@harshaanNihal Added couple of comments
app/views/send_weekly_reminder_to_user_mailer/notify_user_about_missed_entries.html.erb
Show resolved
Hide resolved
- Add mailer service with rough email template in html and text format
- Add the gem sidekiq-scheduler - setup a schedule in sidekiq.yml - create a job to get triggered by scheduler
- Send mail to all users who has less than 40 hours for a company.
- add a string value to turn on the weekly reminder
8218c6e to
9b45f6f
Compare
Contributor
|
@akhilgkrishnan @rohitjoshixyz Please review and add your feedbacks if any |
rohitjoshixyz
approved these changes
Jun 21, 2022
Contributor
rohitjoshixyz
left a comment
There was a problem hiding this comment.
One question about the ENV variable name. Rest LGTM
|
|
||
| class WeeklyReminderToUserJob < ApplicationJob | ||
| def perform(*args) | ||
| if ENV["RAILS_LOG_TO_STDOUT"].present? |
Contributor
There was a problem hiding this comment.
Shouldn't this be ENABLE_WEEKLY_REMINDER
Contributor
Author
There was a problem hiding this comment.
I completely missed this one will. Fixed in #514
| start_date:, | ||
| end_date:, | ||
| company_name: | ||
|
|
Contributor
|
@rohitjoshixyz Created new notion card for your feedback. @harshaanNihal merging this. Please implement the feedback in new PR. |
7 tasks
vipulnsward
pushed a commit
that referenced
this pull request
Feb 15, 2026
* Add mailer service and email template - Add mailer service with rough email template in html and text format * Add Specs and Preview for Mailer * Setup Sidekiq-scheduler - Add the gem sidekiq-scheduler - setup a schedule in sidekiq.yml - create a job to get triggered by scheduler * Add weekly_reminder_service to trigger mailer - Send mail to all users who has less than 40 hours for a company. * Update a Mailer Template and add preview * Add feature flag for weekly reminder - add a string value to turn on the weekly reminder * Add timezone and fix failing spec * fix cron * Fix review comments * Update email templates folder to views/mailers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notion card
https://www.notion.so/saeloun/Send-Reminder-to-employees-to-fill-their-timesheets-on-Monday-if-the-weekly-total-is-less-than-40-ho-6a479e56dc2a45798ef0b7889e382403
Summary
ENABLE_WEEKLY_REMINDER[Any jobs which are already scheduled will still get triggered]Preview
Type of change
Please delete options that are not relevant.
not work as expected)
How Has This Been Tested?
Tested manually to check if the Target users are correct by scheduling it to hourly instead of weekly.
Checklist: