Skip to content

Conversation

@pmakode-akamai
Copy link
Contributor

@pmakode-akamai pmakode-akamai commented May 20, 2025

Description 📝

An alternative way to ensure alerts are assigned only during the Linode creation process, with RHF integrated to support Create Linode form flow

Note

Changes 🔄

  • Added a support to assign alert definitions (especially beta Alerts) to a Linode during creation
  • Integrated RHF to support the Create Linode form flow when assigning Beta Alerts
  • Added Beta ACLP alerts property to the CreateLinodeRequest type in apiv4 package
  • Added alerts in CreateLinodeSchema
  • Merged Beta ACLP Alerts edit & create logic from Merge edit & create logic in action table pmakode-akamai/manager#1

Target release date 🗓️

N/A

Preview 📷

Alerts Mode (Create Linode Flow) Preview
Addition Options Section Screenshot 2025-06-03 at 6 20 34 PM
Legacy Alerts Screenshot 2025-06-03 at 6 20 51 PM
Beta Alerts Screenshot 2025-06-03 at 6 21 15 PM

How to test 🧪

Prerequisites

  • Enable MSW and the ACLP Integration feature flag

Verification steps

  • Verify the request payload for both legacy and beta alerts in the Create Linode flow:
    • Ensure the alerts object is included only when the ACLP beta mode preference toggle is selected (and that it contains the correct enabled alert Ids for both system and user alerts)
    • Ensure the alerts object is undefined or not present or excluded in legacy mode
  • Confirm that the Alerts behavior in the Create Linode flow meets the product requirements
  • Ensure all tests pass
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

@pmakode-akamai pmakode-akamai self-assigned this May 20, 2025
@pmakode-akamai pmakode-akamai added the ACLP Integration CI (Cloud Interfaces) Support for CC (Core Compute) CloudPulse Integration label May 20, 2025
@pmakode-akamai pmakode-akamai added the Linodes Dealing with the Linodes section of the app label May 20, 2025
@pmakode-akamai pmakode-akamai changed the title poc: [M3-9996] - Assigning alert definitions to a Linode during creation poc: [M3-9996, M3-10048] - Assigning alert definitions to a Linode during creation Jun 2, 2025
pmakode-akamai and others added 3 commits June 3, 2025 15:25
* Merge edit & create logic in action table

* make components flexible

* update handler func

* type correction

* optimize state updates

* remove unused func

* update type

* refactor & cleanup
@ankita-akamai
Copy link
Contributor

ankita-akamai commented Jun 5, 2025

A bit concerned about the headers here - Alerts header seems duplicated, even the info icon will get replaced with Beta in upcoming prs so it will have two Alerts [Beta] headers: (If it is something which in-progress or not finalized, then it is ok to have as of now). cc @nikhagra-akamai @venkymano-akamai

image

@jcallahan-akamai jcallahan-akamai removed the request for review from carrillo-erik June 5, 2025 17:41
@jaalah-akamai
Copy link
Contributor

Overall looks good to me, pending @nikhagra-akamai and @venkymano-akamai review

@pmakode-akamai pmakode-akamai changed the title poc: [M3-9996, M3-10048, M3-10059, M3-10069] - Assigning alert definitions to a Linode during creation poc: [M3-9996, M3-10048] - Assigning alert definitions to a Linode during creation Jun 10, 2025
Copy link
Contributor

@nikhagra-akamai nikhagra-akamai left a comment

Choose a reason for hiding this comment

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

looks good to me

@pmakode-akamai pmakode-akamai changed the title poc: [M3-9996, M3-10048] - Assigning alert definitions to a Linode during creation poc: [M3-9996, M3-10048] - Assigning alert definitions (beta) to a Linode during creation Jun 11, 2025
@jdamore-linode
Copy link
Contributor

Confirm that the Alerts behavior in the Create Linode flow meets the product requirements

@pmakode-akamai can you please elaborate on what these product requirements are?

@pmakode-akamai
Copy link
Contributor Author

Confirm that the Alerts behavior in the Create Linode flow meets the product requirements

can you please elaborate on what these product requirements are?

@jdamore-linode Yea, Create Flow logic is like:

  • Create Linode Page:
    • The Alerts option includes a toggle to switch between Legacy and Beta modes
    • In Legacy mode, the alerts are read-only
    • In Beta mode, the alerts are editable
  • Behavior on Create Linode:
    • When creating a Linode in Legacy mode, no alerts object is passed
    • When creating a Linode in Beta mode, the alerts object is passed with the enabled system and user alert IDs

@pmakode-akamai pmakode-akamai added the Add'tl Approval Needed Waiting on another approval! label Jun 13, 2025
@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Jun 13, 2025
@pmakode-akamai pmakode-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Jun 16, 2025
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 659 passing tests on test run #21 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing659 Passing4 Skipped113m 33s

@pmakode-akamai pmakode-akamai merged commit 6a4e3ba into linode:develop Jun 16, 2025
35 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ACLP Integration CI (Cloud Interfaces) Support for CC (Core Compute) CloudPulse Integration Approved Multiple approvals and ready to merge! Linodes Dealing with the Linodes section of the app Proof of Concept

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants