Molly Struve
da27a1a41c
[deploy] Bug Fix:Monkey Patch Sitemap Generator is lib not config ( #10113 )
2020-08-31 16:12:11 -05:00
Molly Struve
7891db594f
[deploy] Bug Fix:Add send_email_digest Rake Task for DEV ( #10065 )
2020-08-28 14:12:10 -05:00
rhymes
ba8b3dd443
[deploy] Add missing dependent clauses to User and cleanup relations ( #10011 )
...
* Add dependent: :destroy relation to user.notes
* Add cleanup script for orphaned notes
* Reorder relations and reorganize specs in User
* Update specs as notes are not needed after a user is deleted
* Tweets can just be nullified
* Add other cleanup scripts
* Tell the specs we keep tweets
* Fix comments
* Keep page_views and rating_votes when a user is deleted
* Fix specs
2020-08-28 20:19:24 +02:00
rhymes
c9e401758a
[deploy] Add dependent clauses to Article and fix Comment validation ( #9990 )
...
* Add dependent clauses to Article model
* Comment should be valid without a commentable
* Add cleanup scripts
* Cache the comments ids before destroying the article
* Add dependent clause to Article.user_subscriptions as well
* Fix specs
2020-08-28 18:24:28 +02:00
Michael Kohl
161ed7d55e
[deploy] Introduce ProfileFieldGroup model ( #10007 )
...
* Introduce ProfileFieldGroup model
* Make profile_fields_groups name column unique
* Fix some specs
* feat: allow the page to work again
* Add guard clause to data update script
* Remove unused file
* Fix specs
* Add foreign key
Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2020-08-28 10:51:33 +07:00
Nick Taylor
6f86573dbf
Removed the autoprefixer-rails deprecated gem ( #10017 )
...
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2020-08-26 17:38:24 -04:00
Josh Puetz
d47d02f090
[deploy] Log in with Facebook ( #9922 )
...
* First draft of facebook auth
* Add Facebook welcome broadcast to seeds, data script
* Tests!
* Documentation
* Update docs with pictures
* User siteconfig/app config
* Adjust dropdown menu width to avoid wrap for Facebook button
* Add Facebook auth keys to SiteConfig properly
* Remove unnecessary VCR cassette
* Add omniauth facebook gem to vendor cache
* Use uid instead of email for nickname randomization
* Test fix, test for missing email in Facebook
* Update docs/backend/auth-facebook.md
Co-authored-by: Molly Struve <mollylbs@gmail.com>
* Typo fix!
* Don't default facebook auth settings to ApplicationConfig
Co-authored-by: Molly Struve <mollylbs@gmail.com>
2020-08-26 12:04:20 -04:00
Molly Struve
b23374e737
[deploy] Revert "Refactor:Move RssReader Fetch Article task to Sidekiq ( #9976 )" ( #9998 )
2020-08-25 14:57:33 -05:00
Molly Struve
ff06454151
[deploy] Refactor:Move RssReader Fetch Article task to Sidekiq ( #9976 )
2020-08-25 13:47:13 -05:00
Molly Struve
0947256f13
[deploy] Refactor:Fetch New Github Repos From Sidekiq Cron ( #9986 )
2020-08-25 12:42:33 -05:00
Molly Struve
e0c37442c3
[deploy] Refactor:Move Enqueueing Podcast Workers to Sidekiq Cron ( #9983 )
2020-08-24 16:28:57 -05:00
Molly Struve
513717e680
Refactor:Move Credit Counter Cache Sync to Sidekiq ( #9972 )
2020-08-24 14:20:11 -05:00
rhymes
66b5cb513f
[deploy] Add dependent clauses to relations for Organization and add cleanup scripts ( #9932 )
...
* Add dependent clauses to has_many relations in Organization
* Add cleanup scripts
* Update script
* Destroy organizations listings
* Update lib/data_update_scripts/20200822082229_remove_orphaned_notifications_by_organization.rb
Co-authored-by: Molly Struve <mollylbs@gmail.com>
Co-authored-by: Molly Struve <mollylbs@gmail.com>
2020-08-24 19:35:02 +02:00
Molly Struve
972253a17b
Refactor:Remove save_nil_hotness_scores Task ( #9930 )
2020-08-24 10:20:19 -05:00
Molly Struve
d4a2f24c88
[deploy] Refactor:Move Cache Busting Rake Tasks to Sidekiq ( #9931 )
2020-08-24 08:23:11 -05:00
Molly Struve
e07c707ede
[deploy] Refactor:Move remove_old_notifications Rake Task to Sidekiq ( #9936 )
...
* Refactor:Move remove_old_notifications Rake Task to Sidekiq
* fix typo
2020-08-24 08:48:46 -04:00
rhymes
5f02c35ece
Fix Rubocop violations and merge Listing specs ( #9963 )
2020-08-24 12:04:29 +02:00
Molly Struve
8574153b07
[deploy] Refactor:Move Remove Old HTML Variant Data task to Sidekiq ( #9925 )
2020-08-22 18:36:22 -05:00
Molly Struve
4308914fe8
[deploy] Refactor:Move send_email_digest Rake Task to Sidekiq ( #9929 )
2020-08-22 08:26:30 -05:00
Molly Struve
060ed32c48
Refactor:Send Welcome Broadcast Notifications From Sidekiq ( #9923 )
...
* Refactor:Send Welcome Broadcast Notifications From Sidekiq
* remove old spec and add to new one
2020-08-21 12:57:08 -04:00
Molly Struve
e8b14dec83
Refactor:Move prune_old_field_tests Rake to Sidekiq Cron ( #9924 )
2020-08-21 12:56:42 -04:00
Molly Struve
f00bb8eb8c
[deploy] Refactor:Move Listing and Support Tag Tasks to Sidekiq ( #9898 )
2020-08-20 14:05:34 -05:00
Molly Struve
ae4080a6ef
[deploy] Refactor:Move Tag Badge and Github Badge Awards to Sidekiq ( #9885 )
2020-08-20 08:41:36 -05:00
rhymes
03ed8aedb1
[deploy] Remove orphaned polls related rows ( #9855 )
2020-08-20 10:40:01 +02:00
Michael Kohl
eff28766fc
[deploy] Migrate profile data ( #9750 )
...
* Add temporary Rake task for creating profile fields
* Fix problems after splitting branch
* Add profile migration Rake task
* Add unique index to profiles
* Add migration code to users
* Be smarter about updating profiles
* Update spec
* Update Bullet config
* Fix typo
* Change temporary rake task to data update script
* Re-add profile factory and update spec
* Change private declaration to make CodeClimate happy
* Update comment
* Drop validation in favor of DB default
* Update spec
2020-08-20 11:17:57 +07:00
Molly Struve
adc9c2ab3c
Optimization:Collect More Specific Data From Sidekiq Jobs ( #9882 )
2020-08-19 21:24:08 -04:00
Molly Struve
469ce3c533
Refactor:Move Streak Badges to Sidekiq Cron ( #9872 )
2020-08-19 14:53:03 -04:00
Molly Struve
960c51fbc0
[deploy] Refactor: Move beloved comment Badge to Sidekiq Cron ( #9861 )
2020-08-19 09:12:45 -04:00
Molly Struve
b003f45de8
[deploy] Bug Fix:Execute Hypershield Refresh Task ( #9858 )
2020-08-18 14:35:27 -05:00
rhymes
1375bf676e
[deploy] Nullify article_id for HtmlVariantTrials linked to non existing articles ( #9845 )
2020-08-18 14:51:06 +02:00
Molly Struve
dec9847589
Revert "Add Logging Statements to Debug Hypershield Refresh Not Working on Heroku ( #9838 )" ( #9839 )
...
This reverts commit acff871235 .
2020-08-17 19:22:38 -05:00
Molly Struve
55e7e12e78
[deploy] Refactor:Move Yearly Badge Awarder to Sidekiq Cron ( #9836 )
2020-08-17 20:19:14 -04:00
Molly Struve
acff871235
[deploy] Add Logging Statements to Debug Hypershield Refresh Not Working on Heroku ( #9838 )
2020-08-17 18:39:19 -05:00
Molly Struve
8d66d3c492
[deploy] Feature:Move Metric Rake Tasks to Sidekiq Cron ( #9794 )
2020-08-17 11:47:25 -05:00
Michael Kohl
2b3242087c
[deploy] Start using profile model ( #9724 )
...
* Persist attribute_name for profile fields
* Update fields
* Add temporary Rake task for creating profile fields
* Update specs
* Fix problems after splitting branch
2020-08-17 09:57:50 +07:00
Molly Struve
0a64ac067b
[deploy] Remove ENVied Gem, Use dotenv Take 2 ( #9767 )
2020-08-14 12:20:47 -05:00
rhymes
0f6baaf4ba
[deploy] Remove orphaned DisplayAdEvent rows ( #9765 )
...
* Remove orphaned DisplayAdEvent rows
* Add dependent in the has_many relationship between ads and ad events
2020-08-14 09:29:08 -04:00
rhymes
e727956640
Revert "[deploy] Refactor:Remove ENVied Gem, Use dotenv Instead for Test and Development ( #9621 )" ( #9757 )
...
This reverts commit 1be8c72206 .
2020-08-12 13:28:38 -04:00
Molly Struve
1be8c72206
[deploy] Refactor:Remove ENVied Gem, Use dotenv Instead for Test and Development ( #9621 )
...
* Refactor:Remove ENVied Gem in Favor of Default application.yml
* Copy sample_application.yml for Travis
* Create .env_sample file, Warn of missing ENV variables, ignore .env file
* Use dotenv For ENV variables and create Rake Task to Populate
* Update docs to copy .env_sample file
* make application config a bit more resilient
* update more documentation and only initialize dotenv in dev and test
* Update doc code snippet types and refactor rake task and app config
* remove push defaults
* Make initializers more resilient, remove unused ENV from travis
* Exit new rake task if application.yml does not exist, include dotenv in docs
2020-08-12 11:01:38 -04:00
rhymes
d337f5ee41
[deploy] Add foreign keys to Ahoy models ( #9636 )
...
* Add foreign keys to Ahoy models
* Empty incorrect script
* Delete with SQL
* Moved cleanup script in #9710
* Trigger Travis correctly
2020-08-11 20:46:17 +02:00
rhymes
3a56e4b442
[deploy] Cleanup orphaned Ahoy rows in the DB ( #9710 )
...
* Cleanup orphaned Ahoy rows in the DB
* Trigger Travis correctly
2020-08-11 16:20:54 +02:00
Alex
d200959809
[deploy] Improve clean up of user language settings ( #9671 )
2020-08-10 14:51:38 -04:00
rhymes
085c60992b
Rubocop: Enable and fix Style/OptionalBooleanParameter cop ( #9711 )
...
* Enable and fix Style/OptionalBooleanParameter cop
* Keep regular parameters for workers
* Keep regular parameters for workers
* Fix spec
* Trigger Travis correctly
2020-08-10 19:35:55 +02:00
Alex
c988481004
[deploy] Cleanup preferred_languages language_settings for users ( #9641 )
...
* Cleanup language settings for users
* Remove logic for old language format
* Make preferred_langagues_array.include? nil safe
2020-08-06 10:00:01 -04:00
Michael Kohl
c2d23cfc4d
[deploy] Seed profile fields ( #9605 )
...
* Fix schema.rb
* Add service objects for base and link fields
* Add link fields to seeds
* Make placeholder a keyword argument
* Add work fields
* Add explanation column to profile fields
* Add coding fields
* Switch from inheritance to mixin
* Add email checkbox to base fields
* Add branding fields
* Add spec for ProfileFields::FieldDefinition
* Move migration back into correct location
* Rename column from explanation to description
* Rename attribute in mixin
* chore: rename from explanation to description
* Add ProfileFields::ImportFromCsv
* Simplify ProfileFields::ImportFromCsv
* Add comment about disabled cop to spec
* Add TODO comment to Rake task
* Document mixin
* Add groups to profile fields
Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2020-08-05 10:11:30 -04:00
Molly Struve
d120fc7e54
[deploy] Bug Fix:Rename Listing Search Field in Elasticsearch to Fix Searching ( #9609 )
2020-08-03 10:18:17 -05:00
rhymes
864b13b9ab
[deploy] Rubocop: fix Rails/HasManyOrHasOneDependent for Ahoy::Visit and Badge ( #9565 )
...
* Fix Layout/EmptyLines
* Fix Rails/HasManyOrHasOneDependent for Ahoy::Visit
* Fix Rails/HasManyOrHasOneDependent for Badge
2020-07-31 11:43:50 -04:00
Michael Kohl
26ee8f194c
Rubocop: Move from OpenStruct to Struct in Organization ( #9431 )
...
* Move from OpenStruct to Struct in Organization
* Add data update script
* Introduce Articles::CachedEntity model
* Update data update script for new model
* Fix comment
* Update jbuilder
2020-07-30 21:04:05 +07:00
rhymes
5a2cae4fbb
Rubocop: enable and fix new Rails cops ( #9537 )
...
* Enable new Rails/* cops and use autocorrect on them
* Fixed Rails/PluckInWhere leftovers
* Fix Rails/DefaultScope
* Enable and fix Rails/PluckId
* Fix manual mistake with forcing autocorrection on Rails/PluckId
* Apply PR feedback to remove Rails/PluckId inline disables
* Apply PR feedback to get rid of Rails/PluckInWhere inline
2020-07-29 11:14:19 +02:00
Molly Struve
34458d5de9
[deploy] Bug Fix:Run Hypershield Refresh AFTER db:prepare ( #9546 )
2020-07-27 17:30:02 -05:00