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

partial request deduping #897

Merged
merged 14 commits into from
Oct 17, 2017
Merged

partial request deduping #897

merged 14 commits into from
Oct 17, 2017

Conversation

asyncanup
Copy link
Contributor

@asyncanup asyncanup commented Oct 6, 2017

update:
pull request is ready for review and merging! all edge cases covered.

update:
pull request is up for review now. all edge case bugs fixed. adding some tests now.

dedupes 2 major cases: paths followed via refs in cache, and paths with ranges in the end
pull request is still in progress, but still want to get opinion on the approach
work remaining: dedupe paths with more properties after the range, and not followed via refs in client cache (like ['videosById', { from: 0, to: 10 }, 'name' ] where videosById is not in cache

fixes #779

dedupes 2 major cases: paths followed via refs in cache, and paths with ranges in the end
remaining: paths with more properties after the range, and not followed via refs in client cache
@coveralls
Copy link

coveralls commented Oct 9, 2017

Coverage Status

Coverage decreased (-0.7%) to 91.264% when pulling 3bc0295 on falcor-779 into 84ddff7 on master.

@coveralls
Copy link

coveralls commented Oct 12, 2017

Coverage Status

Coverage increased (+0.1%) to 92.116% when pulling e0cdeeb on falcor-779 into 84ddff7 on master.

@coveralls
Copy link

coveralls commented Oct 16, 2017

Coverage Status

Coverage increased (+0.1%) to 92.116% when pulling 3125234 on falcor-779 into 84ddff7 on master.

@coveralls
Copy link

coveralls commented Oct 16, 2017

Coverage Status

Coverage increased (+0.1%) to 92.116% when pulling 28edebf on falcor-779 into 84ddff7 on master.

Copy link
Contributor

@jhusain jhusain left a comment

Choose a reason for hiding this comment

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

LGTM.

if (wait > 0) {
setTimeout(exec, wait);
} else {
if (wait === false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with the decision to make "0" mean setTimeout(0). However would've used null/undefined to indicate no wait. That way the member could just be optional, and if not included, there would be no async.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks! points from discussion with @jhusain :

it did already was no wait if you missed the property (because wait gets defaulted to false earlier), but that did leave out the case where wait is explicitly sent in as undefined. agreed that missing the property should behave the same as setting it to undefined, so now:
using undefined to indicate no wait. not caring about null or other possible types at this point (this is test helper code).

@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage increased (+0.1%) to 92.116% when pulling 099a6db on falcor-779 into 84ddff7 on master.

@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage increased (+0.1%) to 92.116% when pulling dd1628b on falcor-779 into 84ddff7 on master.

@asyncanup asyncanup merged commit 184f365 into master Oct 17, 2017
@asyncanup asyncanup deleted the falcor-779 branch February 26, 2018 20: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.

Path Deduping only works on subsets, not intersecting sets of paths
3 participants