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

feat(machines): Add kernel crash dump checkbox to deploy form MAASENG-3759 #5539

Conversation

ndv99
Copy link
Contributor

@ndv99 ndv99 commented Oct 1, 2024

Done

  • Added kernel crash dump checkbox to machine deploy form

QA steps

  • Add the following to your .env.local:
VITE_APP_KERNEL_CRASH_DUMP_ENABLED = true
  • Go to /machines and open the deploy form
  • Ensure the kernel crash dump checkbox is present and matches the spec
  • Run the test suite for DeployFormFields (src/app/machines/components/MachineForms/MachineActionFormWrapper/DeployForm/DeployFormFields/DeployFormFields.test.tsx) and ensure it passes*

Fixes

Resolves MAASENG-3759

Screenshots

image

Notes

*This is because these tests are set to skip if the feature flag is not present, which is the case in CI.

@webteam-app
Copy link

@ndv99 ndv99 changed the title feat(machines): Add kernel crash dump checkbox to deply form MAASENG-3759 feat(machines): Add kernel crash dump checkbox to deploy form MAASENG-3759 Oct 2, 2024
Copy link
Collaborator

@tmerten tmerten left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for adding first conditional tests already

one minor nag on the docs link before final approve

@@ -708,4 +711,54 @@ describe("DeployFormFields", () => {
screen.queryByRole("checkbox", { name: "Register as MAAS KVM host" })
).not.toBeInTheDocument();
});

test.runIf(kernelCrashDumpEnabled)(
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ty

Copy link
Collaborator

@tmerten tmerten left a comment

Choose a reason for hiding this comment

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

lgtm

@ndv99 ndv99 merged commit 5f0f63e into canonical:main Oct 9, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants