Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Comments

refactor: Introduce the (outlines of) the Firestore Native-based v2 backend#1965

Merged
brunobowden merged 8 commits intoWorldHealthOrganization:masterfrom
rjhuijsman:rjh.backend
Mar 31, 2021
Merged

refactor: Introduce the (outlines of) the Firestore Native-based v2 backend#1965
brunobowden merged 8 commits intoWorldHealthOrganization:masterfrom
rjhuijsman:rjh.backend

Conversation

@rjhuijsman
Copy link
Contributor

This PR lays the groundwork for the v2 backend, which will be based on Firestore in Native mode.

Reviewer suggestion:

  1. Begin with the README.md files to get some idea of what the moving pieces are.
  2. Look at the current Firestore Security Rules in app/server/firestore.rules and its unit tests in app/server/functions/firestore_rules.spec.ts.
  3. Look at the app/server/functions/src/index.ts file containing the new Cloud Functions.
  4. Look at the development setup for the Cloud Functions in app/server/functions/package.json.
  5. Look at the changes to the Terraform config in app/server/terraform.
  6. Look at how Firebase specifies what it will deploy in app/server/firebase.json.
  7. Optionally, try deploying a v2 backend for yourself, and let me know how it goes!

Screenshots

None

How did you test the change?

  • iOS Simulator
  • iOS Device
  • Android Simulator
  • Android Device
  • curl to a dev App Engine server
  • other, please describe: Unit tests, and manual verification using Google Cloud Console.

Checklist:

…ackend.

This PR lays the groundwork for the v2 backend, which will be based on Firestore in Native mode.
Copy link
Contributor

@matthewblain matthewblain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the right direction. My comments are mostly procedural/naive, as I've never used firestore or typescript.

terraform init
terraform apply
# Should create all resources without any errors
# THIS MAY THROW AN ERROR:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthewblain - I'm sure you'll have a comment on this. It is tricky to do this entirely without errors.

@@ -1,7 +1,7408 @@
{
"name": "app-dev-tools",
"lockfileVersion": 2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theswerd - did we discuss upgrading to lockfileVersion 2 before? Any other implications to worry about?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theswerd - please comment if there's any issues with lockfileversion 2

Copy link
Contributor

@brunobowden brunobowden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rjhuijsman - I'm happy at this point but would want @matthewblain to look it over a again. All my feedback is relatively straight forward.

Copy link
Contributor

@matthewblain matthewblain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

Copy link
Contributor

@theswerd theswerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM - Please take a look at comments before merging

@rjhuijsman
Copy link
Contributor Author

I've addressed all of your comments. I believe we're all happy to merge this version? Would somebody with The Power be willing to press that button @brunobowden @matthewblain @theswerd?

@rjhuijsman rjhuijsman requested a review from brunobowden March 31, 2021 19:33
@brunobowden brunobowden dismissed theswerd’s stale review March 31, 2021 23:58

Hi Ben, dismissing your review as I think RJ has addressed it and we want to get this merged in

@brunobowden brunobowden merged commit daef675 into WorldHealthOrganization:master Mar 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants