🐛 [cloud_firestore] Future collection converter
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
エントリーポイントは cloud_firestore の withConverter API です。まず、現在の fromFirestore コールバックの契約と、collection および document の変換経路を追跡してください。既存の同期 converter との互換性を維持しながら、非同期 converter が Event の関連データを解決でき、埋め込み User/Event のユースケースをカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Collection converters support for Future
I want to request that withConverter supports a Future for its fromFirestore argument.
Use case
In some cases, like mine, one entity/data object has another one embedded.
Imagine a collection users and a collection events. Documents in collection events have one reference to a document in users.
In my Flutter app, there is class User and a class Event. Class Event has a member user that holds a User object.
- Class
Userdoes havefromFirebaseconstructor andtoFirebasemethod. - Class
Eventhas atoFirebasemethod but cannot have afromFirebaseconstructor: instantiating anEventclass requires not only retrieving data fromeventscollection, but also awaiting to resolve a document fromuserscollection once I got the document fromeventsand have access to its associateduser.
If I could use a Future factory function to construct my Event object, I would be able to use fromFirebase and leverage type safe conversions.
Hope to have explained myself and my use case, and even though I don't think this will be implemented, I just wanted to say that it would be really useful :)
- 主要言語
- Dart
- スター
- 9.3k
- フォーク
- 4.1k
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 78
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/flutterfire のほかの issue
-
🚀 [firebase_core] Bump Firebase C++ SDK (14.1.0 → 14.2.0)対応中かも @SelaseKay が今日担当しました。 オープンNeeds Attention type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
firebase/flutterfire#18977 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[firebase_core_web]: Firebase.initializeApp never completes when a Firebase JS SDK script fails to load対応中かも @LasseLegarth が 5 日前に担当しました。 オープンNeeds Attention platform: web plugin: core reproduced type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
firebase/flutterfire#18964 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Needs Attention platform: android plugin: crashlytics type: enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
firebase/flutterfire#18951 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
blocked: external dependency platform: web plugin: ai type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
firebase/flutterfire#18938 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[cloud_firestore][Windows] Invalid field names (empty or `__x__`) close the app instead of throwing a FirebaseException対応中かも @SelaseKay が 6 日前に担当しました。 オープンNeeds Attention platform: windows plugin: cloud_firestore reproduced type: bug type: crash
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
firebase/flutterfire#18928 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
firebase/flutterfire の issue をすべて見る
似ている issue
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
StabilityNexus/Zplit#77 · コメント 1 件 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
agent: is checked on a wrapper holding several checkables answers from the first one in tree orderオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AlphaWaveSystems/flutter-probe#865 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ubuntu/app-center#2306 ·
メンテナーはふだん 1 日以内に返信