Skip to content

LG-7303 - send IP address to TMX, LG-7304 - send app_id to TMX#6793

Merged
gsa-manish merged 2 commits intomainfrom
send_ip_address_app_id_custom_field_tmx
Aug 23, 2022
Merged

LG-7303 - send IP address to TMX, LG-7304 - send app_id to TMX#6793
gsa-manish merged 2 commits intomainfrom
send_ip_address_app_id_custom_field_tmx

Conversation

@gsa-manish
Copy link
Contributor

LG-7303 - send IP address to TMX, LG-7304 - send app_id to TMX

changelog: Internal, DDP Proofer, send ip_address and app_id to API

@gsa-manish gsa-manish force-pushed the send_ip_address_app_id_custom_field_tmx branch from 9cae5b2 to f4a4de8 Compare August 19, 2022 18:16
@gsa-manish gsa-manish force-pushed the send_ip_address_app_id_custom_field_tmx branch 4 times, most recently from c5be4f3 to 93bd00e Compare August 19, 2022 18:58
Comment on lines 87 to 92
Copy link
Contributor

Choose a reason for hiding this comment

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

can we turn this into keyword args? They're much clearer about what inputs are needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi sorry to be clear, I meant, "can we use the keyword arguments syntax" not just rename this to args. This is more of what I meant:

  def proof_lexisnexis_ddp_with_threatmetrix_if_needed(
    applicant_pii:,
    user_id:,
    threatmetrix_session_id:,
    request_ip:,
    uuid_prefix:
  )

Copy link
Contributor Author

@gsa-manish gsa-manish Aug 23, 2022

Choose a reason for hiding this comment

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

I tried that, there's a code climate limitation, which is why I went this way. Any other ideas to get around this?

Method proof_lexisnexis_ddp_with_threatmetrix_if_needed has 5 arguments (exceeds 4 allowed). Consider refactoring. NEW
def proof_lexisnexis_ddp_with_threatmetrix_if_needed(applicant_pii, user, threatmetrix_session_id, request_ip, uuid_prefix)
Severity: MinorFound in app/jobs/resolution_proofing_job.rb - About 35 mins to fix

@gsa-manish gsa-manish force-pushed the send_ip_address_app_id_custom_field_tmx branch from 93bd00e to 7d9512c Compare August 19, 2022 19:17
@gsa-manish gsa-manish force-pushed the send_ip_address_app_id_custom_field_tmx branch 4 times, most recently from 97c9d6e to de47b45 Compare August 23, 2022 15:57
LG-7304 - send app_id to TMX

changelog: Internal, DDP Proofer, send ip_address and app_id to API
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

@gsa-manish gsa-manish merged commit 5ed26ee into main Aug 23, 2022
@gsa-manish gsa-manish deleted the send_ip_address_app_id_custom_field_tmx branch August 23, 2022 18:19
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