Rework calculation of number of people to allow number of kits per person to be taken into account
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Parte del cálculo de Annual Survey para las personas atendidas y sigue el campo distribution_quantity del elemento del kit. Actualiza o añade pruebas que cubran cantidades no establecidas, cero y distintas de cero, y verifica que el informe anual utilice el recuento resultante de personas atendidas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Ruby
- Estrellas
- 594
- Forks
- 596
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 12
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rubyforgood/human-essentials
-
Export button on annual report should revert to "Export Report" from "Please Wait..." once report generated.Posiblemente ocupada @costajohnt la tomó hace 18 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
rubyforgood/human-essentials#5691 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
rubyforgood/human-essentials#5603 · 8 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Proposal: forecast-based reorder points and shortage allocation ("Replenishment Planner")Posiblemente ocupada @arnavt687 la tomó hace 21 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
rubyforgood/human-essentials#5728 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Ruby for Good 2026 DC stale
rubyforgood/human-essentials#5694 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Add optional phone number to users (esp Partner Users)Posiblemente ocupada @costajohnt la tomó hace 23 días. AbiertoDifficulty—Intermediate Ruby for Good 2026 DC
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
rubyforgood/human-essentials#5687 ·
Los mantenedores suelen responder en 1 día
Todos los issues de rubyforgood/human-essentials
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
we-promise/sure#4199 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
scanaislop/aislop#482 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
forem/forem#23963 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 8 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día