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

Fix max retries on clone #917

Merged
merged 2 commits into from
Feb 9, 2018
Merged

Fix max retries on clone #917

merged 2 commits into from
Feb 9, 2018

Conversation

quantumew
Copy link

@quantumew quantumew commented Feb 6, 2018

#915

No clue if you guys take pull requests but this appears to fix the issue above.

For ease of reading at a glance I will reiterate what this is fixing. batch calls this._clone, _clone instantiates Model with this, the instance of the model does not have a property maxRetries but rather _maxRetries, therefore maxRetries gets reset to the default if you do the following

new falcor.Model({maxRetries: 10, ... }).batch(...)

Also I can write a test for this if you'd like

@asyncanup
Copy link
Contributor

@quantumew
good catch and great fix. could you also add a test case for this?

@quantumew
Copy link
Author

quantumew commented Feb 7, 2018

@asyncanup Thanks for the fast response. c77bc07

Remove extra line I added to spec file
@quantumew
Copy link
Author

@asyncanup Sorry to bother, do you have a timeline for this to be released? Just curious, thanks again for the time! Let me know if I am missing anything!

@asyncanup
Copy link
Contributor

LGTM

@asyncanup
Copy link
Contributor

will wait a day to let other reviewers review this (added them to the PR), and then merge into master.
in terms of going out on npm as a new version, that can take a few days

@quantumew
Copy link
Author

@asyncanup Awesome, thank you sir!

@jhusain
Copy link
Contributor

jhusain commented Feb 9, 2018

LGTM

@asyncanup asyncanup merged commit 57b4dbe into Netflix:1.0.0 Feb 9, 2018
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.

3 participants