-
Notifications
You must be signed in to change notification settings - Fork 8
[MSUE-129] - Updates in the lib #88
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
[MSUE-129] - Updates in the lib #88
Conversation
src/test/java/com/siftscience/BaseAppBrowserSiteBrandFieldSetTest.java
Outdated
Show resolved
Hide resolved
mpierotti-sift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment about the user agent changes, looks good otherwise.
| @Expose @SerializedName("$user_agent") private String userAgent; | ||
| private static final String APP_VERSION = "3.7.0"; | ||
| private static final String API_VERSION = "v205"; | ||
| @Expose @SerializedName("$user_agent") private String userAgent = String.format("SiftScience/%s sift-java/%s", API_VERSION, APP_VERSION); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this change is correct for MSUE-63: (Java) Set user Agent String to Client to identifiable value. The SDK user agent should be set in the headers of the the requests that the OkHttpClient is making to Sift, but this implementation seems to be changing the default value for Browser json data within the request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mpierotti-sift Could you please take a look now? Incorporated changes as suggested.
mpierotti-sift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Jira: https://sift.atlassian.net/browse/MSUE-129
changes: