Skip to content
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

Add Firestore tests + reactive sample #753

Merged
merged 5 commits into from
Oct 9, 2018
Merged

Add Firestore tests + reactive sample #753

merged 5 commits into from
Oct 9, 2018

Conversation

ace-n
Copy link
Contributor

@ace-n ace-n commented Oct 6, 2018

No description provided.

@ace-n ace-n requested a review from fhinkel October 6, 2018 01:02
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 6, 2018
@ace-n ace-n mentioned this pull request Oct 9, 2018
const Firestore = require('@google-cloud/firestore');

const firestore = new Firestore({
projectId: process.env.GCP_PROJECT
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like a non standard location. Is there a reason not to use

process.env.GCLOUD_PROJECT || process.env.GOOGLE_CLOUD_PROJECT

Copy link
Contributor Author

Choose a reason for hiding this comment

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

GCP_PROJECT is the correct one to use in the GCF runtime itself.

functions/firebase/test/index.test.js Outdated Show resolved Hide resolved
@ace-n ace-n merged commit f2c56fa into master Oct 9, 2018
@ace-n ace-n deleted the firestore-reax branch October 9, 2018 22:27
ace-n pushed a commit that referenced this pull request Oct 10, 2018
* Add firestore reaction sample

* Add misc. files

* Add tests

* Change region tag

* Fix copyright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants