Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor household member data in to an Array of Objects. #400

Open
trevorshannon opened this issue May 6, 2023 · 0 comments
Open

Refactor household member data in to an Array of Objects. #400

trevorshannon opened this issue May 6, 2023 · 0 comments
Labels
component:eligibility Pertaining to the program eligibility tool p3:someday Lower priority type:cleanup Internal cleanup or refactoring

Comments

@trevorshannon
Copy link
Collaborator

Currently, each data field about other household members is stored in its own Array, e.g. householdAges and householdDisabled storing the ages and the disabled status of each household member, respectively.

It would be cleaner to have a single Array of household member Objects, something like:

input.householdMembers == [{
  age: 24,
  disabled: false,
  pregnant: false,
  breastfeeding: false,
  dependent: false,
  spouse: true,
}];
@trevorshannon trevorshannon added type:cleanup Internal cleanup or refactoring p3:someday Lower priority component:eligibility Pertaining to the program eligibility tool labels May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:eligibility Pertaining to the program eligibility tool p3:someday Lower priority type:cleanup Internal cleanup or refactoring
Projects
None yet
Development

No branches or pull requests

1 participant