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

mroderick / codebar-planner
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: feature/chapters-sidebar-v3
DEFAULT BRANCH: master
Repo Added 11 Jul 2025 08:20PM UTC
Token vPb66DExHmn8kKCIdxCr3cvXvGCjXCICV regen
Build 102 Last
Files 176
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

LAST BUILD ON BRANCH fix/member-attending-cache
branch: fix/member-attending-cache
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/member-attending-cache
  • add-docs
  • add-editor-config
  • add-scout-apm
  • add-sitemap-generator
  • add-tests-for-2515
  • attempt-to-fix-issue-template
  • bundle-ignore-junk
  • docs/improve-workflow-documentation
  • feature/chapters-sidebar-v3
  • feature/chapters-sidebar-viewcomponent
  • feature/events-upcoming-past
  • feature/homepage-events-limit
  • feature/seeds-performance-data
  • fix-broken-chosen
  • fix-duplicate-waiting-list-entries
  • fix-error-656-undefined-method-event-for-nil
  • fix-member-details-validation-order
  • fix-missing-authentication-error-translation
  • fix/cookie-serializer-migration
  • fix/dashboard-eager-loading
  • fix/event-description-xss-vulnerability
  • fix/events-controller-fixes
  • fix/events-sponsors-eager-loading
  • fix/find-by-nil-errors
  • fix/flaky-listable-tests
  • fix/homepage-n-plus-one-eager-loading
  • fix/homepage-performance
  • fix/render-not-found-json-error
  • freeze-postgres-version
  • imagemagick-check
  • improve-intro-text
  • improve-language
  • improve-og-tags
  • improve-repository-configs
  • increase-delayed-job-max-runtime
  • issue-2367-workshop-feedback
  • issue-2445
  • link-to-chapters-from-pills
  • lock-gem-platforms
  • make-event-rendering-faster
  • no-og-tags-on-admin
  • optimise-images
  • params-expect
  • policy-tests
  • pr/fix-find-by-nil-errors
  • remove-2024-impact-report-banner
  • remove-bootsnap
  • remove-go-squared
  • remove-google-analytics
  • remove-meta-partial
  • remove-puma-cluster-mode-config
  • remove-skylight
  • remove-twitter
  • remove-unused-i18n-features
  • remove-unused-new-relic
  • replace-claude-md-with-agents-md
  • speedup-ci-tests
  • stop-pinning-image-processing
  • stop-using-update-attribute
  • update-year-for-impact-report
  • upgrade-ruby
  • use-playwright
  • use-rails-7-1-defaults
  • workshop-invitation-controller

21 Feb 2026 01:43PM UTC coverage: 95.617%. First build
22257859468

push

github

mroderick
feat: cache member attending event IDs to eliminate N+1 queries

Motivation:
The events and meetings index pages were making N+1 queries when checking
if a logged-in member was attending each event. Each call to
@user.attending?(event) triggered a database query.

Analysis:
- Before: 40 queries for 40 events
- After: 3 queries (one each for invitations, workshop_invitations, meeting_invitations)
- The cache returns a Set of all event IDs where the member has an accepted
  invitation, making subsequent lookups O(1) Ruby operations.

The cache is invalidated when an invitation's attending status changes via
after_save callbacks on Invitation, WorkshopInvitation, and MeetingInvitation models.
This ensures the cache stays fresh on the next request after RSVP.

21 of 21 new or added lines in 5 files covered. (100.0%)

3294 of 3445 relevant lines covered (95.62%)

44.85 hits per line

Relevant lines Covered
Build:
Build:
3445 RELEVANT LINES 3294 COVERED LINES
44.85 HITS PER LINE
Source Files on fix/member-attending-cache
  • Tree
  • List 175
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22257859468 fix/member-attending-cache feat: cache member attending event IDs to eliminate N+1 queries Motivation: The events and meetings index pages were making N+1 queries when checking if a logged-in member was attending each event. Each call to @user.attending?(event) triggered a... push 21 Feb 2026 01:48PM UTC mroderick github
95.62
See All Builds (100)

Badge your Repo: codebar-planner

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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