docbrown/app/views
Molly Struve e87dead7ad
Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121)
* schema file undelete description

* feat: v1 of the script

* Flesh out remaining enums under their categories

* complete UsersSettings data update script

* complete DUS for relevant attributes in users and profiles tables

* complete DUS for users_notification_settings

* alphabetize user_settings sql file

* safeguard against null values for "null: false" settings

* Set up actual UsersSettings DUS and specs files

* fix broken DUS script

* complete specs for UsersSetting DUS

* Address QA of specs

* complete specs for users_notification_settings DUS

* fix the typos (thanks Julianna!)

* begin implementation

* still building

* add missing attribute "email_membership_newsletter"

* complete sync code (except race condition for user profile)

* complete implementation, remains tests

* Address PR review and fix Travis fails

* remove superfluous Profile.new

* fix travis fails

* feat: update the users_notification_setting attributes from the user model

* feat: use the config fonts enums to display the fonts

* feat: loop through the keys

* fix profile = nil blowing up; add specs for notification_setting model

* remove unneeded spec

* remove feed validation until after sync code removed; fixes feed_import spec failures

* remove spec associated with feed_url validation in user_setting model

* fix failing spec 😅

* add TODO

* feat: set the user settings in the user controller  and use it in the customization form

* feat: move some update logic to the users settings controller thats being used from customization

* feat: show the updated values form the users_settingd and not the user instance

* Generalize redirect back to current tab

* still trying to reflect changed theme upon refresh

* customizations take effect on refresh

* remove 'with_feed' scope from user model

Co-authored-by: Jamie Gaskins <jamie@forem.com>

* start with takeover for fields previously in profiles table

