-
Notifications
You must be signed in to change notification settings - Fork 389
[DI-26394] - Add new flag to control services types in alerts and metrics #12671
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
[DI-26394] - Add new flag to control services types in alerts and metrics #12671
Conversation
Co-authored-by: Nikhil Agrawal <165884194+nikhagra-akamai@users.noreply.github.com>
…ags for Alert and Metrics features
|
@pmakode-akamai I removed all instances of Please check and let me know if you would like to use 'enabled' property for all use cases except betachip for which |
I Updated flag use in linodeCreate and linodeDetail based on the input. @pmakode-akamai . |
pmakode-akamai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @ankita-akamai! Looks good to me ✅ - just left a couple of minor comments.
Once UX agrees on the new feature chip for ACLP alerts based on the LD flag for GA, we could consider moving/reusing this util across the app in a follow-up PR
| { | ||
| chip: | ||
| aclpBetaServices?.linode?.metrics && | ||
| aclpServices?.linode?.metrics?.beta && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might be a special case (same for the one below) - should we show the beta chip only when the aclp services feature flag is enabled (i.e., enabled takes precedence over beta)? What do you think?
Screen.Recording.2025-08-13.at.12.32.37.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, good catch. I will put combined check in this file at both the places.
| metrics: { | ||
| beta: false, | ||
| enabled: false, | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Looks like aclpBetaServices should be updated to aclpServices in the describe block at L462
…mai/manager into feature/HandleAclpServicesFlag
|
I see that after my above flag combination change(recent commit - 37bc95c), alert-edit.spec is failing, I'm looking into it. |
| beforeEach(() => { | ||
| mockAppendFeatureFlags({ | ||
| aclpBetaServices: { | ||
| aclpServices: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most of the tests in this file are failing now. these tests are following the logic in packages/shared/src/hooks/useIsLinodeAclpSubscribed.ts. are they failing bc we are moving from beta to GA stage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed, there was some issue after recent commit for which i commented above. They are passing now. @dmcintyr-akamai
…mai/manager into feature/HandleAclpServicesFlag
Cloud Manager UI test results🔺 3 failing tests on test run #9 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: pnpm cy:run -s "cypress/e2e/core/objectStorageMulticluster/object-storage-objects-multicluster.spec.ts,cypress/e2e/core/notificationsAndEvents/qemu-reboot-upgrade-notice.spec.ts,cypress/e2e/core/linodes/smoke-linode-landing-table.spec.ts" |
|||||||||||||||||||||||


Description 📝
Handle new flag to control services types in alerts and metrics in ui.
Changes 🔄
CloudPulseDashboardSelect.tsx,AlertListing.tsx,ServiceTypeSelect.tsx,AlertReusableComponent.tsxto filter the service types based on truthy props in the new feature flag -aclpServices.Flag Description:
aclpServices:enabledprop controls if service needs to be shown in UI andbetaprop signifies if service is in beta phase.Scope 🚢
Upon production release, changes in this PR will be visible to:
Target release date 🗓️
26 August 2025
Preview 📷
- Metrics:
Alerts
Listing Select:

Listing alerts:

Create:

How to test 🧪
Verification steps
Network LoadBalancercoming up in all of these service select autocompletes, but you wouldn't see that in this pr branch as we have not yet addedNetwork LoadBalancerin our LD flag. This is expected and can be used to check if flag is working properly.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
As an Author, before moving this PR from Draft to Open, I confirmed ✅