Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Transferred-in reg still appears under the roster "unpaid" payment filter

オープン 初心者向け
#2,160 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
ruby, sql
領域
backend

調査の方向性

app/models/event_registration.rb で paid_in_full、not_paid_in_full、payment_status、および既存の not_transferred_in scopes を読むところから始めます。それらの動作をダッシュボードの課金対象の基準および EventRevenueFigures と比較し、続いて roster の Paid/Unpaid 件数と payment_status フィルターを確認します。transferred-in 登録が一貫して除外され、roster がダッシュボードの合計と一致すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Follow-up from #1944 / PR #2044.

A transferred-in registration's balance lives on its source registration, so it owes nothing to the new event. Reporting totals already exclude it (dashboard billable basis + EventRevenueFigures), but the roster payment-status filter does not: EventRegistration.not_paid_in_full (raw SQL summing allocations vs events.cost_cents) still matches a transferred-in reg (0 allocations, cost > 0), so it shows up under payment_status: "unpaid".

Suggested fix
  • Exclude transferred-in regs from not_paid_in_full (and treat them consistently in paid_in_full / the payment_status scope), e.g. AND transferred_from_registration_id IS NULL, mirroring not_transferred_in.
  • Confirm the roster "Paid/Unpaid" counts and the payment_status filter agree with the dashboard's billable basis.
Context
  • app/models/event_registration.rb — paid_in_full / not_paid_in_full / payment_status scopes; not_transferred_in scope already exists.
  • Deliberately scoped out of #1944 (a filter, not a reporting total).
主要言語
Ruby
スター
15
フォーク
28
平均マージ
1日 4時間
マージ済み PR(30日)
227

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rubyforgood/awbw のほかの issue

rubyforgood/awbw の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。