-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
store.find('model', ''); shouldn't query 'api/models/' #2348
Comments
is this still an issue on master? I seem to remember @raycohen fixing this ages ago. Maybe a regression? |
canary definitely not sure about master |
maybe something funky with the new batching code? my quick skim yields the following code-path:
which doesn't appear to suffer from this (at least not at first glance). Maybe ^^ will give you enough context to track down the failure. |
at no place in that path does it bother to check if it is an empty string |
Sorry for the late followup, but I am not sure what is the use case for passing an empty string? Would you expect it to immediately reject? |
The (unmerged) PR @stefanpenner recalls is #518 I agree with @lukemelia's comment found in the discussion. |
My bad. We deprecated the overloaded find but should still add the assert
|
basically if you do find with an empty string then it does a search for api/models/ with no id which leads to it downloading all of the models, coerceID seems like it should be coercing empty strings to null.
The text was updated successfully, but these errors were encountered: