Skip to content

Print instructions to assist FDC Onboard Flow#7802

Merged
fredzqm merged 49 commits intomasterfrom
fz/init-flow
Oct 7, 2024
Merged

Print instructions to assist FDC Onboard Flow#7802
fredzqm merged 49 commits intomasterfrom
fz/init-flow

Conversation

@fredzqm
Copy link
Copy Markdown
Contributor

@fredzqm fredzqm commented Oct 7, 2024

Description

Print instructions to follow through in the Spark plan upgrade CUJ in the local getting start guide.

Customer could follow through the whole journey even if they aren't reading documentation. CLI (and VS Code buttons) is self-contained.

Scenarios Tested

Spark Project init => upgrade => init again => deploy

In a Spark Project, run init. (no prompt at all)
Screenshot 2024-10-07 at 3 05 17 PM

In a Spark Project, run deploy
Screenshot 2024-10-07 at 3 08 57 PM

After upgrade plan, run init again (accept all defaults)
Screenshot 2024-10-07 at 3 23 30 PM

Spark Project init => upgrade => create service in console => init again => deploy

Same first two steps as above.
After creating service in console, run init to pull down configs. (accept all defaults)

Screenshot 2024-10-07 at 3 41 56 PM

Blaze Project init => deploy

In a Blaze plan, run init. (accept all defaults)
Screenshot 2024-10-07 at 3 25 55 PM

Deploy works afterwards. If CSQL is still being created, you see

Error: HTTP Error: 400, The request was invalid: Cloud SQL instance is in state PENDING_CREATE (expect RUNNABLE)

}
}
} else {
info = await promptForService(info);
Copy link
Copy Markdown
Contributor Author

@fredzqm fredzqm Oct 7, 2024

Choose a reason for hiding this comment

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

We should ask this question and csql ones after "Would you like to configure your backend resources now?"

Base automatically changed from fz/sdk-init to master October 7, 2024 20:51
@fredzqm fredzqm changed the title Fz/init flow FDC Onboard Flow!! Oct 7, 2024
@fredzqm fredzqm changed the title FDC Onboard Flow!! Print instructions to assist FDC Onboard Flow Oct 7, 2024
@fredzqm fredzqm marked this pull request as ready for review October 7, 2024 22:46
// doSetup is split into 2 phases - ask questions and then actuate files and API calls based on those answers.
export async function doSetup(setup: Setup, config: Config): Promise<void> {
const info = await askQuestions(setup);
const isBillingEnabled = setup.projectId ? await checkBillingEnabled(setup.projectId) : false;
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.

Optional, canbe done later: Checking billing status is probably appropriate to do in init/index.ts and then passed around in setup, since it won't change from product to product.

Copy link
Copy Markdown
Contributor Author

@fredzqm fredzqm Oct 7, 2024

Choose a reason for hiding this comment

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

You are talking about making it accessible in Setup for all products, right?

Yeah, that can be optimized later.

@fredzqm fredzqm merged commit 1085394 into master Oct 7, 2024
@fredzqm fredzqm deleted the fz/init-flow branch October 7, 2024 23:12
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