Skip to content

Added information that sending of null property or trait is not possible. #4280

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

Merged
merged 3 commits into from
Mar 21, 2023

Conversation

tanjinhong72
Copy link
Contributor

Proposed changes

In the past, there were some tickets on customer asking about sending null property and trait. Engineering has also confirmed that this is not possible.

Added information that sending of null property or trait is not possible.

In the following section:

Good to know: For any of the different methods described on this page, you can replace the properties and traits in the code samples with variables that represent the data collected.

Added:
"Note that sending of null property or trait will not be possible as Guava’s immutable maps will reject the null value and GSON library use to serilaize the Java object will ignore the null value. As a workaround, send an empty string instead of a null value in the property or trait."

Merge timing

Related issues (optional)

(https://segment.zendesk.com/agent/tickets/498628)

Added information that sending of null property or trait is not possible.

In the following section:
> **Good to know**: For any of the different methods described on this page, you can replace the properties and traits in the code samples with variables that represent the data collected.

Added:
"Note that sending of null property or trait will not be possible as Guava’s immutable maps will reject the null value and GSON library use to serilaize the Java object will ignore the null value.  As a workaround, send an empty string instead of a null value in the property or trait."
@tanjinhong72 tanjinhong72 changed the title Update index.md Added information that sending of null property or trait is not possible. Mar 7, 2023
As indicated in https://segment.atlassian.net/browse/KCS-145, making the following changes

1.) Just a slight rewording/typo fixing:
"Note that sending a property or trait with a null value will not be possible as Guava's immutable maps will reject the null value and the GSON library used to serialize the Java object will ignore it. As a workaround, you can send an empty string instead of a null value in on your properties or traits."

2.) The Identify heading is above the Good to know section when it probably shouldn’t be. Move the Identify heading below the Good to know box when update PR.
@tanjinhong72 tanjinhong72 marked this pull request as ready for review March 9, 2023 09:52
@tanjinhong72 tanjinhong72 requested a review from a team as a code owner March 9, 2023 09:52
@tanjinhong72 tanjinhong72 requested review from stayseesong and removed request for a team March 9, 2023 09:52
@stayseesong
Copy link
Contributor

hi @tanjinhong72, is there a reason why you moved this note around and added it to the Regional Configuration section?

@tanjinhong72
Copy link
Contributor Author

Hi @stayseesong , sorry on the late reply. The 'Good to know' note is meant for identify and track types, so initially it feels better to have it above the Identify section. However, I do see the point that it looks even more unappropriate to be under Regional Configuration section. So it's fine to put the 'Good to know' note back under Identify section.

@stayseesong stayseesong merged commit 2c93d13 into develop Mar 21, 2023
@stayseesong stayseesong deleted the tanjinhong72-patch-2 branch March 21, 2023 16:20
@github-actions
Copy link
Contributor

Thank you for your contribution! Your pull request is merged, but may take a day or two to appear on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants