Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paysafe: Truncate address fields #4841

Merged
merged 1 commit into from
Jul 31, 2023
Merged

Conversation

jcreiff
Copy link
Contributor

@jcreiff jcreiff commented Jul 25, 2023

Limits the length of address fields, according to Paysafe docs

LOCAL
5560 tests, 77697 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

760 files inspected, no offenses detected

UNIT
19 tests, 95 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

REMOTE
34 tests, 83 assertions, 8 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
76.4706% passed

CER-746

@jcreiff jcreiff requested a review from a team July 25, 2023 13:23
Copy link
Contributor

@rachelkirk rachelkirk left a comment

Choose a reason for hiding this comment

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

Same remote test results on master as this branch. I shall approve the PR, but not of the shortening of majestic Lake Chargoggagoggmanchauggagoggchaubunagungamaugg

address1: "This is an extremely long address, it is unreasonably long and we can't allow it.",
address2: "This is an extremely long address2, it is unreasonably long and we can't allow it.",
city: 'Lake Chargoggagoggmanchauggagoggchaubunagungamaugg',
state: 'NC',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a lake in Australia? I feel like they'd have a lake named something like this. And if that's the case, how dare you truncate it?!?!

assert_match(/"street":"This is an extremely long address, it is unreasona"/, data)
assert_match(/"street2":"This is an extremely long address2, it is unreason"/, data)
assert_match(/"city":"Lake Chargoggagoggmanchauggagoggchaubuna"/, data)
end.respond_with(successful_purchase_response)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm saddened to see the disrespect shown to this made up lake.

Limits the length of address fields, according to Paysafe docs
@jcreiff jcreiff force-pushed the paysafe_truncate_address_fields branch from ca7cb48 to 0ff6eaa Compare July 31, 2023 15:52
@jcreiff jcreiff merged commit 0ff6eaa into master Jul 31, 2023
5 checks passed
@jcreiff jcreiff deleted the paysafe_truncate_address_fields branch July 31, 2023 15:57
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