Skip to content

Make firebase init for FDC work better with Spark projects. - #7666

Merged
rosalyntan merged 5 commits into
masterfrom
rosalyntan.spark
Sep 17, 2024
Merged

rosalyntan merged 5 commits into
masterfrom
rosalyntan.spark

Conversation

@rosalyntan

@rosalyntan rosalyntan commented Sep 17, 2024 •

Copy link
Copy Markdown
Member

Description

For projects without billing enabled, do not enable the compute.googleapis.com API nor provision a CloudSQL instance during firebase init.

Scenarios Tested

  • firebase init with Spark project
  • firebase init with Blaze project

Sample Commands

firebase init with Spark project
Screenshot 2024-09-17 at 11 10 34 AM

@rosalyntan
rosalyntan marked this pull request as ready for review September 17, 2024 18:22
const prefix = "dataconnect";
// These are the APIs that can be enabled without a billing account.
await ensure(projectId, api.dataconnectOrigin(), prefix);
await ensure(projectId, api.cloudSQLAdminOrigin(), prefix);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh, TIL that this API doesn't require billing

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah I was a little surprised by that haha

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

const prefix = "dataconnect";
// These are the APIs that can be enabled without a billing account.
await ensure(projectId, api.dataconnectOrigin(), prefix);
await ensure(projectId, api.cloudSQLAdminOrigin(), prefix);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

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.

3 participants