-
Notifications
You must be signed in to change notification settings - Fork 2
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
Set up firebase for coffee chat bingo #593
Conversation
[diff-counting] Significant lines: 32. |
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.
The set up looks good in the prod database! You probably did some testing in the dev database, so there's an extra coffee-chat-requirement collection. In order to keep the dev database updated with the prod, you may want to remove it.
backend/src/types/DataTypes.d.ts
Outdated
export type DBCoffeeChat = { | ||
uuid: string; | ||
members: firestore.DocumentReference[]; | ||
image: string; | ||
category: string; | ||
description: string; | ||
status: string; |
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.
Make sure to add this new type to common-types/index.d.ts
as well!
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.
A few nits, but overall looks good
backend/src/types/DataTypes.d.ts
Outdated
image: string; | ||
category: string; | ||
description: string; | ||
status: string; |
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.
Change status
type to be Status
, not string
.
@@ -191,3 +191,13 @@ interface Shoutout { | |||
readonly hidden: boolean; | |||
readonly uuid: string; | |||
} | |||
|
|||
interface CoffeeChat { | |||
readonly uuid: string; |
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.
As you can see (from above), though we never followed this rule, we theoretically should be making all these fields readonly
. Don't worry about the above ones but let's fix this 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.
Looks good to me! Thanks again for finishing this :D
* initial commit * add dbcoffeechat type * testing file * testing * rm testing file * add type into common types * make description non optional * add date * fix nits
Summary
This pull request is the first step towards implementing coffee chat bingo.
coffee-chats
infirebase.ts
Notion/Figma Link
https://www.notion.so/Set-up-Firebase-for-coffee-chat-bingo-3d6c635217ec48a8aaf08ed7a5e4f197
Test Plan
Notes