feat(admin): track organization donations over time
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Domínio
- api, authorization, database, full-stack
Direção de pesquisa
Start by locating the organization admin API, the organizations detail page, and the migration and audit-middleware entry points referenced in the requirements. Review how org_memberships and event_sponsorships handle permissions and history, then verify that donation CRUD, per-currency totals, yearly running totals, staff gating, and mutation audit events are covered.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Track financial contributions from organizations across time, separate from the recurring-membership tier system. Donations are one-time or campaign-attributed contributions that don't fit org_memberships (annual recurring) or event_sponsorships (event-tied).
Requirements
- New
org_donationstable:id,organization_id(FK → organizations.id ON DELETE restrict),amount_cents(bigint),currency(text, ISO 4217, default 'USD'),donation_date(date NOT NULL),campaign(text, nullable — free-form for now),fiscal_year(int, nullable),notes(text),created_at/updated_at/recorded_by_user_id(audit columns) - Migration adds the table + index on
(organization_id, donation_date DESC)for fast per-org history queries - API:
GET/POST/PATCH/DELETE /admin/organizations/:id/donations; list returns rows sorted bydonation_datedesc with per-currency totals as aggregates - Org detail page: new "Donations" tab listing the org's contribution history with running totals by year
- Permissions: donation writes gated on staff tier (
canEditOrganizations); consider acanRecordDonationspolicy if we want to lock this down further later - Audit middleware captures all donation mutations (
organizations.donation.create,.update,.delete)
Context
Why not extend org_memberships? Memberships are recurring annual tiers with one active row per org; donations are arbitrarily many transactions across time, often campaign-attributed. Why not extend event_sponsorships? Donations aren't event-bound. The clean split is three independent tables sharing only the organization_id FK.
Implementation Notes
amount_cents as bigint keeps us currency-precision-safe without a numeric type. Storing currency per-row instead of org-level lets a single org's history span currency changes (e.g., GBP → USD after a UK org's US subsidiary takes over donations).
Fiscal year is nullable because US-RSE doesn't have one defined yet — leaving the column means we can backfill it later via a single UPDATE keyed off donation_date once the policy is set.
- Linguagem predominante
- HTML
- Estrelas
- 33
- Forks
- 107
- Merge médio
- 14h 6min
- PRs com merge (30d)
- 19
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de USRSE/usrse.github.io
-
update community awardsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
USRSE/usrse.github.io#2117 ·
Mantenedores costumam responder em até 1 dia
-
Update conference link from USRSE'26 to USRSE'27.Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 63/100
USRSE/usrse.github.io#2115 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Broken URLs on the websiteAbertabroken-links
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
USRSE/usrse.github.io#2099 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
USRSE/usrse.github.io#2085 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
USRSE/usrse.github.io#2001 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de USRSE/usrse.github.io
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
genfeedai/genfeed.ai#11828 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue help wanted
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 83/100
NOAA-OWP/ngen#1110 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ExpressionEngine/ExpressionEngine#5493 ·
Mantenedores costumam responder em até 5 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
-
llama.cpp: streamed tool call arguments get cut off when a chunk has several tool call deltasAbertaintegration: llama_cpp
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
home-assistant/core#195670 · 2 comentários ·
Mantenedores costumam responder em até 1 dia