Skip to content

LG-7891 Protect against nil state id numbers in mock proofer#7205

Merged
julialeague merged 1 commit intomainfrom
jmhooper-state-id-proofer-jurisdiction
Oct 24, 2022
Merged

LG-7891 Protect against nil state id numbers in mock proofer#7205
julialeague merged 1 commit intomainfrom
jmhooper-state-id-proofer-jurisdiction

Conversation

@jmhooper
Copy link
Contributor

Our dev docs have a sample YAML file which does not include a state ID number. As a result when partners change the jurisdiction to a supported jurisdiction it causes failures when calling downcase on the nil value.

This commit fixes this bug by protecting against a nil value there. We should also add a state id number and type to the example YAML on the dev docs.

[skip changelog]

Our dev docs have a sample YAML file which does not include a state ID number. As a result when partners change the jurisdiction to a supported jurisdiction it causes failures when calling downcase on the nil value.

This commit fixes this bug by protecting against a nil value there. We should also add a state id number and type to the example YAML on the dev docs.

[skip changelog]
Copy link
Contributor

@julialeague julialeague left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

jmhooper added a commit to GSA-TTS/identity-dev-docs that referenced this pull request Oct 24, 2022
These values are used by the state ID mock proofer. This commit adds them both for visibility and to prevent their absence from causing problems (e.g. 18F/identity-idp#7205)
@jmhooper
Copy link
Contributor Author

Documentation added here: GSA-TTS/identity-dev-docs#281

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

@julialeague julialeague merged commit 1f3a26f into main Oct 24, 2022
@julialeague julialeague deleted the jmhooper-state-id-proofer-jurisdiction branch October 24, 2022 23:45
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.

4 participants