Uh oh!
There was an error while loading. Please reload this page.
feat: add IS_NOT_NULL operator to filters - #971
Conversation
mgraczyk
commented
Sep 20, 2024
In addition to the unit test, I tested this against my production firestore database and it returns the expected results. |
mgraczyk
commented
Oct 3, 2024
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 |
qaz10102030
commented
Dec 17, 2024
I hope this PR can be accepted as soon as possible. 🙏 |
vazome
commented
Dec 17, 2024
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 |
mgraczyk
commented
Dec 19, 2024
mgraczyk
commented
Dec 19, 2024
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
mgraczyk
commented
Dec 19, 2024
@daniel-sanche I rebased on top of main |
daniel-sanche
commented
Dec 19, 2024
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! |
daniel-sanche
commented
Dec 20, 2024
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