Skip to content

Add a VerifyByMailConcern to the IdP#10880

Merged
jmhooper merged 9 commits intomainfrom
jmhooper-verify-by-mail-concern
Jun 28, 2024
Merged

Add a VerifyByMailConcern to the IdP#10880
jmhooper merged 9 commits intomainfrom
jmhooper-verify-by-mail-concern

Conversation

@jmhooper
Copy link
Contributor

This commit adds a VerifyByMailConcern to the IdP. This is intended to function as a mixin that wraps up the logic required for verify-by-mail. This includes:

  • Creating an providing an accessor for the verify-by-mail policy object
  • Delegating some methods to the policy object to describe things such as whether a user can request or resend a letter
  • Logging analytics events and computing analytics properties

Inspiration from this came from this comment: https://github.com/18F/identity-idp/pull/10878/files#r1657358020

This commit adds a `VerifyByMailConcern` to the IdP. This is intended to function as a mixin that wraps up the logic required for verify-by-mail. This includes:

- Creating an providing an accessor for the verify-by-mail policy object
- Delegating some methods to the policy object to describe things such as whether a user can request or resend a letter
- Logging analytics events and computing analytics properties

Inspiration from this came from this comment: https://github.com/18F/identity-idp/pull/10878/files#r1657358020

[skip changelog]
@jmhooper jmhooper requested review from a team and zachmargolis June 27, 2024 17:41
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM, bonus points for a spec for this new concern! might have to stub out a lot of methods but would be good for regressions

Copy link
Contributor

@n1zyy n1zyy left a comment

Choose a reason for hiding this comment

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

Nice, I hadn't seen some of these opportunities in my story but this cleans things up nicely!

@jmhooper jmhooper merged commit ddfb5ec into main Jun 28, 2024
@jmhooper jmhooper deleted the jmhooper-verify-by-mail-concern branch June 28, 2024 14:02
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.

3 participants