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

Omit null optional fields in Nav events #566

Merged
merged 2 commits into from
Sep 19, 2017

Conversation

Guardiola31337
Copy link
Contributor

  • originalRequestIdentifier, requestIdentifier and audioType used in NavigationMetricsWrapper (Nav SDK) may be "null" so this PR:
    • Omits originalRequestIdentifier, requestIdentifier and audioType optional fields (when "null") over sending nulls

👀 @cammace @ericrwolfe @zugaldia

Copy link

@ericrwolfe ericrwolfe left a comment

Choose a reason for hiding this comment

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

Thanks for all of these fixes!

Is there a way to do this without simply omitting "null" values?

The cancel event, for example, requires an arrivalTimestamp, which takes a null json literal (as opposed to a "null" string value) if the timestamp hasn't been set yet.

@Guardiola31337
Copy link
Contributor Author

Guardiola31337 commented Sep 19, 2017

@ericrwolfe f4925a3 addressed your comments. Ready for a second 👀

@Guardiola31337 Guardiola31337 merged commit 59a9fc9 into master Sep 19, 2017
@Guardiola31337 Guardiola31337 deleted the pg-null-optional-fields branch September 19, 2017 22:15
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