Commit Graph

2435 Commits (fixes/detect-missing-indexes2)

Author SHA1 Message Date
David Roetzel 2bbb78e64b
Fix spec syntax 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
Matt Jankowski cdcd834f3c
Add coverage for `AnnualReport::*` source child classes (#31849) 11 months ago
Matt Jankowski cee71b9892
Remove `fa_` prefix from status visibility icon method (#31846) 11 months ago
Eugen Rochko e0c27a5047
Add ability to manage which websites can credit you in link previews (#31819) 11 months ago
Matt Jankowski d0ab94c4d2
Add `FeaturedTag` coverage, use `pick` in model (#31828) 11 months ago
Mike Dalessio a0ea2fa3b0
Change fetch link card service to parse as HTML5 (#31814) 11 months ago
Matt Jankowski c6a0768fe5
Use shared system spec helper methods (#31784) 11 months ago
Mike Dalessio afa2e257e4
Change verify link service to use CSS selectors instead of a complex XPath query (#31815) 11 months ago
Matt Jankowski 4f81ad2494
Add coverage for `media#player`, move body class to view (#31790) 11 months ago
Emelia Smith c88ba523ee
Fix sort order of moderation notes on Reports and Accounts (#31528) 11 months ago
Matt Jankowski a9d0b48b65
Set "admin" body class from `admin` nested layout (#31269) 11 months ago
Matt Jankowski 6b6a80b407
Remove `body_as_json` in favor of built-in `response.parsed_body` for JSON response specs (#31749) 11 months ago
Matt Jankowski 7efe0bde9d
Add `have_http_link_header` matcher and set header values as strings (#31010) 11 months ago
Matt Jankowski 09017dd8f0
Add worker spec for annual report worker (#31778) 11 months ago
Matt Jankowski 5acec087ca
Simplify basic presence validations (#29664) 11 months ago
David Roetzel f85694acfd
Add credentials to redis sentinel configuration (#31768) 11 months ago
Matt Jankowski e820cc30b8
Convert invites controller spec to system/request specs (#31755) 11 months ago
Matt Jankowski ba9fd1c32e
Add coverage for `Account#prepare_contents` callback (#31748) 11 months ago
David Roetzel 7d91723f05
Support `REDIS_SENTINEL_PORT` variables (#31767) 11 months ago
Matt Jankowski 4d5c91e99a
Remove `before` block in spec with TODOs which have been TO-DONE already (#31754) 11 months ago
Matt Jankowski e1b5f3fc6f
Use `response.parsed_body` for html response checks (#31750) 11 months ago
David Roetzel ef2bc8ea26
Add redis sentinel support to ruby part of code (#31744) 11 months ago
Claire 1fcffa573c
Fix 500 error in `GET /api/v2_alpha/notifications` when there are no notifications to return (#31746) 11 months ago
Matt Jankowski 14af5b47ac
Add coverage for model normalizations (#31734) 11 months ago
Matt Jankowski 9ed1aab9b7
Remove accidental matcher debug code (#31732) 11 months ago
Matt Jankowski f1003b2560
Enable "zero monkey patching" mode in RSpec (#31614) 11 months ago
Matt Jankowski c9ea91f868
Add coverage for `api/v1/annual_reports` area (#31730) 11 months ago
Matt Jankowski 19849eb91d
Skip paperclip spoof detector unless opted into attachment processing specs (#31454) 11 months ago
Matt Jankowski 69dbc23038
Only enable chewy in search-tagged specs (#30583) 11 months ago
Matt Jankowski 7c26e5e4a1
Add `Reviewable` model concern (#31152) 11 months ago
Matt Jankowski 2f0d0fc127
Add coverage for `CLI::Accounts#fix_duplications` task (#30639) 11 months ago
Matt Jankowski e1fa456c7c
Add `have_cacheable_headers` matcher for responses (#31727) 11 months ago
Matt Jankowski 490bdb7944
Add coverage for `StatusesHelper#media_summary` method (#31726) 11 months ago
Matt Jankowski 8922786ef4
Fix `RSpec/LetSetup` cop in api/v1/timelines/tag spec (#30796) 11 months ago
Matt Jankowski 67faaf5557
Simplify account model username presence validation spec (#31013) 11 months ago
Matt Jankowski fcb83be8b2
Improve coverage specificity for Webhook enable/disable/secret specs (#31194) 11 months ago
Matt Jankowski 928390c2ba
Convert `admin/settings` controller specs to system specs (#31548) 11 months ago
Matt Jankowski ef4920c6c9
Pull out https/hostname setup for request specs to shared config (#31622) 11 months ago
Matt Jankowski 79b1841805
Disable `without_verify_partial_doubles` in statuses/show view spec (#29132) 11 months ago
Matt Jankowski 5b595b8a5a
Remove usage of `assigns` in controller specs (#30195) 11 months ago
Claire ea0d691e19
Add `GET /api/v2_alpha/notifications/:group_key/accounts` (#31725) 11 months ago
Matt Jankowski 219458d7d4
Convert `tags` controller spec to system and request specs (#31708) 11 months ago
Matt Jankowski 31c00108a4
Add first pass coverage for `AnnualReport` class (#31704) 11 months ago
Matt Jankowski b8957241af
Add coverage for `JsonLdHelper#uri_from_bearcap` method (#31700) 11 months ago
Matt Jankowski 25bbb01666
Remove unused helper method in spec (#31699) 11 months ago
Matt Jankowski 24a0b20408
Use `body_as_json` directly instead of via local var assignment (#31696) 11 months ago
Christian Schmidt a5bbe83dfd
media_ids is an array of strings (#31709) 11 months ago
Christian Schmidt 491033c86c
Reject status creation with invalid `media_ids` parameter (#31681) 11 months ago
Matt Jankowski 40f993b3a0
Use built-in `response.parsed_body` for JSON response specs (#31674) 11 months ago