docbrown/app/controllers/api/v1
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
..
admin API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
analytics_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
api_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
articles_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
comments_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
display_ads_controller.rb Allow DisplayAd to target users via audience segmentation (#19284) 2023-04-25 08:41:10 -04:00
feature_flags_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
followers_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
follows_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
health_checks_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
instances_controller.rb Unpublish post service class + V1 API endpoint (#18031) 2022-07-08 09:08:55 -06:00
listings_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
organizations_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
pages_controller.rb Pages API: create, update, and delete (#19009) 2023-02-02 17:24:11 +01:00
podcast_episodes_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
profile_images_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
reactions_controller.rb Restrict Reactions API to admins (#18424) 2022-09-08 17:56:42 +02:00
readinglist_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
tags_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
users_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00
videos_controller.rb API v1 without api key restriction (#18340) 2022-08-19 14:04:41 -06:00