Molly Struve
edcd019e9c
[deploy] Throttle General Site Requests ( #7418 )
2020-04-23 08:58:27 -05:00
Molly Struve
de88a08ebd
[deploy] handle rate limit errors gracefully ( #7422 )
2020-04-22 08:55:26 -05:00
Alex
b51852e866
[deploy] Remove fastly-rails gem ( #7257 )
...
* Remove fastly-rails gem
* Remove FastlyRails.configuration references
* Remove FastlyRails initializer
2020-04-14 10:11:27 -04:00
rhymes
34848a4209
Upgrade Rubocop to 0.81 ( #7219 )
...
* Upgrade rubocop to 0.81.0
* Reordered rubocop file and updated it
* Regenerate todo
* Correct some things
* Fix specs
2020-04-11 10:10:04 +02:00
rhymes
b8f2390cb5
Fix Datadog auth failure payload and add tests ( #7150 )
...
* Fix Datadog auth failure payload and add tests
* Use functional Ruby properly
2020-04-09 09:54:51 +07:00
Molly Struve
6f4e6fe064
[deploy] ensure that often run sidekiq jobs are unique until they execute ( #7168 )
2020-04-08 19:19:30 -04:00
Molly Struve
b652147e7a
throttle API get and write endpoints ( #7167 )
2020-04-08 19:17:51 -04:00
Ben Halpern
a4a14a5377
[deploy] Make force_ssl an environment variable to make sure new communities can get proper ssl config. ( #7090 )
...
* Add conditional for redirect
* Force ssl
* Redis secure
* More push
* Add FORCE_SSL_IN_RAILS env var
2020-04-08 14:23:50 -04:00
Ben Halpern
22ffc7febc
Cache onboarding at edge ( #6966 )
2020-03-31 16:12:14 +02:00
Molly Struve
55fe5a40a8
Add Rack::Attack Gem to Throttle Requests, Only Search to start ( #6841 ) [deploy]
...
* throttle requests made to search endpoints
* stub elasticsearch requests in rack attack specs and disable for running specs unless tagged
* use original client IP from fastly to throttle requests to search endpoints
2020-03-30 12:09:40 -04:00
rhymes
e9e4059ad3
Add Slack messengers: part 1 ( #6748 )
...
* Add Slack::Announcer and SlackClient
* Add Slack::Messengers::Feedback class
* Use Slack::Messengers::Feedback and refactor test
* Should not raise an error if params are nil, let the job fail
* Add Slack::Messengers::Sponsorship
* Rename spec
* Use Slack::Messengers::Sponsorship
* Add Slack::Messengers::PotentialSpammer
* Use Slack::Messengers::PotentialSpammer
* Add Slack::Messengers::RateLimit and use it
* Refactor a bit and improve tests
* Add Slack::Messengers::Note and use it
* Use Slack::Announcer and fix spec
* Fix specs
* Update app/services/slack/announcer.rb
Co-Authored-By: Vaidehi Joshi <vaidehi.sj@gmail.com>
* Implement review suggestions
* Empty commit to trigger Travis
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-03-24 18:45:40 +01:00
Michael Kohl
99da2a0863
Run rails app:update for 5.2.4.2 ( #6743 ) [deploy]
...
* Run rails app:update for 5.2.4.2
* Remove bin/update and disable ActiveStorage
2020-03-23 10:38:20 -04:00
Molly Struve
066e2885e8
Only Enable Hypershield if ENV variable is present ( #6666 ) [deploy]
...
* only enable hypershield if ENV variable is present
* enable hypershield if in production
2020-03-16 15:28:46 -04:00
Molly Struve
bd10c9086c
Enable Hypershield in Production Take 2 ( #6628 ) [deploy]
2020-03-16 09:10:01 -05:00
rhymes
5f831c9836
Remove extra HoneycombClient ( #6573 )
2020-03-11 10:34:14 +01:00
Mac Siri
8e4905522d
Implement KatexTag ( #6237 ) [deploy]
...
* Install Katex gem
* Add Katex stylesheet and spec
* Implement basic error handling
* Remove comment
* Create more spec
* Update approval file
Changes is due to turning off RedCarpet's superscript feature
* Add instruction to _editor_guide_text
* Serve our own KaTeX css
* Apply Rhyme's suggestion
* Limit Katex's css use
* Update spec
* Add spec
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2020-03-09 17:58:54 -04:00
Molly Struve
3fa1287c2d
remove hypershield ( #6554 ) [deploy]
2020-03-09 13:41:20 -04:00
Molly Struve
b43df4aff7
only activate hypershield in production ( #6541 ) [deploy]
2020-03-09 11:31:51 -04:00
Molly Struve
521cf57e63
Create Hypershield Schema to Shield Sensitive data in Production ( #6461 ) [deploy]
2020-03-09 08:54:31 -04:00
Alex
35651b26e5
Remove Algolia from Comments ( #6464 ) [deploy]
...
* Remove Algolia from comments
* Remove more references to ordered_comments index
* Remove more references to Comments Algolia index
* Fix index_worker_spec
2020-03-05 11:30:25 -08:00
Alex
bbec492844
Remove more Algolia from ClassifiedListing ( #6463 ) [deploy]
...
* Remove ClassifiedListing from algolia initializer
* Remove reference to remove_from_index
2020-03-05 09:23:22 -08:00
rhymes
e27c9b77a3
Refactor Elasticsearch client access ( #6307 ) [deploy]
...
* Add Transport module to Search
* Test public methods only
* Add Search::Client with exception handling
* Remove Transport and request do
* Replace SearchClient with Search::Client
2020-02-28 11:38:37 -05:00
rhymes
fc09716709
Use builtin Rails index_exists? for indices ( #6293 )
2020-02-26 11:05:23 -05:00
rhymes
c3e7179f5b
Bump to sprockets 4.0.0 ( #6172 ) [deploy]
...
* Bump to sprocket 4.0.0
* Add manifest.js
* Link internal/layout.css
* Make it more similar to Rails 5.2 default
2020-02-24 18:16:08 -05:00
rhymes
a5588ae430
Enable strong-migrations in all environments ( #6279 ) [deploy]
...
* Enable strong-migrations in production
* Disable environment checks in initializers
* Remove misleading description
2020-02-24 11:12:49 -05:00
rhymes
aa5f4b8d85
Remove leftover Stripe subscriptions code ( #6243 )
2020-02-24 08:33:36 -05:00
rhymes
8c7aa2e494
Rename DataDog to Datadog ( #6226 )
2020-02-21 12:00:30 -05:00
Molly Struve
895bf07ef3
Add Elasticsearch to Datadog APM ( #6129 ) [deploy]
2020-02-18 16:07:50 -05:00
rhymes
b8955f19fe
Add history as a reserved word ( #6150 ) [deploy]
2020-02-18 11:55:00 -05:00
rhymes
f3c2adfa45
Routine rubocop fixes ( #6138 )
2020-02-18 11:21:42 -05:00
Molly Struve
21d88399be
require worker_retries_exhausted_reporter in Sidekiq initializer ( #6131 ) [deploy]
2020-02-18 07:56:11 -05:00
Molly Struve
04dcca0b13
remove algolia from Tag model ( #6123 )
2020-02-17 12:28:10 -05:00
Alex
b81c2e8df3
Remove delayed_job ( #6071 ) [deploy]
...
* Update adapter to sidekiq
* Remove delayed_jobs routes
* Remove delayd_jobs initializer and references
* Remove delayed_job_spec
* Remove bin/delayed_job
* Remove app/jobs/
* Migration to drop delayed_jobs table
* Remove delayed_job_web & delayed_job_active_record
* Update docs
* Remove reference to delayed_job dashboard
* Remove delayed_job settings from initializers
* Add delayed_job_admin back to reserved words list
2020-02-14 10:00:26 -08:00
Molly Struve
7e5a8d59d9
enable bread crumbs for Honeybadger ( #6069 )
2020-02-13 17:30:36 -05:00
rhymes
ac7785ea8d
Update doorkeeper initializer with new (disabled) features ( #6011 )
2020-02-11 16:04:52 -05:00
rhymes
3258bc357a
Sort reserved words ( #6000 )
...
* Sort reserved words
* Remove duplicate words
* Make it a set
* Nope, it cannot be a set
2020-02-10 16:07:27 -05:00
rhymes
c41d66e900
Replace ban/banned with suspend/suspended in user facing text ( #5816 ) [deploy]
2020-02-10 10:12:53 -05:00
Molly Struve
4691ae1e34
Log in Datadog When Sidekiq Worker Fails for Final Time ( #5942 ) [deploy]
2020-02-10 08:56:41 -05:00
rhymes
3b25b014a3
Replace the initial migration for strong_migrations gem ( #5865 )
2020-02-03 11:32:46 -05:00
Molly Struve
0409722899
Introduce Elasticsearch to DEV env ( #5762 ) [deploy]
2020-02-03 09:12:05 -05:00
Molly Struve
a19ce5518e
combine Rack::Timeout::RequestTimeoutErrors with Exceptions in Honeybadger ( #5789 ) [deploy]
2020-01-28 16:55:51 -05:00
Molly Struve
b06ad5064a
Remove ENV["USE_NEW_AWS"] and use Orig ENV variables for New Creds ( #5771 ) [deploy]
...
* Remove temp ENV variable for switching buckets and use original ENV variables
* correctly choose AWS region
2020-01-27 15:46:57 -05:00
Molly Struve
c336dfc84a
Setup SitemapGenerator and CarrierWave to use new AWS creds when ENV var is set ( #5570 ) [deploy]
2020-01-24 14:25:57 -05:00
Molly Struve
25e985cfce
Group all PG::TRDeadlockDetected and PG::QueryCanceled errors together ( #5681 ) [deploy]
2020-01-23 17:54:46 -05:00
Molly Struve
33d6dca565
Apply Monkey Patch To Attempt To Fix Sidekiq Admin UI ( #5634 ) [deploy]
...
* set sidekiq session to be the same as Rails to prevent forbidden UI errors
* monkey patch rack until new version is released to make Sidekiq Admin work
2020-01-22 14:46:24 -05:00
rhymes
09cf6719eb
Use honeybadger.js from npm ( #5643 )
...
rails-assets.org is often down, and apparently has been down intermittently since yesterday.
In addition to this the only thing the gem does is literally to add `honeybadger.js` to the assets path:
```ruby
gem_path.join('app/assets').each_child.to_a
```
Hence we can ditch the gem and use the library directly.
2020-01-22 08:22:51 -05:00
Shelley Vohr
b146528aa8
feat: add per-user Open Dyslexic font setting ( #5037 ) [deploy]
...
* feat: add per-user Open Dyslexic font setting
* Adjust css slightly
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2020-01-20 18:23:57 -05:00
Ben Halpern
8a403eba46
Bump assets version ( #5587 )
2020-01-20 08:13:58 -05:00
Molly Struve
ffba283b67
Only setup StrongMigrations in dev or test ( #5562 ) [deploy]
2020-01-17 11:45:05 -05:00
Michael Kohl
9ef1ae512b
Add strong_migrations gem ( #5522 )
...
* Add strong_migrations gem
* Incorporate PR feedback
* Move gem to group :development, :test
2020-01-17 09:45:44 -05:00