Skip to content

Remove the USPS option during IAL2 strict#6277

Merged
jmhooper merged 13 commits intomainfrom
jmhooper-remove-usps-step-during-ial2-strict
May 5, 2022
Merged

Remove the USPS option during IAL2 strict#6277
jmhooper merged 13 commits intomainfrom
jmhooper-remove-usps-step-during-ial2-strict

Conversation

@jmhooper
Copy link
Contributor

There is a chance we won't be able to roll out a compliant IAL2 flow with the USPS letter flow in place. This commit adds the ability to remove the letter flow option from strict IAL2 if that does become the case.

There is a chance we won't be able to roll out a compliant IAL2 flow with the USPS letter flow in place. This commit adds the ability to remove the letter flow option from strict IAL2 if that does become the case.
…oof with a letter during IAL2 strict was added
…tion to proof with a letter during IAL2 strict was added
…tion to proof with a letter during IAL2 strict was added
def profile_needs_verification?
return false if current_user.blank?
return false if sp_session[:ial2_strict] &&
!IdentityConfig.store.usps_upload_allowed_for_strict_ial2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it too late to rename this feature flag? we switched everything using the mail-in flow to be called "GPO" to differentiate from IPP @ USPS #4837

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, willfix


# rubocop:disable Naming/MemoizedInstanceVariableName
def set_gpo_letter_available
@gpo_letter_available ||= FeatureManagement.enable_gpo_verification? &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing existed previously, but won't this reassign the instance variable if called repeatedly while still false?

Should it be... ?

Suggested change
@gpo_letter_available ||= FeatureManagement.enable_gpo_verification? &&
@gpo_letter_available &&= FeatureManagement.enable_gpo_verification? &&

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, happy to fix!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up going with this because of some quirks with the &&= operator:

[1] pry(main)> a &&= true
=> nil
[2] pry(main)> a
=> nil

@jmhooper jmhooper merged commit 34c33d1 into main May 5, 2022
@jmhooper jmhooper deleted the jmhooper-remove-usps-step-during-ial2-strict branch May 5, 2022 16:27
peggles2 pushed a commit that referenced this pull request May 5, 2022
There is a chance we won't be able to roll out a compliant IAL2 flow with the USPS letter flow in place. This commit adds the ability to remove the letter flow option from strict IAL2 if that does become the case.

* changelog: Upcoming Features, Proofing, The ability to disable the option to proof with a letter during IAL2 strict was added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants