So I was installing firestore (ran firebase init) and I linked my GitHub ACCOUNT. I am new to GitHub and I don't really understand what the console is asking me regarding 'Git Hub repository .... format'. Could someone please tell me what to do in this scenario? :)
It is asking: For which GitHub repository would you like to set up a GitHub workflow? (format: user/repository)
I haven't tried to do anything yet since I dont want to do anything wrong.
This question from the CLI doesn't relate to Firestore, but to Firebase Hosting.
In addition, you should only be getting it you indicate that you want to deploy to Firebase Hosting when you commit a code change to GitHub.
Since you don't seem to do that, why are you trying to connect your Firebase project to it? I'd try again, and only select the products that you want to use.
Related
Firebase Storage Image not showing for 2/3 days. I have some published apps, inside those apps have some Images showing from Firebase Storage and now suddenly it is not showing/viewing. I have also checked those images from Browser > Firebase Console > Storage, but it is not showing image preview and shows: "Error loading preview". But My Firebase Firestore data is showing without any error. I checked Storage Quota, no issue about that. My Firebase Plan is "Blaze" Pay as you go.
Now, what steps should I take to solve the problem? Can anybody help me regarding this issue?
This is not firebase problem, i already contacted with firebase team.
This problem happening from 29th December from Bangladesh.
I think this is an mistake from BTCL, now you can use VPN but this is not solution,
We have to wait or have to communicated with BTCL for solve this issue.
I even couldn't deploy firebase functions using firebase-tools from Bangladesh.
So I contacted firebase team and seems they have nothing to do as this is a country specific problem.
For now I am deploying functions from a headless remote environment.
This issue needs to be sort out either BTRC or google.
How do we know that what cloud functions are running on Firestore with respect to the GIT branch? Is there versioning we can reference? I mean can we know that what is the branch of the cloud function that is deployed on Fire-store?
Cloud Functions doesn't know anything about your git. If you want to add some information to your deployment, perhaps added to your source code, or in another file that you deploy, you are free to arrange for that yourself. None of the provided tooling will do this for you. Once you've added the information you need to your deployment, you can view the source code for the current deployment in the Google Cloud console.
I have an open-source project that uses two separate Firebase projects for a test environment and the production one.
Ultimately, I want to have other developers be able to pull down the project and actually be able to run it WITHOUT me needing to give each individual developer access.
I see a number of solutions in this question: How to add collaborators to a Firebase app?. Those all seem to require each person's email.
I understand why it maybe isn't a thing, but I am wondering if there is a way to just give access to everyone for only the test project so that contributing is super low-friction. Something similar to Firestore database rules that allow read/write in a public fashion to get started for testing.
I've tried making a new IAM account in the Google Cloud Console, and I think that partially worked for the Firebase Cloud Functions access to Admin SDK, but my collaborators get hung up trying to run firebase use <test-firebase-project> saying that they don't have access.
I see a lot of other config options for IAM, but nothing sticking out to me for this public access scenario.
Can anyone confirm this either is or isn't a thing?
Thanks!
EDIT
To add some more detail to my project...
I am using Authentication, Firestore, and Cloud Functions. The only js package I will use is the Auth one, which will be loaded from a CDN (so I believe that doesn't apply to my question).
I want to give access to people to run the Cloud Functions locally. There is a pre-build step that I have made in vanilla Node that calls a Cloud Function (running locally), which uses the Firebase Admin SDK to call my Firestore database. I then write that response to a JSON file that my front end uses.
When my collaborators pull down the project, and install the Firebase CLI, when they try to serve the Cloud Functions locally, they get hit with a "no access" type of error. I was trying to resolve this by adding a service account into the /functions directory, but apparently that didn't help.
My collaborators don't need access to the console at all. I basically just need them to be able to run the Cloud Function locally (and make sure they can't access my production Firebase project).
I am happy to add more detail, but I kind of feel like I am just rambling. Thanks again.
There is no way to grant everyone contributor access to your Firebase console. You will either have add each individual user, or create your own dashboard that uses the API to show the relevant data.
I want to uncheck "Allow unauthenticated invocations" in my newly created cloud function. I can do it from console. But i want it to be done via command prompt(firebase deploy). I am looking out for some field/attribute which i can add while deploying the cloud function. Please help me with this issue.
Unfortunately, at the time of writing, the public invocation policy is hard coded into the firebase-tools CLI.
The code in question can be found in firebase-tools/src/deploy/functions/release.js.
I use Firebase for an Android project and I have some data into a database. I want to know if there is any possibility to save/make a back up to the structure of data. I ask this because somehow, I deleted the project and I had to do all again.
If you just deleted your project, you may still be able to restore it from the Resources pending deletion page in the Google Cloud Platform console with the process shown here.
If that doesn't work, reach out to Firebase support to see if they can help you recover it.
Note that both of these are dependent on the time that has passed since you deleted the project, so time is of the essence.