change: [M3-10174] - VM Host Maintenance API Updates
Waiting on: https://github.com/linode/manager/pulls/hkhalil-akamai
Description ๐
Changes to API spec
Changes ๐
id=>slugname=>labelslug = 1 | 2;=>slug = 'migrate' | 'power_off_on';type: 'migrate' | 'power-off/on';=>type: 'migrate' | 'power_off_on';maintenance_policy_id=>maintenance_policymaintenance_policynow using the slug for possible values'migrate' | 'power_off_on'
Target release date ๐๏ธ
6/24
Preview ๐ท
| Before | After |
|---|---|
| ๐ท | ๐ท |
How to test ๐งช
Prerequisites
(How to setup test environment)
- ...
- ...
Reproduction steps
(How to reproduce the issue, if applicable)
- [ ] ...
- [ ] ...
Verification steps
(How to verify changes)
- [ ] ...
- [ ] ...
Author Checklists
As an Author, to speed up the review process, I considered ๐ค
๐ Doing a self review โ Our contribution guidelines ๐ค Splitting feature into small PRs โ Adding a changeset ๐งช Providing/improving test coverage ๐ Removing all sensitive information from the code and PR description ๐ฉ Using a feature flag to protect the release ๐ฃ Providing comprehensive reproduction steps ๐ Providing or updating our documentation ๐ Scheduling a pair reviewing session ๐ฑ Providing mobile support โฟ Providing accessibility support
- [ ] I have read and considered all applicable items listed above.
As an Author, before moving this PR from Draft to Open, I confirmed โ
- [ ] All unit tests are passing
- [ ] TypeScript compilation succeeded without errors
- [ ] Code passes all linting rules
Followup TODO:
- [x] https://github.com/linode/manager/pull/12334#discussion_r2152548239
- [x] https://github.com/linode/manager/pull/12334#discussion_r2152463920
Looking into src/features/VPCs/VPCDetail/VPCSubnetsTable.test.tsx which passes locally ๐
@bnussman-akamai did you have a more elegant way to address the type errors than casting? TypeScript is not properly inferring the form types in the Linode Create flow, LinodeCreateFormValues.
@bnussman-akamai did you have a more elegant way to address the type errors than casting? TypeScript is not properly inferring the form types in the Linode Create flow,
LinodeCreateFormValues.
~~I think I can actually resolve this with individual watch calls without combining them~~
https://github.com/linode/manager/blob/a8aba003bfba544552bf15261c38e70b7599e684/packages/manager/src/features/Linodes/LinodeCreate/Region.tsx#L60-L63:
const selectedLinode = useWatch({ control, name: 'linode' });
const selectedImage = useWatch({ control, name: 'image' });
Cloud Manager UI test results
:tada: 662 passing tests on test run #9 โ๏ธ
| :x: Failing | :white_check_mark: Passing | :arrow_right_hook: Skipped | :clock1: Duration |
0 Failing | 662 Passing | 4 Skipped | 146m 39s |
Closing this branch to start fresh. I feel there were things that maybe got introduced. New PR has all these issues fixed.
Edit: See https://github.com/linode/manager/pull/12417/files#r2162865311
https://github.com/linode/manager/pull/12417