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

Change how FDC determines whether creating a CSQL free trial is allowed. #8065

Merged
merged 4 commits into from
Dec 27, 2024

Conversation

rosalyntan
Copy link
Member

@rosalyntan rosalyntan commented Dec 14, 2024

Description

Currently, the CLI determines whether it can create a CSQL free trial instance by querying for the presence of the free trial metric. However, some projects (mostly internal testing projects) have been allowlisted to have unlimited free trial instances, and creating a CSQL instance via the CLI fails for these projects if they previously had a free trial instance.

This PR updates the provisioning logic use the backend error for determining whether a free trial instance can be created, instead of just the presence of the free trial metric.

Scenarios Tested

  • firebase deploy for a non-allowlisted project that previously had a free trial instance
  • firebase deploy for an allowlisted project that previously had a free trial instance

Sample Commands

@rosalyntan rosalyntan marked this pull request as ready for review December 23, 2024 19:39
@yuchenshi yuchenshi requested review from fredzqm and removed request for yuchenshi December 23, 2024 19:47
Copy link
Contributor

@fredzqm fredzqm left a comment

Choose a reason for hiding this comment

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

Thanks @rosalyntan for the change!

This makes sense. So firebase init will continue to use the metric to determine whether or not to show the free trial option, but firebase deploy will try it first.

@rosalyntan rosalyntan enabled auto-merge (squash) December 23, 2024 20:50
@rosalyntan rosalyntan merged commit 774d3f0 into master Dec 27, 2024
41 of 46 checks passed
@rosalyntan rosalyntan deleted the rosalyntan.csql branch December 27, 2024 18:05
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