docbrown/spec/factories
Ridhwana b2d24f291b
Display Ads: Target by Tag on Posts with matching Tag(s) on the user facing side (#18664)
* feat: Add a pack file that pulls in the MultiSelect Component

* feat: move the tags to its own component

* save tags

* refactor: create a getCSRFToken function in the packs files so that it can be used in the admin

* feat: import the new module in request.js

* feat: remove unnecessary id

* feat: first pass of csrf token test

* chore: update the test

* fix: csrf token

* feat: hide the enw functionality behinda  feature flag

* fix: loading form twice

* refactor: import for csrftoken

* chore: update the description of the function

* feat: use acts_on_taggable to craete a relationship between display_ad and tag

* feat: add a tag field to the display_ad form

* feat: add the selected tags from the multiselect autocomplete component to the input text field that references the tag_list

* feat: add the tag_list to the controller so that we can save it to the db with the display ad parameters

* feat: pull out the tag validation from the article and the display_ads into a concern

* feat: write soem tests for validating the tag on the display_ads model

* feat: add the tag_list as a hidden field

* feat: set the selected tags on edit

* feat: add a js class for the placement area

* feat: use the change in the dropdown to determine whether we show the tags field dropdown

* refactor: rename and brak up fucntions

* feat: show the tags field if the value of the placement area is already set

* fix: move if statement out of the change event

* feat: hide tags field and clear the tag list

* refactor: delete the display ads

* tests: ensure that we test the toggle

* fix:ensure that the tags on the hidden field show up as a string in the input field

* feat: update the jsdoc

* fix: no need to replace space with comma since we showing as string in form

* feat: update the name of the label

* fix: add hidden back

* feat: add cached_tag_list to displya_ads + the index

* feat: udpdate the schema

* refactor: move the scopes into the a module that can be re-used between display_ads and articles

* feat: account for showing display ads with the targeted tags that match the article

* feat: write a spec to show the correct ads based on the article_tags

* refactor: change TagListValidateable to Taggable and move out the not_cached_tagged_with_any scope

* test teh relationship between display ads and tags

* feat: write soem tests for validating the tag on the display_ads model

* chore: change empty to blank

* feat: will show display ads with no tags set if there are no article tags

* feat: add a newline
2022-11-03 15:51:51 +02:00
..
activesupport_events.rb
ahoy.rb
api_secrets.rb
articles.rb Display Ads: Target by Tag on Posts with matching Tag(s) on the user facing side (#18664) 2022-11-03 15:51:51 +02:00
audit_logs.rb
badge_achievements.rb
badges.rb
banished_users.rb
broadcasts.rb Constantize broadcast messages (#16219) 2022-01-20 11:47:01 -06:00
collections.rb
comments.rb
consumer_apps.rb
context_notifications.rb Context Notifications (#17243) 2022-04-18 10:30:30 +03:00
credits.rb
data_update_script.rb
devices.rb
discussion_locks.rb
display_ad_events.rb Extracting constants and tidying tests (#15946) 2022-01-05 09:19:39 -05:00
display_ads.rb
email_authorizations.rb
email_messages.rb
feedback_messages.rb
field_test_memberships.rb
follow.rb
gdpr_delete_requests.rb feat: add an inflection and change instances of gdpr to GDPR (#17567) 2022-05-04 16:20:46 +02:00
github_repos.rb
html_variant_trials.rb
html_variants.rb Drop tables related to HtmlVariant tracking, ignore HtmlVariant.success_rate column (#18615) 2022-10-26 14:46:02 +03:00
identities.rb Fixed setting Identity#auth_data_dump in seeds and factory (#15874) 2021-12-28 09:02:15 +03:00
listing_categories.rb
listings.rb
mentions.rb
navigation_links.rb
note.rb
notification_subscriptions.rb
notifications.rb
organization_memberships.rb
organizations.rb
page_views.rb
pages.rb
podcast_episode_appearances.rb
podcast_episode_rss_items.rb
podcast_episodes.rb Always show the browse section of podcasts regardless of featured (#16329) 2022-03-22 12:56:54 -04:00
podcast_ownership.rb
podcasts.rb Always show the browse section of podcasts regardless of featured (#16329) 2022-03-22 12:56:54 -04:00
poll_options.rb
poll_skips.rb
poll_votes.rb
polls.rb
profile_field_groups.rb
profile_fields.rb Require profile fields to belong to a group (#16390) 2022-02-15 09:27:18 -06:00
profile_pins.rb
profiles.rb
rating_votes.rb
reactions.rb Remove reactions to a user when deleting the user (#15724) 2021-12-10 11:24:23 -06:00
response_templates.rb
suspended_usernames.rb
tag_adjustments.rb
tags.rb v1 documentation via RSwag (#17990) 2022-07-08 14:37:30 -05:00
tweets.rb
user_blocks.rb
user_subscription.rb
users.rb Try renaming moderator -> super_moderator (#18261) 2022-08-10 16:43:30 +02:00
users_notification_settings.rb Mobile mention notifications (#15780) 2021-12-16 11:06:54 -06:00
users_settings.rb Theming cleanup (#15237) 2021-11-09 10:11:55 -05:00