Closed jdkaplan closed 1 month ago
Was this supposed to be closed? The PairingsDB
refactor is still mentioned in the checklist, and I'd like to work on it
Was this supposed to be closed? The
PairingsDB
refactor is still mentioned in the checklist, and I'd like to work on it
Good catch, thanks! And extra thanks for taking on PairingsDB
!
Thanks @pjg11 for finishing this up!
The Firestore client can use a
firestore
struct tag to map between Firestore documents and Go structs. We should use it!For example, this is (now) how we map the Recurser struct (just like the standard library's
json
tag):Relevant docs:
Tasks
These are the structs that form our interface to Firestore:
FirestoreRecurserDB
: #81FirestoreAPIAuthDB
: #82FirestorePairingsDB
: #97FirestoreReviewDB
: #93I think this refactor is a great first task for someone looking to get starting working on Pairing Bot. It should be possible to copy-paste from existing code and get quite far. And I would be also be glad to help out at any point (maybe even pair on it :wink:)!
Let me know (here or elsewhere) if you'd like to claim a struct :slightly_smiling_face: