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

upcoming: [M3-8032] – Add Encrypted/Not Encrypted status to Node Pool table #10480

Conversation

dwiley-akamai
Copy link
Contributor

@dwiley-akamai dwiley-akamai commented May 16, 2024

Description πŸ“

Add encryption status indication to the Node Pool table.

Changes πŸ”„

  • Add 3 new icons to src/assets/icons
  • Destructure disk_encryption in NodePoolsDisplay.tsx, pass it down through to NodeTable.tsx
  • Update some code patterns in NodePool.tsx

Target release date πŸ—“οΈ

5/28/24

Preview πŸ“·

Encrypted Unencrypted
Screenshot 2024-05-16 at 1 09 30β€―PM Screenshot 2024-05-16 at 1 09 59β€―PM

How to test πŸ§ͺ

The easiest way to test would be to turn on the mocks and navigate to an LKE Details page, since the mocks I added cover the encrypted and unencrypted cases. Otherwise, you'd need your account in alpha to have a "legacy" cluster & pool to see the unencrypted variant.

Verification steps

  • Navigate to an LKE Details page with the devtools open. You should observe a GET request to pools?page_size=200
    • See the disk_encryption field for each pool. It should correspond with what's shown in the UI for each.
    • Confirm the Disk Encryption status looks good in mobile view also

As an Author I have 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

@dwiley-akamai dwiley-akamai added the Linode Disk Encryption (LDE) Relating to LDE project label May 16, 2024
@dwiley-akamai dwiley-akamai self-assigned this May 16, 2024
@dwiley-akamai dwiley-akamai marked this pull request as ready for review May 21, 2024 20:13
@dwiley-akamai dwiley-akamai requested a review from a team as a code owner May 21, 2024 20:13
@dwiley-akamai dwiley-akamai requested review from mjac0bs and abailly-akamai and removed request for a team May 21, 2024 20:13
Copy link

github-actions bot commented May 21, 2024

Coverage Report: βœ…
Base Coverage: 81.64%
Current Coverage: 81.64%

Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

With mocks on, I:

  • Verified that the node pools with disk_encryption enabled/disabled status displays the expected UI text and icons.
  • Verified that encryption status isn't visible if the feature flag is off.

What's the plan for test coverage of LDE changes?

@dwiley-akamai
Copy link
Contributor Author

What's the plan for test coverage of LDE changes?

The earlier tickets in the epic had mentions of tests but looks like some of the later ones are missing it. I'll go back and update those tickets. In the meantime, I added unit test coverage in the most recent commit

Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

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

Confirming display and styling, looks good!

Left comments for code cleanup which should be a very quick fix

Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Thanks for addressing feedback. I'm approving pending:

  • Alban's feedback is addressed
  • Tests pass - on this last run, the second runner didn't run at all, probably due to some Jenkins issue because prior to last commit, CI was passing

packages/manager/src/components/DiskEncryption/utils.tsx Outdated Show resolved Hide resolved
@abailly-akamai abailly-akamai self-requested a review May 22, 2024 16:25
Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the changes! approving granted all tests pass 🚒

@dwiley-akamai dwiley-akamai merged commit 1c5e926 into linode:develop May 23, 2024
18 checks passed
@dwiley-akamai dwiley-akamai deleted the M3-8032-encrypted-status-node-pool-table branch May 23, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linode Disk Encryption (LDE) Relating to LDE project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants