usagov / test-at-home

Other
8 stars 4 forks source link

MVP address validation resiliency #67

Open porta-antiporta opened 2 years ago

porta-antiporta commented 2 years ago

From #60, where a decision on address validation resiliency was made

In the event that SmartyStreets encounters an outage:

hartsick commented 2 years ago

@porta-antiporta For this, when address validation is disabled we could easily require that certain fields be provided (eg mailing address 1, city, state, zip code) in addition to email. What do you think?

porta-antiporta commented 2 years ago

@hartsick yes to clarify the ask is:

email is mandatory in addition to existing mandatory fields

so however which way we achieve that is fine by me.

hartsick commented 2 years ago

@porta-antiporta gotcha. we're not technically requiring those elements on the backend (just letting API tell us what is needed), so was confused! thanks for clarifying!

porta-antiporta commented 2 years ago

need :TIL: reaction

hartsick commented 2 years ago

@hursey013 could you tackle the front end parts of this? related to #89

hartsick commented 2 years ago

@porta-antiporta I also removed the "This step is optional, but we will not be able to provide tracking without an email." if email is required.

the label is a little weird since it may be interpreted as a suggestion: "To receive updates on the status of your order from USPS, please provide an email address."

porta-antiporta commented 2 years ago

@hartsick i think for an MVP for a backup of a backup, that content change is sufficient.

hartsick commented 2 years ago

I think we're done with the intake application, except for deploying to a production environment. I believe one of the staging environments already have this work on it based on deploy in Circle, but not sure of the URL. @rahearn ?

rahearn commented 2 years ago

right now, https://test_at_home-stage.app.cloud.gov/ should have smarty streets enalbed (though likely with a key that doesn't have any credits left...) and https://test_at_home-stage.app.wb.cloud.gov/ has the version with smarty streets disabled (and thus other fields should be required to be present)

porta-antiporta commented 2 years ago

just ran a quick validation on the app that has smartystreets disabled:

hartsick commented 2 years ago

I'm looking at that server and it's not what I expect it to look like if smarty was actually disabled—I suspect the env var isn't set correctly in the environment? will look into in the morning

porta-antiporta commented 2 years ago

closing with #153 tracking the remaining bug.