-
Notifications
You must be signed in to change notification settings - Fork 83
feat: add IS_NOT_NULL operator to filters #971
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
Conversation
|
In addition to the unit test, I tested this against my production firestore database and it returns the expected results. |
|
Hi @daniel-sanche, would you mind taking a look or running the workflows? Should be a nice addition and bring the python sdk closer to feature parity with the Node sdk. |
|
+1, I thought I'm tripping since I could do that in the console, but it's just GUI having more features than Python SDK, hehe.. heeeeeeee... after 4 years https://firebase.google.com/support/release-notes/js#version_7210_-_september_17_2020 |
|
I hope this PR can be accepted as soon as possible. 🙏 |
|
Hey @daniel-sanche! Could you take a look? |
|
This looks like a good addition, I will just have to check with other languages to make sure everything is consistent. I will also need to add some system tests before we can merge Thanks for putting this together |
|
Related but somewhat off topic, it would also be nice if we could refine the argument types for Even after my change there are gotchas passing |
* unit tests
|
@daniel-sanche I rebased on top of main |
Unfortunately we are in a release freeze for the holidays, so we won't be able to cut a new release for this until early January. I will try to add some tests today Thanks for your contributions, sorry about the delay in reviewing this! |
|
There's a new security policy that our CI checks won't run against external forks, so it looks like I'll have to close this in favor of #988. We can continue discussion there. (I also added support for IS_NOT_NAN, which was also missing) If you have any more contributions, I can pull them in manually from your fork, but I think we should be able to merge and release this when the freeze is over. Thanks again for putting this together!
Feel free to open bugs for this, and let me know if you have a particular solution in mind. I'll take a look at this again in January |

This allows filters like
x.where("field", "!=", None)to work, matching the javascript implementation.Also adds a test.
Fixes #970