* Takeover code for `publishing_from_rss` section in Settings (#13914)

* implement takeover code part 1

* implement takeover code

* fix feed fetch

* need rhymes help

* complete implementation; specs pending

* fix STUPID omission that caused so many headaches 😫

* implement profile fields pointing to users_settings 🎉

* run migrations

* implement inbox type & guidelines takeover code; specs pending (#13911)

* Point changes in notification settings to `users_notification_settings` table (#13910)

* implement takeover code; remains specs

* address PR feedback; remove related sync code

* address PR review feedback

* need help with routing and specs

* address pr review

* addressing pr review

* Treat implementation edge cases and omissions 😅

* fix uncommented comment

* fixing implementation cases

* address more PR review feedback

* fixing notifications use-cases

* refactor settings controller

* more pr review changes

* solving bugs

* fix broken onboarding

* handle eperience_level calls

* more fixes

* remove unneeded mappings

* add To-dos for quety updates

* remove done TODO

* purge done TODOs

* update notification_settings-related queries

* start fixing specs

* fixing specs

* fix notification and lrg_forem specs

* fixing broken specs

* still fixing

* fix line dif and remove reloads from user.rb

* run specs

* silence bullet and other fixes

* remove setting migration scripts and specs, fix more settings for specs

* handle missing user for article builder and fix notification specs

* fix some final controller specs and re-add incorrectly removed specs

* remove deprecated data update scripts and related workers, put travis back

* refactor admin tags mods controller, write/move specs for users notifications settings controller

* schema cleanup and other small refactors for consistency

* set field we can invalidate in spec via active record instead of at the db level

* remove I think an uneccessary hook call from subscribe_to_mailchimp_newsletter

* use bnefore_create to setup settings, please dont blow up the test suite

* mailchimp bot fix

* remove decorator in favor of single model method

Co-authored-by: Arit Amana <msarit@gmail.com>
Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
Co-authored-by: Arit Amana <32520970+msarit@users.noreply.github.com>
Co-authored-by: Jamie Gaskins <jamie@forem.com>
2021-07-08 09:31:34 -05:00
..
admin [15-min-fix] Add org id to admin listings form (#14162) 2021-07-08 09:23:10 -04:00
api/v0 API: Remove orphan Admin Config jbuilder file (#13953) 2021-06-15 18:18:52 +02:00
articles Fix HTML markup in article pages (#14130) 2021-07-07 08:43:03 -06:00
badges Add loading=lazy to image tags (#10888) 2021-05-27 19:01:21 +02:00
chat_channel_memberships [15 Minute Fix]: Ensure crayons banners are accessible (#12919) 2021-03-09 09:16:26 -08:00
chat_channels add skip link to connect and manage post (#13503) 2021-04-27 10:01:24 +01:00
collections Fix collections/series meta tags (#13772) 2021-07-07 07:17:39 -06:00
comments remove extra margin (#14086) 2021-06-29 07:01:03 +02:00
credits Replacing granular admin email settings with one default email (#13853) 2021-05-28 12:17:08 +03:00
dashboards [15 min fix] Add aria-current attribute to current dashboard link (#14128) 2021-07-07 09:41:35 +01:00
deep_links Removing Settings::General.email_addresses (#13958) 2021-06-11 12:34:34 +03:00
devise Provide way to resend comfirmation email via log-in page (#14110) 2021-07-02 09:50:35 -04:00
doorkeeper Remove some HTML errors (#13288) 2021-04-07 11:46:12 +01:00
email_subscriptions Removal of morrrre hardcoded dev.to links (#7390) 2020-04-21 11:50:18 +02:00
events Removing Settings::General.email_addresses (#13958) 2021-06-11 12:34:34 +03:00
feedback_messages crayons-notice accessibility improvements (#13273) 2021-04-14 13:32:57 +01:00
fields Ignore unused users columns (#6954) [deploy] 2020-04-01 10:11:40 +02:00
followings Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
github_repos Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
homepage Stories views reorganization (#1317) 2018-12-13 14:54:02 -05:00
kaminari/internal Upgrade erb_lint to support latest Rubocop and fix violations (#9663) 2020-08-07 15:36:48 +02:00
layouts Replace admin guide links (#13967) 2021-06-23 15:01:01 -04:00
liquid_embeds Refactor deployed_at and latest_commit_id code (#12224) 2021-01-13 16:53:59 +02:00
liquids crayons-notice accessibility improvements (#13273) 2021-04-14 13:32:57 +01:00
listings Remove duplicate jquery import, remove jquery-rails and use @rails/ujs (#13891) 2021-06-01 15:28:09 +02:00
mailers Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
moderations Removing Settings::General.email_addresses (#13958) 2021-06-11 12:34:34 +03:00
notifications Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
onboardings Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
open_search Removing Settings::General.email_addresses (#13958) 2021-06-11 12:34:34 +03:00
organizations stories list script as separate js file - defer attribute (#13993) 2021-06-21 10:59:30 +07:00
pages Remove badge notice from /settings/profile (#14019) 2021-06-22 14:27:39 -04:00
podcast_episodes stories list script as separate js file - defer attribute (#13993) 2021-06-21 10:59:30 +07:00
podcasts stories list script as separate js file - defer attribute (#13993) 2021-06-21 10:59:30 +07:00
profile_field_groups Add ProfileFieldGroupsController to API (#10124) 2020-09-03 10:12:53 +07:00
profile_preview_card Profile Preview Cards (RFC#222) - author name in comments (#14056) 2021-06-25 10:05:37 +01:00
reading_list_items Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
response_templates Refactor jbuilder (#7411) 2020-04-24 12:49:12 +02:00
service_worker Revert "Revert "Removed service worker (#12974)" (#13014)" (#13015) 2021-03-17 10:57:56 -04:00
shared Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
sidebars Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
sitemaps Replaced ApplicationConfig with app_url in views (#7708) 2020-05-08 13:19:29 +03:00
social_previews Remove SheCoded Specific Code (#13363) 2021-04-12 11:04:58 -07:00
stories stories list script as separate js file - defer attribute (#13993) 2021-06-21 10:59:30 +07:00
tags Add loading=lazy to image tags (#10888) 2021-05-27 19:01:21 +02:00
users Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
videos Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00