Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Rework calculation of number of people to allow number of kits per person to be taken into account

Aperta
#4,542 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rails, ruby
Ambito
analytics, backend

Direzione di ricerca

Parti dal calcolo di Annual Survey per le persone servite e segui il campo distribution_quantity dell’elemento del kit. Aggiorna o aggiungi test che coprano quantità non impostate, pari a zero e diverse da zero, e verifica che il rapporto annuale utilizzi il conteggio risultante delle persone servite.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Difficulty—Advanced NOT READY

Summary

We had been assuming 1 kit per person in our calcs regarding number of people served in the annual report. This is not alwaus right -- so we'll need to take into account the kit item quantity per individual

Why change?

Accuracy of annual report numbers which impacts grant writing, which impacts the funds and materials the banks have to distribute

Details

We are in the progress of taking kits into account for various numbers in the annual survey (login as [email protected], Reports | Annual Survey). We'd been assuming 1 kit per person. We have found out that for weird local-to-state reasons, this is not always the case.

In the calculation of number of people served (currently for diapers, but we are working on period products), we currently assume 1 kit per person. Instead, we need to use the quantity per individual field (item.distribution_quantity) on the item that corresponds to the kit -- if it is not set (or is 0), assume 1 kit per person, otherwise use the given value per person.

(That is, the number of people served by the kit would be the number of kits divided by that value)

Criteria for completion

  • calculations changed to take into account the quantity per individual on the kit
  • tests modified and/or added to support this change
Lingua principale
Ruby
Stelle
594
Fork
596
Merge medio
4g 10h
PR unite (30g)
13

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rubyforgood/human-essentials

Tutte le issue di rubyforgood/human-essentials

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.