Commit Graph

26 Commits

Author SHA1 Message Date
rubic0n 0c7019f1e8 Add Benchmark IPS gem, to A/B test code 2021-02-17 23:24:34 -06:00
Free Speech Forever 92c9092abd Avoid redundant OAuth queries when not signed in
If you aren't signed in, you don't have an auth token.
When you don't have an auth token, React was sending the headers

"Authorization: Bearer null"

This caused 5 Doorkeeper token lookups using
WHERE "oauth_access_tokens"."token" = 'null'
on the Explore page (the root of the app when not signed in).
2021-02-15 23:26:00 +00:00
Free Speech Forever dd8c656dd5 Merge branch 'puma_5_2' into 'develop'
Upgrade to Puma 5.2.0 (from 5.1.1)

See merge request gab/social/gab-social!54
2021-02-15 01:12:32 +00:00
rubic0n 6221581cf0 Create script to generate dummy data, for perf investigation 2021-02-13 23:20:43 -06:00
rubic0n 9331f06784 Add rack-mini-profiler, to diagnose perf issues 2021-02-13 23:20:43 -06:00
Free Speech Forever 473c48b2aa Replace Makara with an initial Rails 6 role based splitting method. 2021-02-09 19:38:10 +00:00
admin 80297c4d21 added elastic-apm to gemfile 2021-02-03 10:12:57 -05:00
rubic0n 02bbe4304b Upgrade to Puma 5.2.0 (from 5.1.1)
Most notable change:
10x latency improvement for MRI on ssl connections by reducing overhead

https://github.com/puma/puma/releases/tag/v5.2.0
2021-02-01 00:00:43 -06:00
Fosco Marotto 8b8e8ec8e5 [scout_apm] Add scout apm to Gemfile, add config file 2021-01-30 21:19:12 -05:00
rubic0n 28beb28a78 Upgrade to Rails 6
- Added listen gem because rails app:update failed without it
- Removes nsa gem because it requires activesupport < 6
  Oddly, there's a newer version per GitHub that's not on RubyGems
  that raises the requirement to < 7. But, we need a new release
  before we can use that.
- Upgrade rails-i18n to v6, for Rails 6 compatibility
- Remove redis-rails since it requires Rails < 6, but we can just use
  the regular Rails :redis_cache_store that was introduced in 5.2.
- Run `rails app:update`
  - Had to weed through the `config/environments` changes to pick up
    newly added settings, while not losing settings that were
    intentionally configured
  - This generated config/initializers/new_framework_defaults_6_0.rb.
    The goal is to uncomment all of the settings in that file. Once
    they're all uncommented, delete the file and edit
    config/application.rb's load_defaults to be 6.0.
  - force_ssl controller method is deprecated in favor of a Rails
    config setting.
  - bin/setup was generated by Rails
  - Verbose query logging in development is really helpful. It shows
    you what line of code caused a query to execute.
  - Calling establish_connection after worker boot isn't necessary
    with ActiveRecord anymore. ActiveRecord handles it gracefully.
  - Rails generated a migration to add a foreign key for ActiveStorage.
    Gab currently doesn't use ActiveStorage, and instead uses Paperclip
    (since ActiveStorage didn't exist when Mastadon started). So, this
    change isn't relevant to Gab.
- Added ` || ''` in the profiles controller, because I was unable
  to save a change to a newly created profile. (This probably
  explains the 500 error I received on prod Gab recently.)
2021-01-23 09:01:31 -06:00
Fosco Marotto c9da516af6 Update hiredis driver and add a default REDIS_POOL_SIZE 2021-01-16 13:22:15 -05:00
mgabdev 6c13144fbc Progress 2020-12-09 15:02:43 -05:00
admin 0ee2f2e8b9 update pghero to 2.7.0 2020-12-04 15:40:42 +00:00
admin 72e79af5fc Update Gemfile.lock, Gemfile files 2020-12-02 19:56:14 +00:00
mgabdev 854e510acc Updated Gemfile.lock with bundle update
• Updated:
- Gemfile.lock with bundle update
2020-11-25 16:02:08 -06:00
admin 2a9bec5ec2 Update to sidekiq 6.0 2020-11-15 20:46:54 +00:00
admin 66460a2e47 Revert "Update Gemfile.lock"
This reverts commit b7021b0819
2020-11-15 20:36:13 +00:00
admin b7021b0819 Update Gemfile.lock 2020-11-15 20:29:11 +00:00
mgabdev a0efe8acca Removed elastic-apm from Gemfile
• Removed:
- elastic-apm from Gemfile
2020-10-16 16:26:21 -05:00
mgabdev f7fc626c3a Added elastic-apm gem and its config file
• Added:
- elastic-apm gem and its config file elastic_apm.yml
2020-10-13 10:09:18 -05:00
mgabdev 861ae55aec Rich Text Editor (WIP) x2 2020-06-16 19:44:30 -04:00
mgabdev 701bfa41df Updated gems pg -> 1.23, pghero -> 2.4.2
• Updated:
- gems pg, pghero
2020-05-22 18:15:34 -04:00
mgabdev 216ff755c9 Updated puma to latest 2020-05-22 16:54:27 -04:00
mgabdev a2917b203a Removed unused gems for rich text (todo later)
• Removed:
- unused gems for rich text (todo later)
2020-05-19 00:52:32 -04:00
mgabdev fed036be08 Progress 2020-04-22 01:00:11 -04:00
robcolbert bd0b5afc92 Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00