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

Decide how organization merge should handle billing (Pay gem) links

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
ruby
領域
backend, database

調査の方向性

#2374 の Organization deduper から始め、ModelDeduper を調査します。特に、DEFERRED_REFERENCE_TABLES と polymorphic な Pay テーブルの処理を確認してください。列挙されたレコードのいずれかが owner_type="Organization" を使用しているかを判断し、マージでそれらを再割り当てするのか、ブロックするのか、無視するのかを決定します。完了の条件は、プロダクト上の決定が ModelDeduper と deferred-table list に反映されていることです。

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

説明

🤖 From Claude:

Split out from the organization deduper (#2374).

The deduper reassigns every business association from a deleted org to the kept one, reassigns analytics/audit (ahoy_events, versions), and surfaces attached files that are deleted with the record. Billing links are deliberately left out for now because moving money-related records between orgs has real side effects that need a product decision.

Affected polymorphic tables (Pay gem): pay_customers, pay_merchants, pay_subscriptions, pay_charges, pay_payment_methods, pay_webhooks (owner/polymorphic → could be an Organization).

Current behavior: these tables are in ModelDeduper::DEFERRED_REFERENCE_TABLES, so they neither block the merge nor get moved — if a merged org had billing records, they'd stay pointing at the deleted org's id.

Decide:

  • Should billing records be reassigned to the kept org on merge, left as-is, or should the merge be blocked when they exist?
  • In practice, are Pay records ever owner_type = "Organization" in this app, or only Users/People? (If never orgs, we can drop the deferral entirely.)

Once decided, update ModelDeduper (reassign / block / ignore) and remove the tables from DEFERRED_REFERENCE_TABLES as appropriate.

主要言語
Ruby
スター
15
フォーク
28
平均マージ
1日 12分
マージ済み PR(30日)
262

環境構築

Codespaces で開く

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

はじめの一歩

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

rubyforgood/awbw のほかの issue

rubyforgood/awbw の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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