-
Notifications
You must be signed in to change notification settings - Fork 83
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
StoreAdapter does not guarantee that fetch
, etc. return a promise
#124
Labels
Comments
as @maier49 has started looking at this, it quickly occurred to us that a bunch of StoreAdapter tests need updating regarding this expectation as well. It actually makes me wonder if we should consider fixing this to be a break in backwards compatibility, but technically the original behavior was inconsistent and incorrect. |
maier49
added a commit
to maier49/dstore
that referenced
this issue
Jun 30, 2015
Fixes SitePen#124 by wrapping the return value from StoreAdapter's fetchRange function in a promise. This function is delegated to by fetch so this handles both cases. Also updated several test cases that were relying on the synchronous behavior of the StoreAdapter.
maier49
added a commit
to maier49/dstore
that referenced
this issue
Jul 10, 2015
Fixes SitePen#124 by wrapping the return value from StoreAdapter's fetchRange function in a promise. This function is delegated to by fetch so this handles both cases. Also updated several test cases that were relying on the synchronous behavior of the StoreAdapter.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following simple test case fails with an error on dgrid's dev-0.4 and master branches (which have removed what should be excessive
when
calls), because the adapter returns query results with immediate values instead of a promise:The text was updated successfully, but these errors were encountered: