Skip to content

Conversation

@mbarbon
Copy link
Contributor

@mbarbon mbarbon commented Sep 19, 2017

Othwerwise setting them to a false value produces an invalid request, because
the fields are required.

Fixes #181

Othwerwise setting them to a false value produces an invalid request, because
the fields are required.

Fixes sendgrid#181
@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Sep 19, 2017
@SendGridDX
Copy link

SendGridDX commented Sep 19, 2017

CLA assistant check
All committers have signed the CLA.

@thinkingserious thinkingserious added difficulty: medium fix is medium in difficulty hacktoberfest labels Oct 1, 2017
@andy-trimble
Copy link
Contributor

LGTM

ClickTrackingSetting clickTrackingSetting = new ClickTrackingSetting();
clickTrackingSetting.setEnable(true);
clickTrackingSetting.setEnableText(true);
clickTrackingSetting.setEnableText(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

@thinkingserious This seems like more of a problem with the setEnable function? Why are we doing
clickTrackingSetting.setEnable(true);
and then
clickTrackingSetting.setEnableText(true);

Isn't that redundant?
In Setting we only return enable - I didn't see a place where we return enableText - is that for the "pretty" print? If so, can we modify the class to return enable instead of enableText in that case?

Copy link
Contributor

Choose a reason for hiding this comment

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

The real change was removing @JsonInclude(Include.NON_DEFAULT) from ClickTrackingSetting.java to solve issue #181. I think the test was changed to demonstrate that the change worked.

@mbernier
Copy link
Contributor

I merged in all recent changes in the hopes of getting a passing build!

@thinkingserious thinkingserious merged commit d3f4f89 into sendgrid:master Oct 31, 2017
@thinkingserious
Copy link
Contributor

Hello @mbarbon,

Thanks again for the PR!

We want to show our appreciation by sending you some swag. Could you please fill out this form so we can send it to you? Thanks!

Team SendGrid DX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

difficulty: medium fix is medium in difficulty status: code review request requesting a community code review or review from Twilio

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants