discourse/app/jobs/regular
Selase Krakani 7ba115769a
DEV: Skip push notifications for active online users (#19502)
* DEV: Skip push notifications for active online users

Currently, users with active push subscriptions get push notifications
regardless of their "presence" on the site.

This change introduces a `push_notification_time_window_mins`
site setting which is used in conjunction with a user's `last_seen_at` to
determine if push notifications should be sent. A user is considered to
be actively online if their `last_seen_at` is within `push_notification_time_window_mins`
minutes. `push_notification_time_window_mins` is set to 10 by default.

* DEV: Remove client param for push_notification_time_window_mins site setting

Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>

Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>
2022-12-19 20:17:40 +00:00
..
admin_confirmation_email.rb
anonymize_user.rb DEV: Quote values when constructing SQL (#18827) 2022-11-01 14:05:13 -05:00
automatic_group_membership.rb PERF: Update `Group#user_count` counter cache outside DB transaction (#19256) 2022-11-30 11:52:08 -03:00
backfill_sidebar_site_settings.rb DEV: Sidebar default tags and categories are determined at user creation (#18620) 2022-10-27 06:38:50 +08:00
backup_chunks_merger.rb
bulk_grant_trust_level.rb
bulk_invite.rb FIX: Count resulting bulk invites correctly (#18461) 2022-10-04 18:41:06 +03:00
bulk_user_title_update.rb
bump_topic.rb
clear_slow_mode.rb
close_topic.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
confirm_sns_subscription.rb SECURITY: Improve validation of SNS subscription confirm (#14671) 2021-10-20 22:20:52 +01:00
crawl_topic_link.rb
create_avatar_thumbnails.rb
create_backup.rb
create_linked_topic.rb
create_user_reviewable.rb
critical_user_email.rb DEV: Make wizard an ember addon (#17027) 2022-06-17 14:50:21 +02:00
delete_inaccessible_notifications.rb
delete_replies.rb
delete_topic.rb
download_avatar_from_url.rb
download_backup_email.rb
download_profile_background_from_url.rb
emit_web_hook_event.rb SECURITY: Expand and improve SSRF Protections (#18815) 2022-11-01 16:33:17 +00:00
enable_bootstrap_mode.rb
export_csv_file.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
export_user_archive.rb FEATURE: Add cooked post to user archive exports (#18979) 2022-11-11 11:07:32 +00:00
feature_topic_users.rb
generate_topic_thumbnails.rb
group_pm_alert.rb FIX: Update group inbox notifications on archive/unarchive (#16152) 2022-03-11 11:57:47 +01:00
group_pm_update_summary.rb FIX: Update group inbox notifications on archive/unarchive (#16152) 2022-03-11 11:57:47 +01:00
group_smtp_email.rb DEV: Upgrade to Rails 7 2022-04-28 11:51:03 +02:00
index_category_for_search.rb
invite_email.rb FIX: Correctly use invite to topic email templates (#12411) 2021-03-16 17:08:54 +02:00
invite_password_instructions_email.rb
make_embedded_topic_visible.rb
mass_award_badge.rb FEATURE: Add option to grant badge multiple times to users using Bulk Award (#13571) 2021-07-15 05:53:26 +03:00
merge_user.rb
notify_category_change.rb
notify_mailing_list_subscribers.rb FIX: watched topic overcome muted category (#18480) 2022-10-06 11:10:43 +11:00
notify_moved_posts.rb
notify_post_revision.rb
notify_reviewable.rb DEV: Migrate sidebar site settings (#19336) 2022-12-08 09:44:29 +08:00
notify_tag_change.rb FIX: Notify tag watchers when publishing topic (#17576) 2022-07-20 19:07:18 +03:00
open_topic.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
post_alert.rb
post_update_topic_tracking_state.rb FEATURE: Display unread and new counts for messages. (#14059) 2021-08-25 11:17:56 +08:00
process_bulk_invite_emails.rb
process_email.rb
process_post.rb FEATURE: Pull hotlinked images immediately after posting 2022-05-23 14:28:02 +01:00
process_sns_notification.rb DEV: Add bounce_error_code to EmailLog (#15948) 2022-02-15 14:17:26 +10:00
publish_group_membership_updates.rb DEV:Using symbols is deprecated, use strings instead (#17874) 2022-08-11 11:33:41 -03:00
publish_topic_to_category.rb
pull_hotlinked_images.rb DEV: Rename secure_media to secure_uploads (#18376) 2022-09-29 09:24:33 +10:00
pull_user_profile_hotlinked_images.rb FIX: Skip pulling hotlinked images for nil user bio (#16901) 2022-05-24 11:52:13 +01:00
push_notification.rb
rebake_custom_emoji_posts.rb
rebake_posts_for_upload.rb
refresh_users_reviewable_counts.rb FIX: Exclude claimed reviewables from user menu (#19179) 2022-12-01 07:09:57 +08:00
remove_banner.rb DEV: adds support for bannered until (#13417) 2021-06-24 11:35:36 +02:00
retrieve_topic.rb
run_heartbeat.rb
send_push_notification.rb DEV: Skip push notifications for active online users (#19502) 2022-12-19 20:17:40 +00:00
send_system_message.rb
suspicious_login.rb DEV: Use strings for :user_email job type argument 2022-02-04 18:28:18 +00:00
sync_acls_for_uploads.rb DEV: Rename secure_media to secure_uploads (#18376) 2022-09-29 09:24:33 +10:00
sync_topic_user_bookmarked.rb FEATURE: Promote polymorphic bookmarks to default and migrate (#16729) 2022-05-23 10:07:15 +10:00
toggle_topic_closed.rb
topic_action_converter.rb
topic_timer_base.rb
truncate_user_flag_stats.rb
unpin_topic.rb DEV: adds support for bannered until (#13417) 2021-06-24 11:35:36 +02:00
update_gravatar.rb
update_group_mentions.rb
update_hotlinked_raw.rb FIX: Don't raise on deleted topic in UpdateHotlinkedRaw (#17901) 2022-08-13 22:40:26 +02:00
update_post_uploads_secure_status.rb PERF: Update post uploads secure status in a job (#13459) 2021-06-21 19:15:24 +03:00
update_s3_inventory.rb
update_top_redirection.rb
update_topic_upload_security.rb
update_username.rb
user_email.rb DEV: Accept `force_respect_seen_recently` argument in UserEmail job (#16460) 2022-04-18 13:32:11 -05:00