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

Use Contract for Preflight Checks #3928

Merged
merged 9 commits into from
Nov 6, 2023
Merged

Use Contract for Preflight Checks #3928

merged 9 commits into from
Nov 6, 2023

Conversation

sdess09
Copy link
Contributor

@sdess09 sdess09 commented Nov 3, 2023

POR-

What does this PR do?

Refactor Front end to use Contract

@sdess09 sdess09 changed the title Contract preflight Use Contract preflight Nov 3, 2023
@sdess09 sdess09 changed the title Use Contract preflight Use Contract for Preflight Checks Nov 3, 2023
}
};

const getStatus = () => {
const getStatus = (): JSX.Element | "Provisioning is still in progress..." | undefined => {
Copy link
Contributor

Choose a reason for hiding this comment

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

option to also just do React.ReactNode, might be cleaner.

if (!props.clusterId) {
markStepStarted("pre-provisioning-check-started");
await markStepStarted("pre-provisioning-check-started");
Copy link
Contributor

Choose a reason for hiding this comment

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

can do void for these markStepStarted if they're just analytics updates and you don't actually want to await them

dashboard/src/components/ProvisionerSettings.tsx Outdated Show resolved Hide resolved
@sdess09 sdess09 merged commit 22b0059 into master Nov 6, 2023
9 checks passed
@sdess09 sdess09 deleted the contract-preflight branch November 6, 2023 22:41
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