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

Print instructions to assist FDC Onboard Flow #7802

Merged
merged 49 commits into from
Oct 7, 2024
Merged

Print instructions to assist FDC Onboard Flow #7802

merged 49 commits into from
Oct 7, 2024

Conversation

fredzqm
Copy link
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)

@@ -314,13 +316,14 @@ async function checkExistingInstances(
});
}
}
} else {
info = await promptForService(info);
Copy link
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
@@ -74,22 +74,29 @@ const defaultSchema = { path: "schema.gql", content: SCHEMA_TEMPLATE };

// 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
Contributor

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
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
40 of 41 checks passed
@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