Skip to content

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

Merged
joehan merged 3 commits intofirebase:masterfrom
trippedout:master
Sep 16, 2024
Merged

Update the Firestore init() flow to handle non-default databases#7655
joehan merged 3 commits intofirebase:masterfrom
trippedout:master

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
Member

@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
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