-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
matchesQuery on inner query returns zero objects #1109
Comments
Note that this can't work properly. Can you dump the _SCHEMA collection? |
Hi @flovilmart and thanks for your reply. Here it is the dumped schema. About what you wrote, that means in the future the only way to update my datasource is to do write/update/delete operations using parse server itself? Cannot I create JSON files and import them straight away (using mongoimport command)? |
As I can see availableInMonths is an array in your schema, I'll dig deeper with that info in hands |
Which info do you need? Yes, it is an array of |
oh, an array of PFObject, I see, that's not great practices as your array of objects can end up out of sync with the original objects. I'll see what I can do, 1st thing is for me to repro the failure with a failing test |
Right, I see your point, but for my use case, that won't happen. |
The most helpful thing would be to start by writing a failing test in ParseQuery.spec.js then track down the bug and finally propose a pull request :) |
@flovilmart I cannot promise you anything given that I am not that good js developer....it would take me ages to do something like that 😄 Will you have a look at this issue? |
Hey @flovilmart have you had the chance to have a look at this issue? Thanks |
Not yet |
Btw, did you update to 2.2.2? I recall solving a similar bug, from another thread. |
Yes, I just did it. Unfortunately the issue is still there. I did update to 2.2.2 parse server and 1.13.0 iOS SDK. The |
what does your array look like? is is |
It looks like the following:
|
@flovilmart I tried after merged but the issue apparently is still there 😞 To be sure, I have updated my database, using the Parse migration tool targeting a ** MongoLab data ** and afterwards dumping and importing same data into my local mongodb instance. Run my curl test commands and my iOS app getting the same issue:
Again I'm sure data is there because it is running correctly on Parse hosted service. I could see your changes in Merge pull request #1185 and tried to run the test but they all fail on my local machine. Do I need to setup the settings in some config file? Better, there is a guide on how to setup and launch the test files? I wanted to try to run the test case with my local data. |
@mulp how did you run parse-server on master branch? There is nothing to setup besides cloning the repository, running npm install; npm test. |
uhmmmm did a pull on master, and run it with the command line:
is that correct? |
did you ran npm install after the pull? |
ops, that was the missing piece. It works. 😄 Sorry about that. Thanks for your help. |
What's going on with the failing tests? Tests should all run correctly. BTW, does the added test respesents your current data structure? https://github.com/ParsePlatform/parse-server/pull/1185/files#diff-f06f950a126bc6349f0e579b6ef362f7R2174 |
Maybe it's my fault. I'm running the test using the command:
I don't know if the command is correct. and I expect they run on my local server. But I cannot see any logs and they are all red. |
Run npm test ParseQuery.spec.js, we use jasmine and Babel-node |
Environment Setup
Parse-server 2.2.0 local installation
MongoDB 3.2.3
iOS SDK 1.12.0
Steps to reproduce
It works correctly on hosted Parse. I have also done the following manual double-checks:
I can confirm this returns more than zero objects. It is currently running on an hosted Parse service. Trying to test on my local installation before to move to a cloud service.
Logs/Trace
The text was updated successfully, but these errors were encountered: