Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#2,378 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
ruby
Lĩnh vực
backend, database

Hướng nghiên cứu

Bắt đầu với organization deduper từ #2374 và kiểm tra ModelDeduper, đặc biệt là DEFERRED_REFERENCE_TABLES và cách nó xử lý các bảng Pay đa hình. Xác định xem có bản ghi nào trong danh sách sử dụng owner_type="Organization" hay không, đồng thời xác định liệu các thao tác merge nên gán lại, chặn hay bỏ qua chúng. Được xem là hoàn tất khi quyết định về sản phẩm được phản ánh trong ModelDeduper và danh sách bảng bị trì hoãn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

🤖 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.

Ngôn ngữ chính
Ruby
Star
15
Fork
28
Merge trung bình
1 ngày 12 phút
Pull request đã merge (30 ngày)
262

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rubyforgood/awbw

Tất cả issue của rubyforgood/awbw

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.