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

Fixed falsey atom values being treated missing paths #118

Merged

Conversation

sdesai
Copy link
Contributor

@sdesai sdesai commented Aug 21, 2015

@michaelbpaulson

Paths which returned falsey values (null, 0, false, '') were being
treated as missing paths, and hence being returned as empty atoms.

See: Netflix/falcor#460

Sending this over for an initial review. This does fix the reported issue, however I still need to work on the get tests. I don't think they're testing the right use case, because they pass with the older code too.

I don't think we should merge until I've sorted out the right set of unit and integration tests.

sdesai added 2 commits August 20, 2015 16:36
Paths which returned falsey values (null, 0, false, '') were being
treated as missing paths, and hence being returned as empty atoms.

See: Netflix/falcor#460

Added unit tests, and get integration test for these falsey value
cases.
@ThePrimeagen
Copy link
Contributor

@sdesai I will merge the test once you upload that final test you are writing.

There will be a follow PR by Satyen around JSON-Graph output having the same issue.

ThePrimeagen added a commit that referenced this pull request Aug 21, 2015
…ingPaths

Fixed falsey atom values being treated missing paths
@ThePrimeagen ThePrimeagen merged commit 56bf7de into Netflix:master Aug 21, 2015
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