Skip to content

upcoming:[DI-26661]: Add new filter - 'linode region' for firewalls#12704

Merged
venkymano-akamai merged 17 commits intolinode:developfrom
ankita-akamai:feature/linode_region_filter
Aug 19, 2025
Merged

upcoming:[DI-26661]: Add new filter - 'linode region' for firewalls#12704
venkymano-akamai merged 17 commits intolinode:developfrom
ankita-akamai:feature/linode_region_filter

Conversation

@ankita-akamai
Copy link
Copy Markdown
Contributor

@ankita-akamai ankita-akamai commented Aug 14, 2025

Description 📝

Add new filter - 'linode region' for firewalls

Changes 🔄

  • Add linode region filter in filterconfig.ts.
  • Refactor CloudPulseRegionSelect.tsx to make it flexible for different filterKeys
  • Add useFetchOptions.ts hook for computation of linode regions based on dimension label.
  • Add utils and update test cases.

Scope 🚢

Upon production release, changes in this PR will be visible to:

  • All customers
  • Some customers (e.g. in Beta or Limited Availability)
  • No customers / Not applicable

Target release date 🗓️

26 aug 2025

Preview 📷

Before After
image image
image image

How to test 🧪

Verification steps

(How to verify changes)

(In devCloud)

  • Navigate to /metrics page.
  • Select 'Firewalls Dashboard'.
  • See if new filter 'Linode Region' is coming, verify if it is dependent on 'Firewalls' filter and if it's region id is supported (this can be checked in /regions api call under monitors, cloud firewall should come as a capability, it should also belong to one of the linodes which are listed as 'entity_ids' in the firewalls which we selected, check the response in '/networking/firewalls call)
  • After these mandatory filters are selected, check if /metrics call gets fired with the payload of following type -
image
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 tests and CI checks are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@ankita-akamai ankita-akamai self-assigned this Aug 14, 2025
@ankita-akamai ankita-akamai marked this pull request as ready for review August 14, 2025 17:13
@ankita-akamai ankita-akamai requested review from a team as code owners August 14, 2025 17:14
@ankita-akamai ankita-akamai requested review from dmcintyr-akamai, dwiley-akamai and hana-akamai and removed request for a team August 14, 2025 17:14
@dmcintyr-akamai
Copy link
Copy Markdown
Contributor

i took the liberty of updating your branch bc i fixed the broken test in linode-storage.spec.ts, and it passes now. other is still failing for some reason.

dashboard,
isServiceAnalyticsIntegration,
preferences,
dependentFilters: resource_ids?.length
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

will just the dependentFilterReference.current, won't work

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we need this for contextual view

Copy link
Copy Markdown
Contributor

@venkymano-akamai venkymano-akamai left a comment

Choose a reason for hiding this comment

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

Approving pending comments, @ankita-akamai lets try to see if these works and fix

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Aug 18, 2025
@ankita-akamai
Copy link
Copy Markdown
Contributor Author

ankita-akamai commented Aug 18, 2025

Thanks, I resolved above comments @venkymano-akamai !

Copy link
Copy Markdown
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.

Code looks good 👍

@ankita-akamai
Copy link
Copy Markdown
Contributor Author

ankita-akamai commented Aug 18, 2025

Enhancement: Covered one more use case by updating xfilter for /instances call. @nikhagra-akamai Please verify once.

@linode-gh-bot
Copy link
Copy Markdown
Collaborator

Cloud Manager UI test results

🎉 730 passing tests on test run #8 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing730 Passing4 Skipped122m 32s

@venkymano-akamai
Copy link
Copy Markdown
Contributor

All checks are passing, enough approvals and code looks good

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants