-
-
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
Combination of notEqualTo is not working #1596
Comments
Thanks for the bug report, we will look into this. In the meantime, if you want to build and run from source, it should just be 3 steps, assuming you already have git and node installed:
If you have issues somewhere in there, let us know. |
So, for instance, if the test fail here because |
I thought every test was working that's why I was asking for a proper tutorial but if they're failing also on your machine, then that's...fine! 🎉 😢 |
That test works on both my machine and Travis. To debug, change the |
Ok, got |
That could be it. You can increase the timeout for that one test by passing a 3rd parameter to it('test name', done => {
//test stuff
done();
}, 60000) Or change the default when testing on your machine. That test also doesn't have a |
YES! I added I'm writing the test case then, thanks |
@drew-gross It should do the trick: the test is failing -> every cake is returned but only The comment on the test is really shit (I think I mixed two sentences in my head 😬 ). What I meant is that the Hope it is clearer yet and hope you can fix it for our release on Monday 🙏 |
Hi, is there any news about this issue? |
how about giving this a shot? I'm not sure if the behavior is exactly what you are looking for
|
Unfortunately it will only work if i need OR, but most of all i need AND. |
@Michael-Kr What version of parse-server are you running? |
"parse": "~1.9.0", The result of this query is pretty weird, the finded object does not complies to the 'query.equalTo("StringProperty", StringValue);' constraint. |
@Michael-Kr If your |
@Michael-Kr can you provide come code, examples so we can investigate your issue further? |
Multiple should use the union of all objectIds not the intersect Fixes parse-community#1596
* Add failing test for multiple .notEqualTo on relation with same class * Fix multiple .notEqualTo on relations with the same class Multiple should use the union of all objectIds not the intersect Fixes #1596
Check out this issue for an ideal bug report. The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!
For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
Hi there,
I think we're not totally done with the issue #1349 and the PR #1350 just solved it partially...
@drew-gross thought that we will be running into trouble for combination and he was... right 😢
I tried to extend the test cases but there is no guide of how to run the server properly and I got some weird errors everytime (btw is there a runnable docker with proper instruction that can be run on a shitty machine just to do the tests?)
So I'll try to explain the problem as precisely as possible: "You have a cake and this cake has fan and haters".
If you want to see the cakes that Mister X didn't rated yet, you will (on Parse.com) have something like this:
And, logically it returns you: all the cakes - the cakes he likes - the cakes he dislikes = all the cakes he doesn't have a opinion on or the cakes he doesn't know about.
The current status:
At the moment, it works really well with one condition but the intersection is not working, I guess: I can have all the cakes he doesn't know about or he hates (
noIdea || dislike
) or all the cakes he doesn't know about or he likes (noIdea || like
).My knowledge about mongo are pretty limited but is this possible that the two conditions are joined with a
or
and not with anand
(as it logically should)?Nevertheless, I can make two queries and the intersection myself but that's really bad design to me...
If someone gives me access to a working test machine or provide me a decent tutorial which works on a shitty linux, I promise to write the test case myself 😬 😉 🎉
The text was updated successfully, but these errors were encountered: