Skip to content

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

Merged
rosalyntan merged 5 commits intomasterfrom
rosalyntan.spark
Sep 17, 2024
Merged

Make firebase init for FDC work better with Spark projects.#7666
rosalyntan merged 5 commits intomasterfrom
rosalyntan.spark

Conversation

@rosalyntan
Copy link
Copy Markdown
Member

@rosalyntan rosalyntan commented Sep 17, 2024

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

@rosalyntan rosalyntan merged commit b88dc57 into master Sep 17, 2024
@rosalyntan rosalyntan deleted the rosalyntan.spark branch September 17, 2024 19:01
rosalyntan added a commit that referenced this pull request Sep 17, 2024
rosalyntan added a commit that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants