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

Update the Firestore init() flow to handle non-default databases #7655

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

trippedout
Copy link
Contributor

Description

Update the Firestore init() flow to handle non-default databases, by allowing the user to input the name of the database they want to initialize.

This is a catch for older projects created in Cloud, which have a (default) non-Firestore Native database in their projects before they add Firebase. New projects shouldn't be affected by this change.

The only other thought I had was maybe it would be better to have input of database name during init by default but defaulting to (default) with option to enter your own without first hitting a 404.

Scenarios Tested

Projects created with older (default) database, deleting that and creating a new Firestore database with a different name.

Sample Commands

Nothing new, just additional ask for database name if (default) doesnt exist, which would fail out without reason previously.

…allowing the user to input the name of the database they want to initialize. This is a catch for older projects created in Cloud, which have a (default) non-Firestore Native database in their projects before they add Firebase.
…allowing the user to input the name of the database they want to initialize. This is a catch for older projects created in Cloud, which have a (default) non-Firestore Native database in their projects before they add Firebase.
Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

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

Thanks a ton for implementing this!

@joehan joehan merged commit 4d4c57d into firebase:master Sep 16, 2024
11 checks passed
pr-Mais pushed a commit that referenced this pull request Sep 19, 2024
* Update the Firestore init() flow to handle non-default databases, by allowing the user to input the name of the database they want to initialize. This is a catch for older projects created in Cloud, which have a (default) non-Firestore Native database in their projects before they add Firebase.

* Update the Firestore init() flow to handle non-default databases, by allowing the user to input the name of the database they want to initialize. This is a catch for older projects created in Cloud, which have a (default) non-Firestore Native database in their projects before they add Firebase.

* Changelog

---------

Co-authored-by: joehan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants