docbrown/app/services/notifications
Joshua Wehner dc1ab81401
Allow DisplayAd to target users via audience segmentation (#19284)
* Trying some models for audience segmentation

* AudienceSegment basics

* Attach AudienceSegment to DisplayAd

* Possibly use a DUS to populate AudienceSegments

* Add to display ad form UI

* Add to display ad API

* Refresh strategy for audience segments

* Add user_id to async ads query

* Maybe :testing -> :manual, for no-refresh segment

* Test & tweak segment refresh

* Testing audience_segment#refresh logic

* Coverage: testing human_readable

* Scope segment refresh to recently active users

* Tweak logic for when to refresh

* Tweak experience levels to match SettingsHelper

* Test for front-end logic

* Fix test, hope this helps coverage?

* Better test names

* One worker for all, many workers for each, perform_bulk

* Fix audience segment UI, needs to use id, not enum

* cron/schedule should RefreshAll

* Singular id in RefreshWorker
2023-04-25 08:41:10 -04:00
..
milestone Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
moderation Round Robin Notifications Refactor (#19026) 2023-02-01 15:21:36 +02:00
new_badge_achievement Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
new_comment Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
new_follower Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
new_mention Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
notifiable_action Allow DisplayAd to target users via audience segmentation (#19284) 2023-04-25 08:41:10 -04:00
reactions Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
tag_adjustment_notification Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
welcome_notification Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
remove_all.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
remove_all_by_action.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
update.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00