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-7670] - Add and handle ACLB Account Capability #10098

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Jan 23, 2024

Description 📝

This PR adds Akamai Cloud Load Balancer to account capabilities so that we can conditionally enable the feature for some users during the closed beta.

Changes 🔄

  • Adds Akamai Cloud Load Balancer to account capabilities

How to test 🧪

Prerequisites

  • Add the aclb tag to your account in the dev environment (ask me in Slack for more detailed instructions on how to do this)

Verification steps

In summary, ACLB should only be visible if the aglb feature flag is on or you have the aclb tag on your account

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

@bnussman-akamai bnussman-akamai added Work in Progress ACLB Relating to the Akamai Cloud Load Balancer labels Jan 23, 2024
@bnussman-akamai bnussman-akamai self-assigned this Jan 23, 2024
environmentVar: boolean,
capabilities: AccountCapability[]
) => {
return environmentVar || capabilities.indexOf(featureName) > -1;
Copy link
Member Author

Choose a reason for hiding this comment

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

capabilities.indexOf(featureName) > -1 is savage. I wonder if includes did not exist when this was written 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

I de-ramda-ifyed this and tried to make the comment more useful.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd been confused by isFeatureEnabled before too. My past, present, and future self thanks you for documenting this function for better clarity. 🙌🏼

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I de-ramda-ifyed this function, this test needed updating.

I tried to clean up this test and make it more straightforward. Previously it was saying all kinds of irrelevant stuff like EAP and beta_programs

@bnussman-akamai bnussman-akamai marked this pull request as ready for review January 23, 2024 22:15
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner January 23, 2024 22:15
@bnussman-akamai bnussman-akamai requested review from mjac0bs and carrillo-erik and removed request for a team January 23, 2024 22:15
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.

✅ Added the tag to my dev account and confirmed that the ACLB feature went from page not found ➡️ visible with the feature flags off and the account capability present.

Screenshot 2024-01-25 at 10 17 00 AM

Great self review, documentation improvements, and test coverage here too - thanks! 🚀

packages/manager/src/utilities/accountCapabilities.ts Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd been confused by isFeatureEnabled before too. My past, present, and future self thanks you for documenting this function for better clarity. 🙌🏼

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Jan 25, 2024
Copy link

github-actions bot commented Jan 25, 2024

Coverage Report:
Base Coverage: 81.16%
Current Coverage: 81.21%

);

return { isACLBEnabled };
};
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this, should be make this a pattern to follow?

Copy link
Member Author

Choose a reason for hiding this comment

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

I like it! It's a nice simple abstraction. I did it just incase we need to change how isACLBEnabled is determined

Copy link
Contributor

@jaalah-akamai jaalah-akamai left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-01-29 at 2 54 22 PM

@jaalah-akamai jaalah-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Jan 29, 2024
@bnussman-akamai bnussman-akamai merged commit a069c37 into linode:develop Jan 29, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACLB Relating to the Akamai Cloud Load Balancer Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants