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 handling of eligibility types #89

Merged
merged 2 commits into from
Jun 17, 2021
Merged

Refactor handling of eligibility types #89

merged 2 commits into from
Jun 17, 2021

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Jun 17, 2021

The central change in this PR is to adapt get/set of eligibility information from/to session to use the EligibilityType.id property rather than name. Since this object carries the value sent in the eligibility phase and also the group identifier for the enrollment phase, we may have multiple types with the same name pointing to different enrollment groups.

The current logic relying on name causes errors when there are duplicates because we cannot determine which EligibilityType was meant.

A future todo could be to refactor the models to separate eligibility name and benefit group identifier.

@thekaveman thekaveman added the bug Something isn't working label Jun 17, 2021
@thekaveman thekaveman added this to the June 2021 milestone Jun 17, 2021
@thekaveman thekaveman merged commit 9b9c181 into dev Jun 17, 2021
@thekaveman thekaveman deleted the eligibility-fixes branch June 17, 2021 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant