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

MushroomObserver / mushroom-observer / 20627818064
95%
main: 96%

Build:
Build:
LAST BUILD BRANCH: nimmo-table-component
DEFAULT BRANCH: main
Ran 31 Dec 2025 09:58PM UTC
Jobs 1
Files 830
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Dec 2025 09:51PM UTC coverage: 95.272% (-0.01%) from 95.284%
20627818064

Pull #3672

github

JoeCohen
Fix TypeError when params[:q] is a String in set_project_ivar

Previously, when params[:q] was a saved query ID (String) instead of a
Hash of query parameters, calling params.dig(:q, :projects) raised:
"TypeError: String does not have #dig method"

This occurred when navigating species lists with a saved query parameter,
such as /species_lists/1417?q=1mvpX

Changes:
- Extract query project logic into private extract_query_projects method
- Handle both String (saved query ID) and Hash (inline params) cases
- When params[:q] is a String, load the Query record and extract projects
  from its stored parameters
- Add regression test to prevent future occurrences
- Refactor to resolve RuboCop complexity metrics violations

The fix properly retrieves project associations from saved queries,
allowing species list navigation within project contexts to work
correctly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Pull Request #3672: Fix TypeError when params[:q] is a String in set_project_ivar

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

11 existing lines in 4 files now uncovered.

31517 of 33081 relevant lines covered (95.27%)

705.56 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.35
-2.93% app/components/application_form/checkbox_field.rb
1
99.03
-0.01% app/components/base_image.rb
2
98.18
-1.82% app/components/matrix_box.rb
7
93.91
-1.5% app/components/lightbox_caption.rb
Jobs
ID Job ID Ran Files Coverage
1 20627818064.1 31 Dec 2025 09:58PM UTC 830
95.27
GitHub Action Run
Source Files on build 20627818064
  • Tree
  • List 830
  • Changed 11
  • Source Changed 10
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20627818064
  • Pull Request #3672
  • PR Base - main (#20626985371)
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