Skip to content

Comments

Deploy RC 344 to Prod#9855

Merged
soniaconnolly merged 7 commits intostages/prodfrom
stages/rc-2024-01-04
Jan 4, 2024
Merged

Deploy RC 344 to Prod#9855
soniaconnolly merged 7 commits intostages/prodfrom
stages/rc-2024-01-04

Conversation

@soniaconnolly
Copy link
Contributor

Bug Fixes

  • Identity verification: Prevent telling the user their letter is on the way if it actually isn't (#9823)

Internal

  • Code Quality: Remove unused code (#9850, #9851)
  • Code Quality: Replace custom utilities with native equivalents (#9849)
  • In-Person Proofing: Modify step type/prop to be more expected
  • Scripts: Add addtional bounce information to email-deliveries script (#9843)

matthinz and others added 7 commits January 2, 2024 12:23
* Add validation to GpoConfirmation model

Validate that:

- entry is present
- entry contains all required fields
- entry contains a valid zipcode

* Ensure we throw a 500 in EnterPasswordController

Since enforcement is with rails validation, this would be a 4XX error by default. Wrapping it in another error ensures it'll get passed back to the user as a 500

* Don't allow GpoConfirmationMaker to accept nil zipcode

* Fix GpoMail spec

Ensure we're passing now-required fields in.

* Update GpoConfirmationMaker spec to use more examples

* Don't mint a profile when GpoConfirmation write fails

If we mint the profile, the user will see the "your letter is on the way" screen when they refresh.

* Validate individual attributes

Introduce phantom attributes on GpoConfirmation that we can validate with traditional means
This should allow better error messages for logging purposes

* Destroy IdV session on invalid gpo data

Ideally we'd show an error and have the user confirm their address, but as a stopgap we can destroy the idv session and force the user to restart.

* changelog: Bug Fixes, Identity verification, Prevent telling the user their letter is on the way if it actually isn't

* Move zip code normalization into GpoConfirmation

It will normalize its own zip code values.
(This lets zip validation just piggy back on zip normalization)

* Watch for invalid GPO confirmations when uploading

- Validate confirmations before sending to GPO
- Notify NewRelic if there are invalid confirmations present

* Add invalid_gpo_confirmation_zipcode config

Allow configuring a certain zipcode to cause GPO confirmation validation to blow up

* Don't bother killing IdvSession on error

I think the session is not committed due to the 500 error, so we need to take a different path that doesn't depend on saving state in session

* Don't use method_missing

* Add a couple more zip code examples
changelog: Internal, Scripts, Add addtional bounce information to email-deliveries script
[skip changelog]

We always find ourselves copy and pasting the same JIRA link for the
relevant ticket. Adding this to the PR template allows us to just
replace the X's with the ticket number.
* Replace hasOwn with Object.hasOwn

Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn

changelog: Internal, Code Quality, Replace custom utilities with native equivalents

* Replace fromPairs with Object.fromEntries

Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries

changelog: Internal, Code Quality, Replace custom utilities with native equivalents
changelog: Internal, Code Quality, Remove unused code
changelog: Internal, Code Quality, Remove unused code
@soniaconnolly soniaconnolly merged commit f894694 into stages/prod Jan 4, 2024
@soniaconnolly soniaconnolly deleted the stages/rc-2024-01-04 branch January 4, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants