Commit Graph

59 Commits (fixes/detect-missing-indexes2)

Author SHA1 Message Date
David Roetzel 882f46148f
Remove superflous method call.
No `nil` values to be expected here.
11 months ago
David Roetzel b6138a9615
Remove ruby 3.2 feature.
We still support 3.1.
11 months ago
David Roetzel b5bec6f142
Add system check for missing indexes.
As part of #18965 we want to enable admins to see if one or
more indexes are missing. This adds a new "system check" to
display a warning in case indexes are missing.

The list of indexes we expect to be present are extracted from
`db/schema.rb` using ruby's new `prism` parser.
11 months ago
Michael Stanclift 91fbd5b422
Adjust magick version detection in admin panel (#30845) 1 year ago
Michael Stanclift b120792f27
Adjust ffmpeg version detection in admin panel (#31130)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
David Roetzel 9be77fc0db
Revert "Add system check for missing database indexes" (#30909) 1 year ago
David Roetzel ebd8e1bbb6
Add system check for missing database indexes (#30888) 1 year ago
Matt Jankowski a8b3d2e4e4
Consolidate time periods methods into base measure (#30757) 1 year ago
Claire 58ace2e45e
Fix SQL error in admin measures API (#30753) 1 year ago
Michael Stanclift a777f7e3cc
Restore short Ruby version on admin dashboard (#30711) 1 year ago
Michael Stanclift 4a5442edaa
Add ffmpeg and ImageMagick versions to admin dashboard (#30710) 1 year ago
Matt Jankowski 88cfc4056d
Extract method to generate series of days in measure sql classes (#29928) 1 year ago
Eugen Rochko 5f15a892fa
Add support for libvips in addition to ImageMagick (#30090)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
Matt Jankowski c9ee1437c0
Use ruby language constants to build version string in software version dimension (#30309) 1 year ago
Claire 96fb6e491f
Revert "Migrate paperclip `_file_size` columns to bigint (#29263)" (#30203) 1 year ago
Matt Jankowski b152f936c1
Migrate paperclip `_file_size` columns to bigint (#29263)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
Matt Jankowski 966d7f5bf9
Add missing snowflake range correction (#29841) 1 year ago
Matt Jankowski 7e6eb64f1e
Use full snowflake range in `admin/metrics` classes (#29416) 1 year ago
Matt Jankowski a7284690fc
Add coverage for admin/metrics base classes, simplify subclass generation (#29527) 1 year ago
Matt Jankowski e1fcb02867
Align `TagServersMeasure` to use `WITH` query style similar to others (#29435) 1 year ago
Matt Jankowski ea8e7f3e9d
Align `TagServersMeasure` query style with other classes (#29414) 1 year ago
Matt Jankowski 76d256138e
Wrap media attachment size calculation in `COALESCE` (#29415) 1 year ago
Matt Jankowski a2f02a0775
Disable `Rails/SkipsModelValidations` cop (#28712) 2 years ago
Michael Stanclift 3171afc36a
Add Elasticsearch index size to Admin dashboard (#27301)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Claire 3c13d70600
Add mention of YJIT in admin dashboard if enabled (#27283) 2 years ago
Matt Jankowski 2f8f92df48
Fix Elastic check deprecation warning about gem version (#27262) 2 years ago
Renaud Chaput 4aaaf0dde3
Fix the search documentation URL in system checks (#27036) 2 years ago
Claire b83e487502
Fix moderator rights inconsistencies (#26729) 2 years ago
Claire 16681e0f20
Add admin notifications for new Mastodon versions (#26582) 2 years ago
Claire 072112867b
Fix dashboard check for Elasticsearch suggested command including incorrect names (#26658) 2 years ago
Claire f2ec2876a4
Add Elasticsearch/OpenSearch version to “Software” in admin dashboard (#26652) 2 years ago
Claire e3825a13c1
Add PublicStatusesCheck to Elasticsearch index check on admin dashboard (#26650) 2 years ago
Claire bd023a2637
Fix admin dashboard check when using Elasticsearch with `ES_PREFIX` (#26605) 2 years ago
Claire ac0eb0533e
Add Elasticsearch cluster health check and indexes mismatch check to dashboard (#26448) 2 years ago
Matt Jankowski af135bddd0
Update `Admin::Metrics::Measure` classes for Rails 7 (#25236) 2 years ago
Matt Jankowski 3b21c13dcc
Rails 7 compatibility fix for `Admin::Metrics::Dimension` classes (#25277) 2 years ago
Claire e9385e93e9
Add a confirmation screen when suspending a domain (#25144) 2 years ago
Matt Jankowski 9f5deb310b
Fix Performance/MapCompact cop (#24797)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Matt Jankowski e63524f457
Update retention model sql query (#24249) 2 years ago
Claire 8fdf49b11d
Add warning for object storage misconfiguration (#24137) 2 years ago
Claire 9875be09fe
Fix dashboard crash on ElasticSearch server error (#23751) 2 years ago
Nick Schonning 2177daeae9
Autofix Rubocop Style/RedundantBegin (#23703) 2 years ago
Claire 41517a4845
Fix spurious admin dashboard warning when using ElasticSearch 7.x (#23064)
Some 7.x ElasticSearch versions support some 6.x nodes, thus the version check
is inadequate. I am not sure there is a good way to check if a server
implements all the 7.x APIs, so check server version and minimum wire version
instead.
3 years ago
Vyr Cossont 06f979098c
Check OpenSearch compatibility version instead of regular version (#22422)
Fixes #18535.
3 years ago
s0 52540771b0
Fix crash in elasticsearch_check.rb (#21006)
Nil unwrap causes the admin dashboard to crash/500 when the Chewy client info version number value is nil.
This occurs when running another ES-compatible backend such as MeiliSearch.
Obviously it would be good for chewy to recognise upstream but at least avoiding the crash would be fine.
3 years ago
Eugen Rochko f8e8e622e5
Change incoming activity processing to happen in `ingress` queue (#20264) 3 years ago
Eugen Rochko 44b2ee3485
Add customizable user roles (#18641)
* Add customizable user roles

* Various fixes and improvements

* Add migration for old settings and fix tootctl role management
3 years ago
Claire f65eaa5aae
Add admin dashboard checks for Elasticsearch version (#17863) 3 years ago
Eugen Rochko bd53dd5210
Change design of federation pages in admin UI (#17704)
* Change design of federation pages in admin UI

* Fix query performance in instance media attachments measure

* Fix reblogs being included in instance languages dimension
3 years ago
Eugen Rochko b377022cf9
Add caching layer to metrics (#17617) 3 years ago