-
Notifications
You must be signed in to change notification settings - Fork 117
feat(ui_firestore): add includeMetadataChanges
parameter to FirestoreQueryBuilder
#349
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
base: main
Are you sure you want to change the base?
Conversation
70d3f0b
to
0675408
Compare
I am not sure if there is a way to directly specify includeMetadataChanges when constructing the |
includeMetadataChanges
parameter to FirestoreQueryBuilder
@cpunion - This seems good to me. I think we should also update here: https://github.com/firebase/FirebaseUI-Flutter/blob/main/packages/firebase_ui_firestore/lib/src/table_builder.dart#L267 Probably should be able to pass it into |
There isn't any |
@cpunion - We can leave that for another time. Do you mind adding a simple test that passes in Thanks 😄 |
0675408
to
f6810c7
Compare
I will try to add a test. |
@russellwheatley It seems that metadata changes too quickly to be captured by
When the |
@cpunion - could you show me what test you wrote? You can use a Completer to wait for something to return. E.g: https://github.com/firebase/flutterfire/blob/main/packages/cloud_firestore/cloud_firestore/example/integration_test/web_snapshot_listeners.dart#L36 |
@russellwheatley I just added debug prints at https://github.com/firebase/FirebaseUI-Flutter/pull/349/files#diff-df489d5e040c259b77c51b59326d57ffa8ebbf45b0bee42e7bc1d257ab3ea68eR183 , so I think that is not testable. |
Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 15 days until this gets closed automatically |
Description
Currently
FirestoreListView
can't get metadata changes, theFirestoreQueryBuilder
component callsQuery<Document>.snapshots()
withoutincludeMetadataChanges
parameter.Related Issues
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).This will ensure a smooth and quick review process. Updating the
pubspec.yaml
and changelogs is not required.///
).melos run analyze
) does not report any problems on my PR.melos run test:unit:all
doesn't fail).Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?