docbrown/app/models
Alex 9ee024f9d0
UserSubscription backend refactor (#9060)
* Refactor controller validations to model

* Update specs and move current email validation back

* Refactor #subscribed

* Cleanup UserSubscriptions::Create service

* Refactor service

* Move source inside of call for clarity

* Specs for UserSubscription::Create

* Cleanup spec

* Fix Article spec

* Updated for subscriber_email

* Add comment for explicitness of subscriber_email

* Fix reference in comment...oops!

* I know what I'm doing...sometimes...maybe

* Rename CachChecker - Subscription to IsSubscribed

* Use include vs eq in specs for error messages

* attr_accessor --> attr_reader

* Don't explicitly set nil

* Rename Create service to CreateFromService

* Use errors_as_sentence

* Rename service to CreateFromControllerParams

* Assign Struct to a new constant
2020-07-02 12:08:37 -04:00
..
ahoy Add ahoy + welcome notification tracking (#8758) [deploy] 2020-06-18 13:40:14 -07:00
concerns [deploy] Add subscriber_email to user_subscriptions & more backend updates (#8723) 2020-06-18 14:40:08 -04:00
webhook Routine rubocop fixes (#8685) 2020-06-16 11:09:15 +02:00
api_secret.rb Limit the Number of API Keys a User Can Have (#7870) 2020-05-15 11:33:02 +02:00
application_record.rb Filter only ordinary tables in estimated count (#8913) 2020-06-25 14:04:13 -04:00
article.rb [deploy] Add contexts and permissions to liquid tags (#8917) 2020-06-30 14:53:18 -04:00
audit_log.rb Nullify audit logs on users delete (#7275) 2020-04-15 18:26:16 +02:00
backup_data.rb Add functionality to remove and recover identity (#3377) 2019-07-03 12:01:16 -04:00
badge.rb [deploy] Improve badge slug generation (#7386) 2020-04-20 15:47:44 +02:00
badge_achievement.rb [deploy] Strengthen badge achievement code and fix badge email (#7000) 2020-04-02 09:14:10 -04:00
banished_user.rb Introduce BanishedUser table (#5589) [deploy] 2020-01-21 17:15:58 -05:00
block.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
broadcast.rb Add active_status_updated_at to the Broadcasts Table (#8451) [deploy] 2020-06-16 13:04:14 -06:00
buffer_update.rb replace hardcoded twitter hashtag (#7895) 2020-05-19 14:02:28 +02:00
chat_channel.rb Small ActiveRecord optimizations: begone race conditions and hello bulk insert (#8436) 2020-06-15 17:57:14 +02:00
chat_channel_membership.rb Add unique indexes - part 4 (#8059) 2020-05-27 09:29:20 +02:00
collection.rb Use Rails 6 new features in the code (#8342) 2020-06-08 16:06:29 -04:00
comment.rb [deploy] Add contexts and permissions to liquid tags (#8917) 2020-06-30 14:53:18 -04:00
config.rb Add single resource admin concept (#5069) [deploy] 2019-12-11 13:17:55 -05:00
credit.rb Replace activerecord-import with Rails 6 insert_all and upsert_all (#8407) 2020-06-12 11:16:06 +02:00
data_update_script.rb Small ActiveRecord optimizations: begone race conditions and hello bulk insert (#8436) 2020-06-15 17:57:14 +02:00
display_ad.rb Remove unused columns in display_ads (#6859) 2020-03-27 10:05:46 +01:00
display_ad_event.rb Remove unused columns from display_ad_events (#6806) [deploy] 2020-03-25 17:47:05 -04:00
email_authorization.rb [deploy] Add automated email ownership emails (#7556) 2020-05-06 12:07:54 -05:00
email_message.rb Fix repeated queries for reports (#835) 2018-10-09 12:42:55 -04:00
event.rb Change string concatenation to interpolation (#7680) 2020-05-06 17:13:10 +02:00
feedback_message.rb Routine rubocop fixes (#8685) 2020-06-16 11:09:15 +02:00
follow.rb API: add docs for /followers/users and remove organizations endpoint (#6551) 2020-03-11 10:56:43 +01:00
github_issue.rb [deploy] Add unique indexes - part 3 (#8050) 2020-05-26 08:34:53 -05:00
github_repo.rb Refactor GitHub::Client to extract Github::OauthClient for users (#7848) 2020-05-18 14:23:55 +02:00
growth.rb Add single resource admin concept (#5069) [deploy] 2019-12-11 13:17:55 -05:00
html_variant.rb [deploy] Remove sidebar variant from CTA (#8040) 2020-05-23 13:35:43 -04:00
html_variant_success.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
html_variant_trial.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
identity.rb Add email panel to settings/account (#8727) 2020-06-18 13:08:46 +02:00
languages.rb Change format of the user languages_settings #2369 (#2496) 2019-04-30 17:01:19 -04:00
listing.rb [deploy] Streamline Tag parsing for both editors (#8175) 2020-06-05 08:46:24 -04:00
listing_category.rb [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
mention.rb [deploy] Add missing unique indexes - part 2 (#8002) 2020-05-21 14:15:49 -05:00
message.rb [deploy] Use Action Mailer parameterized syntax (#8853) 2020-06-23 13:48:41 -05:00
mod.rb Add single resource admin concept (#5069) [deploy] 2019-12-11 13:17:55 -05:00
moderator_action.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
note.rb Add user status to internal/users (#1444) 2019-01-03 16:44:43 -05:00
notification.rb [deploy] Optimization: Default Delete Notifications Older than 3 months (#9038) 2020-06-30 16:15:21 -05:00
notification_subscription.rb Finalize UI for all types of notification settings (#3164) 2019-06-14 18:28:38 -04:00
organization.rb [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
organization_membership.rb Routine rubocop fixes (#7356) 2020-04-17 15:48:39 +02:00
page.rb Add json template to Pages (#8357) 2020-06-10 09:42:15 -05:00
page_view.rb Add two new experiments and one new conversion event (#6633) [deploy] 2020-03-16 18:16:02 -04:00
path_redirect.rb [deploy] Add path_redirects table and internal view (#8161) 2020-06-05 10:28:33 -04:00
permission.rb Add single resource admin concept (#5069) [deploy] 2019-12-11 13:17:55 -05:00
podcast.rb Routine rubocop fixes (#8685) 2020-06-16 11:09:15 +02:00
podcast_episode.rb [deploy] Rename positive_reactions_count to public_reactions_count in logic (#7926) 2020-05-26 12:36:28 -04:00
poll.rb Remove unused columns from polls (#7125) 2020-04-07 15:49:11 +02:00
poll_option.rb Remove unused columns from poll options (#7124) 2020-04-07 13:15:45 -04:00
poll_skip.rb Improve speed of model tests by around 50/60 seconds (#5016) 2019-12-09 16:33:48 -05:00
poll_vote.rb Remove double presence validator in PollVote (#3187) [ci skip] 2019-06-17 10:28:05 -04:00
privileged_reaction.rb [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
profile_pin.rb Fix Typos (#3510) 2019-07-22 12:56:48 -04:00
rating_vote.rb Create implicit experience level rating vote upon creating of readinglist reaction (#6522) [deploy] 2020-03-10 10:59:49 -04:00
reaction.rb [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
response_template.rb Add unique indexes - part 4 (#8059) 2020-05-27 09:29:20 +02:00
role.rb Remove video_permissions Role Reference From Specs and Code (#8344) 2020-06-08 10:23:53 -05:00
secret.rb [deploy] Feature: Setup Admin Area to Update Vault Secrets (#8935) 2020-06-29 15:08:09 -05:00
site_config.rb [deploy] Add secondary_logo_url to SiteConfig (#9068) 2020-07-02 11:55:28 -04:00
sponsorship.rb Refactored creating sponsorships (#7946) 2020-05-19 18:00:01 -04:00
tag.rb Stop allowing accented characters in tags (#9006) 2020-07-01 11:48:25 +02:00
tag_adjustment.rb [deploy] Fix tag removal case sensitivity for mods (#8024) 2020-05-22 15:44:10 -04:00
tool.rb Add single resource admin concept (#5069) [deploy] 2019-12-11 13:17:55 -05:00
tweet.rb [deploy] Decouple Twitter authentication from fetching tweets (#7920) 2020-05-19 18:05:41 -04:00
user.rb [deploy] Add subscriber_email to user_subscriptions & more backend updates (#8723) 2020-06-18 14:40:08 -04:00
user_block.rb Routine rubocop fixes (#8685) 2020-06-16 11:09:15 +02:00
user_optional_field.rb [deploy] Add optional fields to user (#7246) 2020-04-28 15:42:41 -04:00
user_subscription.rb UserSubscription backend refactor (#9060) 2020-07-02 12:08:37 -04:00
webhook_endpoint.rb Add single resource admin concept (#5069) [deploy] 2019-12-11 13:17:55 -05:00
welcome.rb Add single resource admin concept (#5069) [deploy] 2019-12-11 13:17:55 -05:00