Skip to content

Commit

Permalink
Revert "Add system check for missing database indexes" (mastodon#30909)
Browse files Browse the repository at this point in the history
  • Loading branch information
oneiros authored Jul 3, 2024
1 parent 20c749b commit 9be77fc
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 248 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,3 @@ gem 'rubyzip', '~> 2.3'
gem 'hcaptcha', '~> 7.1'

gem 'mail', '~> 2.8'
gem 'prism'
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,6 @@ GEM
actionmailer (>= 3)
net-smtp
premailer (~> 1.7, >= 1.7.9)
prism (0.30.0)
propshaft (0.9.0)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
Expand Down Expand Up @@ -1004,7 +1003,6 @@ DEPENDENCIES
pg (~> 1.5)
pghero
premailer-rails
prism
propshaft
public_suffix (~> 6.0)
puma (~> 6.3)
Expand Down
92 changes: 0 additions & 92 deletions app/lib/admin/db/schema_parser.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/lib/admin/system_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class Admin::SystemCheck
Admin::SystemCheck::SidekiqProcessCheck,
Admin::SystemCheck::RulesCheck,
Admin::SystemCheck::ElasticsearchCheck,
Admin::SystemCheck::MissingIndexesCheck,
].freeze

def self.perform(current_user)
Expand Down
36 changes: 0 additions & 36 deletions app/lib/admin/system_check/missing_indexes_check.rb

This file was deleted.

2 changes: 0 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,6 @@ en:
elasticsearch_version_check:
message_html: 'Incompatible Elasticsearch version: %{value}'
version_comparison: Elasticsearch %{running_version} is running while %{required_version} is required
missing_indexes_check:
message_html: 'The following indexes are missing from the database and should be recreated: <code>%{value}</code>.<br> Missing indexes may lead to severely reduced performance and data inconsistencies.'
rules_check:
action: Manage server rules
message_html: You haven't defined any server rules.
Expand Down
49 changes: 0 additions & 49 deletions spec/lib/admin/db/schema_parser_spec.rb

This file was deleted.

65 changes: 0 additions & 65 deletions spec/lib/admin/system_check/missing_indexes_check_spec.rb

This file was deleted.

0 comments on commit 9be77fc

Please sign in to comment.