manager icon indicating copy to clipboard operation
manager copied to clipboard

upcoming: [DI-25592] - Added EntityScopeSelect component for create alert page

Open nikhagra-akamai opened this issue 6 months ago • 1 comments

Description 📝

Added an EntityScopeSelect dropdown for alert create & edit page.

Changes 🔄

List any change(s) relevant to the reviewer.

  1. EntityScopeSelect component is added
  2. Added scope property in alert related types
  3. Added a ServiceAlert interface in cloudpulse types.ts
  4. Renamed ServiceTypes interface to Service for better naming convention.

Target release date 🗓️

July 1st

Preview 📷

Include a screenshot or screen recording of the change.

:lock: Use the Mask Sensitive Data setting for security.

:bulb: Use <video src="" /> tag when including recordings in table.

Before After
Screenshot 2025-06-13 at 6 20 55 PM Screenshot 2025-06-13 at 6 20 45 PM
Screenshot 2025-06-13 at 6 21 06 PM Screenshot 2025-06-13 at 6 20 36 PM
Screenshot 2025-06-13 at 6 21 18 PM Screenshot 2025-06-13 at 6 20 21 PM

How to test 🧪

  1. Switch as mock user and got to alerts from mega menu
  2. Click on create alert button that will take you to create alert page
  3. At line 213 after severity select in CreateAlertDefinition.tsx, add the below code to show entity scope select <AlertEntityScopeSelect name="scope" serviceType={serviceTypeWatcher} />
  4. You can select service type and based on that scope select dropdown will behave.
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

nikhagra-akamai avatar Jun 13 '25 13:06 nikhagra-akamai

@cpathipa @hasyed-akamai pls review & provide second approval on this PR. I've couple of more dependent PRs to raise

nikhagra-akamai avatar Jun 20 '25 11:06 nikhagra-akamai

@hasyed-akamai thanks for another approval

nikhagra-akamai avatar Jun 23 '25 12:06 nikhagra-akamai

merging the PR, as test failures are unrelated

nikhagra-akamai avatar Jun 23 '25 14:06 nikhagra-akamai

Cloud Manager UI test results

:small_red_triangle: 2 failing tests on test run #12 ↗︎

:x: Failing:white_check_mark: Passing:arrow_right_hook: Skipped:clock1: Duration
2 Failing659 Passing5 Skipped126m 43s

Details

Failing Tests
SpecTest
:x:resize-linode.spec.tsCloud Manager Cypress Tests→resize linode » resize linode
:x:object-storage.e2e.spec.tsCloud Manager Cypress Tests→object storage end-to-end tests » object storage end-to-end tests

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/linodes/resize-linode.spec.ts,cypress/e2e/core/objectStorage/object-storage.e2e.spec.ts"

linode-gh-bot avatar Jun 24 '25 03:06 linode-gh-bot