• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 28806174439

06 Jul 2026 04:16PM UTC coverage: 98.629% (-0.2%) from 98.818%
28806174439

Pull #4702

github

JoeCohen
Halt daily "reviewed observation  (insert)"

- Skips votes with nil observation in refresh_caches
- Creates script to clean up production db

`Vote.add_missing_views_corresponding_to_votes` was reprocessing votes whose `observation_id` is NULL every night, because `NULL = NULL` never matches in the LEFT JOIN against `observation_views`. This produced the daily blank "User X has reviewed observation  (insert)." lines in the `refresh_caches` email and had silently accumulated 2,310 junk `observation_views` rows with `observation_id: NULL` in the database.
Added `cache:remove_orphaned_observation_views` to clean up the existing junk rows; this task must be run manually against production once this deploys.
Pull Request #4702: Halt daily "reviewed observation (insert)"

1 of 1 new or added line in 1 file covered. (100.0%)

28 existing lines in 23 files now uncovered.

51658 of 52376 relevant lines covered (98.63%)

748.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/app/classes/pattern_search/error/syntax_error.rb
1
# frozen_string_literal: true
2

3
module PatternSearch
3✔
4
  class SyntaxError < Error
3✔
5
    def to_s
3✔
UNCOV
6
      :pattern_search_syntax_error.t(string: args[:string].inspect)
×
7
    end
8
  end
9
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc