Give the military-connection variable a program-neutral name and fix its marital-unit note

Abierto
#11,210 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with the definition of is_snap_alien_military_connected and its age parameters under gov.usda.snap.eligibility.waiting_period.exceptions.military, then find its readers in the Medicaid, Medicare Savings Program and Nevada LIHEAP eligibility variables. Rename it to a program-neutral name, move the age parameters to a shared path, and fix the marital-unit note to match infer_missing_marital_units. Done when the existing SNAP, Medicaid, Medicare Savings Program, LIHEAP and Oklahoma LIHEAP tests pass under the new name with unchanged outputs.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

After PolicyEngine/policyengine-us#10950, is_snap_alien_military_connected decides the military exemption of 8 U.S.C. 1612 and 1613, or Nevada's version of it, for four programs:

  • SNAP's waiting period;
  • Medicaid and the Medicare Savings Programs, through is_federal_medicaid_immigration_status_eligible;
  • Nevada LIHEAP, through nv_liheap_immigration_eligible. Nevada's Division of Social Services exempts veterans, active duty members, and their spouses and unmarried dependent children from the program's five-year bar in Section 302 C VII of its manual.

Its name and its parameters, under gov.usda.snap.eligibility.waiting_period.exceptions.military, still say SNAP. A reform aimed at SNAP's dependent-child ages therefore changes all four programs. #10950 notes the sharing in the documentation, but the name hides it.

Its documentation also says a household that omits marital units "gets a single marital unit holding every member". Since #10000, infer_missing_marital_units gives each person their own unit unless it pairs a likely couple, so one member's service no longer marks every member.

Possible fix

  • Rename the variable for the exemption itself, for example is_alien_military_connected, and update its readers.
  • Move its two age parameters to a shared path, and keep the note that the ages come from 7 CFR 273.4(a)(6)(ii)(G)(3), since Congress set no ages for the exemption in 8 U.S.C. 1612 and 1613.
  • Rewrite the marital-unit sentence to match infer_missing_marital_units.

No result changes. The test files that name the variable need the new name, Oklahoma LIHEAP's among them, since that program reads SNAP's immigration test. The existing SNAP, Medicaid, Medicare Savings Program and LIHEAP cases should then pass with the same outputs.

🤖 Generated with Claude Code

Lenguaje dominante
Python
Estrellas
178
Forks
224
Merge medio
2 d 7 h
PR fusionados (30 d)
309

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PolicyEngine/policyengine-us

Todos los issues de PolicyEngine/policyengine-us

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.