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

[BUGFIX] Debounce context not properly set #434

Merged
merged 1 commit into from
Jan 12, 2017
Merged

Conversation

offirgolan
Copy link
Collaborator

Changes proposed:

  • Create a static resolveDebounce method to pass run.debounce

Tasks:

  • Added test case(s)
  • Updated documentation

@offirgolan offirgolan merged commit 441d154 into master Jan 12, 2017
@offirgolan offirgolan deleted the debounce-fixes branch January 12, 2017 00:56
@estshy
Copy link

estshy commented Jan 12, 2017

@offirgolan Are you sure it's going to work correctly with two async validations on the same time (let say user and email uniqueness) ? I think one might be debouncing the other one. Instead they should be running in parallel.

@offirgolan
Copy link
Collaborator Author

I dont think they should interfere since the debounce context is the validator BUT I could be wrong. Can you test this out? If not I can test it out sometime this weekend.

@offirgolan
Copy link
Collaborator Author

@estshy after some digging, it looks like I'm correct 😛

https://github.com/ebryn/backburner.js/blob/master/lib/backburner/index.js#L662

@estshy
Copy link

estshy commented Jan 13, 2017

@offirgolan Correct. That's nice, always good to learn something.

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