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

mroderick / codebar-planner
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: split-up-how-to-support
DEFAULT BRANCH: master
Repo Added 11 Jul 2025 08:20PM UTC
Token vPb66DExHmn8kKCIdxCr3cvXvGCjXCICV regen
Build 202 Last
Files 189
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/workshop-capacity-checks
branch: fix/workshop-capacity-checks
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/workshop-capacity-checks
  • add-docs
  • add-editor-config
  • add-scout-apm
  • add-sitemap-generator
  • add-tests-for-2515
  • attempt-to-fix-issue-template
  • bundle-ignore-junk
  • chore/upgrade-premailer
  • chore/use-rubygems-sitemap-generator
  • chromium-headless-shell
  • clean-test-optimizations
  • docs/improve-workflow-documentation
  • feature/add-eligible-methods-to-chapter
  • feature/admin-group-members-table
  • feature/chapters-sidebar-v3
  • feature/chapters-sidebar-viewcomponent
  • feature/delayed-email-async
  • feature/eligible-tooltip
  • feature/events-upcoming-past
  • feature/homepage-events-limit
  • feature/meeting-organisers-tomselect
  • feature/nginx-plausible-proxy-clean
  • feature/plausible-analytics
  • feature/seeds-performance-data
  • feature/sendgrid-batch-email-design
  • feature/tom-select-meeting-invitations
  • feature/tom-select-member-search
  • feature/tom-select-member-search-clean
  • feature/tom-select-member-search-final
  • 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-tom-select-timing-2
  • fix-workshop-capacity-checks
  • fix/blank-email-validation
  • fix/cookie-serializer-migration
  • fix/dashboard-eager-loading
  • fix/deduplicate-chapter-members
  • fix/duplicate-workshop-invitations
  • fix/event-description-xss-vulnerability
  • fix/events-controller-fixes
  • fix/events-sponsors-eager-loading
  • fix/find-by-nil-errors
  • fix/find-by-nil-errors-v2
  • fix/flaky-homepage-test
  • fix/flaky-listable-tests
  • fix/flaky-tests
  • fix/gravatar-nil-email
  • fix/homepage-n-plus-one-eager-loading
  • fix/homepage-performance
  • fix/invalid-emails
  • fix/invitation-log-entry-unique-constraint
  • fix/invitation-log-retry-handling
  • fix/invitation-log-retry-v2
  • fix/member-attending-cache
  • fix/monthly-attendance-reminder-delivery
  • fix/nil-group-by
  • fix/pagy-deprecation
  • fix/playwright-version-mismatch
  • fix/render-not-found-json-error
  • fix/subscription-unique-index
  • fix/tc-unauthenticated-handling
  • fix/time-dependent-flaky-tests
  • fix/unknown-format
  • fix/unknown-format-rescue
  • fix/workshop-invitation-resilience
  • 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
  • master
  • no-og-tags-on-admin
  • optimise-images
  • params-expect
  • policy-tests
  • pr/fix-find-by-nil-errors
  • refactor/mailer-tests
  • 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
  • speedup-tests
  • split-up-how-to-support
  • 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

06 May 2026 10:15AM UTC coverage: 95.455%. First build
25429409084

push

github

mroderick
fix: workshop capacity checks now properly compare attending count with available spaces

PR #2605 changed the capacity check methods from student_spaces?/
coach_spaces? to event_student_spaces?/event_coach_spaces?, but the
new methods in EventPresenter called model.student_spaces? which just
checks if the attribute is present (truthy), not if spaces are actually
available.

This fix adds proper event_student_spaces? and event_coach_spaces?
methods to WorkshopPresenter that correctly compare the number of
attending students/coaches with the available spaces from the workshop
model (using model.student_spaces and model.coach_spaces).

This ensures that:
- When 2 students attend a workshop with 2 spaces, event_student_spaces?
  returns false (correctly indicating the workshop is full)
- When 1 student attends a workshop with 2 spaces, event_student_spaces?
  returns true (correctly indicating space is available)

Fixes the bug where workshops showed as full even when spaces were
available, and vice versa.

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

3528 of 3696 relevant lines covered (95.45%)

47.28 hits per line

Relevant lines Covered
Build:
Build:
3696 RELEVANT LINES 3528 COVERED LINES
47.28 HITS PER LINE
Source Files on fix/workshop-capacity-checks
  • Tree
  • List 184
  • 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
25429409084 fix/workshop-capacity-checks fix: workshop capacity checks now properly compare attending count with available spaces PR #2605 changed the capacity check methods from student_spaces?/ coach_spaces? to event_student_spaces?/event_coach_spaces?, but the new methods in EventPre... push 06 May 2026 10:20AM UTC mroderick github
95.45
See All Builds (200)

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