feat(ui_firestore): add includeMetadataChanges parameter to FirestoreQueryBuilder#349
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 |
|
I really need this feature. Could this be merged? |
Description
Currently
FirestoreListViewcan't get metadata changes, theFirestoreQueryBuildercomponent callsQuery<Document>.snapshots()withoutincludeMetadataChangesparameter.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.yamland changelogs is not required.///).melos run analyze) does not report any problems on my PR.melos run test:unit:alldoesn't fail).Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?