move to v3 evidence checks instead of consumer_role state#6118
Open
move to v3 evidence checks instead of consumer_role state#6118
Conversation
ATBull81
commented
Mar 26, 2026
app/models/hbx_enrollment.rb
Outdated
Comment on lines
+3288
to
+3291
| # Fallback to old consumer_role logic if no V3 eligibility_determination exists | ||
| active_consumer_role_people = hbx_enrollment_members.flat_map(&:person).select{|per| per if per.is_consumer_role_active?} | ||
| true_or_false = active_consumer_role_people.present? ? active_consumer_role_people.map(&:consumer_role).any?(&:verification_outstanding?) : false | ||
| end |
Contributor
Author
There was a problem hiding this comment.
return false if they do not have an eligibility
ATBull81
commented
Mar 26, 2026
| @@ -3266,8 +3266,30 @@ def populate_applied_aptc_for_thh_enrs(calculated_applied_aptcs) | |||
|
|
|||
| def set_is_any_enrollment_member_outstanding | |||
Contributor
Author
There was a problem hiding this comment.
Use methods provided by individual_market_verification.rb, don't replicate logic here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
lethelpers andbeforeblocks..html_safe.PR Type
What kind of change does this PR introduce?:
What is the ticket # detailing the issue?
Ticket: https://app.clickup.com/t/868hwr542
A brief description of the changes:
Current behavior: Enrollment status is not being updated correctly due to logic looking at consumer_role state
New behavior: Enrollment status will be updated correctly due to logic looking at V3 evidence states, matching changes from QHP
Feature Flag
For all new feature development, a feature flag is required to control the exposure of the feature to our end users. A feature flag needs a corresponding environment variable to initialize the state of the flag. Please share the name of the environment variable below that would enable/disable the feature and indicate which client(s) it applies to.
Variable name:
Additional Context
Include any additional context that may be relevant to the peer review process.