Connecting to the emulator w/o project ID #11454
Labels
api: firestore
Issues related to the Firestore API.
external
This issue is blocked on a bug with the actual product.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
When working with GCP locally, the team is using a Dockerized emulator (https://firebase.google.com/docs/emulator-suite). I'm forced to specify the project ID. I want to be able to use the emulator w/o tying to a specific Project ID because I have different solutions that require the use of the emulator (different collections, the database could be the same).
Describe alternatives you've considered
Building emulator image per solution and passing the
ProjectId
. Unfortunately, that means I cannot run more than one .NET solution simultaneously, as ports required by containers will conflict. And it means we can't have an image that any project can use. Instead, each project needs to build its own image.Additional context
It shouldn't matter what
ProjectId
is when working with an emulator. Ideally, omittingProjectId
fromFirestoreDbBuilder
(null
, empty string, or a special value such asemulator
) should imply using a local emulator.The thread started in StackOverflow with @jskeet.
The text was updated successfully, but these errors were encountered: