feat(admin): surface org membership and sponsor tier in admin UI
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with packages/api/src/db/schema/joins.ts:107-184 to understand the existing membership and sponsorship relations, then trace the admin organization detail page and GET /admin/organizations/:id handler. Implement the Support surface and membership endpoints without coupling memberships to sponsorships. Done means active and historical records are visible and editable, renewal closes the old membership before opening the new one, and the API returns both collections.
索引モデルが issue の本文から書いたものです。
説明
Summary
The schema already has org_memberships (recurring annual support tier with start/end/renewal dates) and event_sponsorships (per-event sponsorship with tier). Neither is exposed in the admin UI today — staff can't designate an org as a US-RSE member or sponsor without touching the DB.
Requirements
- Org detail page gains a "Support" tab (or section) showing the current active org membership row, if any, plus a button to start a new one
- Editable fields per
org_membershipsrow: tier (enum), startedAt, endedAt, renewalDueAt, notes - List view of historical memberships on the same tab so renewals don't lose context
- Same surface for
event_sponsorships— list of historical sponsorships across all events the org has supported - API:
GET /admin/organizations/:idis extended to includememberships[]andeventSponsorships[]; newPOST/PATCH/DELETE /admin/organizations/:id/membershipsendpoints - Member ↔ sponsor are independent (an org can be one, both, or neither) — the UI must not couple them
- Public surfaces (sponsors page, directory "Org member" facet) pick up changes automatically via the existing predicate (
started_at <= now() AND (ended_at IS NULL OR ended_at >= now()))
Context
See packages/api/src/db/schema/joins.ts:107-184 — orgMemberships and eventSponsorships already exist with partial unique indexes that prevent two open memberships per org and duplicate event/org sponsorship rows.
Implementation Notes
The "one active membership per org" partial unique index means closing the current membership (setting endedAt) must precede opening a new one. The UI should make this a single action ("Renew membership") that updates both rows in one PATCH, rather than exposing the two-step workflow to admins.
- 主要言語
- HTML
- スター
- 33
- フォーク
- 107
- 平均マージ
- 14時間 6分
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
USRSE/usrse.github.io のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
USRSE/usrse.github.io#2117 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 63/100
USRSE/usrse.github.io#2115 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
broken-links
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
USRSE/usrse.github.io#2099 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
USRSE/usrse.github.io#2085 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
USRSE/usrse.github.io#2001 ·
メンテナーはふだん 1 日以内に返信
USRSE/usrse.github.io の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rubenarslan/formr#63 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
qoretechnologies/qore#8159 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信