Skip to content

Support filter keyword in where clauses. (#74)#82

Open
thromer wants to merge 5 commits into
mdowds:masterfrom
thromer:master
Open

Support filter keyword in where clauses. (#74)#82
thromer wants to merge 5 commits into
mdowds:masterfrom
thromer:master

Conversation

@thromer

@thromer thromer commented Apr 13, 2024

Copy link
Copy Markdown

FieldFilter support only, not composite filters.

Doesn't support composite filters.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
#	modified:   mockfirestore/collection.py
#	modified:   mockfirestore/query.py
#	modified:   tests/test_collection_reference.py
#
@thromer

thromer commented Apr 13, 2024

Copy link
Copy Markdown
Author

Tests pass locally, including a new test that exercises the filter keyword argument to Collection.where and Query.where.

@eddie

eddie commented Jun 21, 2024

Copy link
Copy Markdown

This looks good, @mdowds any chance this could be merged?

@ritesh-researchify-labs

Copy link
Copy Markdown

Is there any plan to merge this code and release a new version

@ckanaar

ckanaar commented Aug 1, 2024

Copy link
Copy Markdown

Any status on this PR? Would be really nice to get this merged so this package works with modern .where() syntax.

@mohammadkotb

Copy link
Copy Markdown

Any updates on this?! Can this be merged and create a new release for the package?

@eddie

eddie commented Aug 28, 2024

Copy link
Copy Markdown

I have some local changes based of this PR that also implements compound queries, if I have time next week I'll fork this and make it available until this repo becomes active again.

@mohammadkotb

Copy link
Copy Markdown

Thanks @eddie that would be great!
For now I cloned the repo to my code and made the code changes and depending on it as a package.

Let me know if you'd like to fork it and publish it as a package, I can collaborate and help, I see the value in this.

@eddie

eddie commented Sep 5, 2024

Copy link
Copy Markdown

I have forked the repo, added @thromer 's changes and also initial compound query support, please test as its a bit crude! Hopefully we can get this merged back into the main repo in time. Thanks all.

https://github.com/eddie/python-mock-firestore

https://pypi.org/project/mock-firestore-plus/0.12.0/

Also, update Python version numbers and bump our version number.
akharchyshyn added a commit to akharchyshyn/python-fake-firestore that referenced this pull request Feb 8, 2026
akharchyshyn added a commit to akharchyshyn/python-fake-firestore that referenced this pull request Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants