docbrown/spec/lib/data_update_scripts
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
..
add_data_updates_scripts_feature_flag_spec.rb Adds a feature flag for Data Update Scripts (#12641) 2021-02-10 18:22:27 +02:00
add_fastly_http_purge_feature_flag_spec.rb Fastly edge caching: use PURGE HTTP method instead of POST (#12627) 2021-02-17 13:34:37 -05:00
add_single_resource_role_to_tech_admins_spec.rb Fix erroring data update script (#12628) 2021-02-09 11:16:44 -08:00
backfill_forem_consumer_app_team_id_spec.rb Make Consumer Apps dictate aasa results (#14015) 2021-06-24 08:36:11 -06:00
cleanup_articles_with_invalid_feed_source_url_spec.rb [deploy] Remove draft articles with duplicate feed source URL and cleanup invalid data: take 2 (#10239) 2020-09-08 11:53:41 -05:00
cleanup_orphan_git_hub_repositories_spec.rb Remove GitHub repositories when GitHub identity is removed (#11951) 2020-12-20 15:15:40 +01:00
create_profile_fields_spec.rb Drop profile fields for static attributes (#14109) 2021-07-01 14:30:40 -04:00
drop_profile_fields_for_static_attributes_spec.rb Drop profile fields for static attributes (#14109) 2021-07-01 14:30:40 -04:00
make_local_navigation_links_relative_spec.rb Update NavigationLink handling (#12316) 2021-01-20 13:57:59 -05:00
make_tags_with_mods_supported_spec.rb Automatically mark tag supported when adding mod (#11151) 2020-10-30 09:46:10 -04:00
populate_explicit_follow_points_spec.rb Add implicit points to follows to improve feed relevancy (in all algorithms) (#11513) 2020-11-25 16:09:51 -05:00
remove_feeds_import_feature_flag_spec.rb Remove RssReader (#12169) 2021-01-08 11:45:15 -05:00
remove_notification_setting_migration_scripts_spec.rb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
remove_runtime_banner_feature_flag_spec.rb Remove :runtime_banner feature flag (#13662) 2021-05-28 15:10:15 -06:00
remove_site_config_scripts_spec.rb [Hotfix] Fix DataUpdateScripts::RemoveSiteConfigScripts script (#13824) 2021-05-21 16:34:21 +02:00
remove_unused_data_update_scripts_spec.rb Cleanup unused DataUpdateScripts (#13640) 2021-05-04 09:19:24 -04:00
set_onboarding_profile_fields_for_existing_forems_spec.rb Upgrade rubocop* packages to the latest version and fix violations (#11972) 2020-12-21 18:29:43 +01:00
set_proper_display_area_for_profile_fields_spec.rb Remove references to social link profile fields (#13252) 2021-05-03 10:16:02 -05:00
touch_articles_with_capitalized_paths_spec.rb Upgrade rubocop* packages to the latest version and fix violations (#11972) 2020-12-21 18:29:43 +01:00
update_article_main_image_path_spec.rb Bump rubocop from 1.17.0 to 1.18.0 (#14107) 2021-07-01 13:51:49 +02:00
update_articles_cached_entities_spec.rb Bug Fix:Update Article Cached Org and Docs When Org is Deleted (#12100) 2021-01-04 12:36:28 -06:00
update_user_update_rate_limit_default_spec.rb Create settings model for rate limits (#13381) 2021-04-20 11:29:22 +07:00