Skip to content

refactor async doc auth#4495

Merged
mitchellhenke merged 9 commits intomasterfrom
mitchellhenke/async-doc-refactor
Dec 7, 2020
Merged

refactor async doc auth#4495
mitchellhenke merged 9 commits intomasterfrom
mitchellhenke/async-doc-refactor

Conversation

@mitchellhenke
Copy link
Contributor

Refactors the Redis storage and classes so that the async doc auth uses its own data structure (with hopefully a more sensible interface)

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/async-doc-refactor branch from e8acd23 to 6e803aa Compare December 7, 2020 19:51
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! Some nits, nothing big

Copy link
Contributor

Choose a reason for hiding this comment

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

❤️ so glad we could remove this line

Comment on lines 227 to -228
dcs = DocumentCaptureSession.where(uuid: uuid).first_or_create
dcs.store_proofing_pii_from_doc(pii) # generates a result_id
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to set a result_id? Since the #store_doc_auth_result won't make one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

create_doc_auth_sessioncreates it 🙂

Mitchell Henke and others added 5 commits December 7, 2020 13:56
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
pii: {
idv_result: {
success: true, errors: {}, messages: ['message'],
pii_from_doc: {
Copy link
Contributor

Choose a reason for hiding this comment

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

style nit, indent the contents of the hash? give each of the keys above its own line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍🏼

Mitchell Henke and others added 3 commits December 7, 2020 16:03
…ler_spec.rb

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke merged commit 00dc66b into master Dec 7, 2020
@mitchellhenke mitchellhenke deleted the mitchellhenke/async-doc-refactor branch December 7, 2020 22:53
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.

2 participants