-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(cloud_firestore_odm_generator): Support all serializable types #11365
Conversation
We should merge #11361 in first |
👋 This needs testing. |
@@ -35,6 +35,12 @@ class Model { | |||
final String value; | |||
} | |||
|
|||
enum TestEnum { | |||
one, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd need a test which executes the a where/orderBy query and see if they work.
We'll also need an update operation.
And we need to check reads too
packages/cloud_firestore_odm/cloud_firestore_odm_generator/lib/src/collection_data.dart
Outdated
Show resolved
Hide resolved
@rrousselGit Let me know what you think of the new way of doing this |
packages/cloud_firestore_odm/cloud_firestore_odm_generator/lib/src/collection_data.dart
Outdated
Show resolved
Hide resolved
...cloud_firestore_odm_generator/cloud_firestore_odm_generator_integration_test/lib/simple.dart
Outdated
Show resolved
Hide resolved
packages/cloud_firestore_odm/cloud_firestore_odm_generator/lib/src/collection_data.dart
Show resolved
Hide resolved
packages/cloud_firestore_odm/cloud_firestore_odm/example/integration_test/common.dart
Outdated
Show resolved
Hide resolved
This is looking great! Some small test changes and we should be good to go :) |
@@ -13,21 +13,18 @@ Future<void> main() async { | |||
); | |||
|
|||
group('where(arrayContains)', () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this file changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because those methods are no longer undefined since we generate query methods for everything
packages/cloud_firestore_odm/cloud_firestore_odm/example/lib/integration.dart
Outdated
Show resolved
Hide resolved
.../cloud_firestore_odm_generator/cloud_firestore_odm_generator_integration_test/lib/model.dart
Outdated
Show resolved
Hide resolved
packages/cloud_firestore_odm/cloud_firestore_odm_generator/lib/src/collection_data.dart
Show resolved
Hide resolved
packages/cloud_firestore_odm/cloud_firestore_odm_generator/lib/src/collection_data.dart
Show resolved
Hide resolved
CI is failing but I want to talk about the changes required before fixing it |
LGTM once CI is fixed |
@rrousselGit how is this looking? |
Sorry I missed your notification. Looking good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the plan for releasing this? |
First, I would like to thanks @Rexios80 and @rrousselGit for the work. While non-blocking, having a bunch But I think you missed something, since models won't generate until you set |
Description
Support querying enum fields
Related Issues
#11364
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.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?