Skip to content

upcoming:[DI-24445] - Remove or condition when empty - #11967

Merged
venkymano-akamai merged 6 commits into
linode:developfrom
ankita-akamai:feature/updatexfilter
Apr 8, 2025
Merged

upcoming:[DI-24445] - Remove or condition when empty#11967
venkymano-akamai merged 6 commits into
linode:developfrom
ankita-akamai:feature/updatexfilter

Conversation

@ankita-akamai

@ankita-akamai ankita-akamai commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

Description 📝

Remove or condition from xfilter when it is empty.

Changes 🔄

  • Removed the or condition from xfilter when it is empty in filtering of /instances call

Target release date 🗓️

22 April 2025

Preview 📷

Before After
image image

How to test 🧪

Verification steps

image

  • Go to metrics
  • Open Networks tab(cmd+op+I) in chrome dev tools, select dashboard(choose linode dashboard), region, tags.
  • For the linode/instances call fired just after this change, see the Xfilter header composition: It will be of form : {"+and":[{"region":"x"}],"+or":[{"tags":"y"},{"tags":"z"}]}.
  • Unselect all tags, Xfilter will be of form: {"+and":[{"region":"x"}]}
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

@ankita-akamai
ankita-akamai requested a review from a team as a code owner April 4, 2025 06:12
@ankita-akamai
ankita-akamai requested review from bill-akamai and mjac0bs and removed request for a team April 4, 2025 06:12
@ankita-akamai
ankita-akamai requested review from bnussman-akamai and removed request for mjac0bs April 4, 2025 06:13

@bill-akamai bill-akamai left a comment

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.

Thanks @ankita-akamai

For the linode/instances call fired just after this change, see the Xfilter header composition: It will be of form : {"+and":[{"region":"x"}],"+or":[{"tags":"y"},{"tags":"z"}]}.

This checked out for me. I saw {"+and":[{"region":"us-central"}],"+or":[{"tags":"test1"}]}

Unselect all tags, Xfilter will be of form: {"+and":[{"region":"x"}]}

I didn't see it show as this format. For me, it was {"region":"us-central"} - is that incorrect ❓

@ankita-akamai

ankita-akamai commented Apr 7, 2025

Copy link
Copy Markdown
Contributor Author

Thanks @ankita-akamai

For the linode/instances call fired just after this change, see the Xfilter header composition: It will be of form : {"+and":[{"region":"x"}],"+or":[{"tags":"y"},{"tags":"z"}]}.

This checked out for me. I saw {"+and":[{"region":"us-central"}],"+or":[{"tags":"test1"}]}

Unselect all tags, Xfilter will be of form: {"+and":[{"region":"x"}]}

I didn't see it show as this format. For me, it was {"region":"us-central"} - is that incorrect ❓

@bill-akamai this api call is coming from other component at the same time, it is correct as well. Just after refreshing the page, in mocks, you will be able to see the second instances call in networks tab as what i mentioned in screenshot. The reason why just after unselecting all tags, you were not able to see this call was because it was already fired a while ago when you first selected the region before selecting the tags and now you are getting data from cache. You should scroll in the networks call to see it or easier way is what i showed in video.

Screen.Recording.2025-04-07.at.9.49.38.PM.mov

@github-project-automation github-project-automation Bot moved this from Review to Approved in Cloud Manager Apr 7, 2025
@linode-gh-bot

Copy link
Copy Markdown

Cloud Manager UI test results

🎉 540 passing tests on test run #5 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing540 Passing4 Skipped100m 49s

@venkymano-akamai

Copy link
Copy Markdown
Contributor

Merging since all checks passed

@venkymano-akamai
venkymano-akamai merged commit d70dc96 into linode:develop Apr 8, 2025
@github-project-automation github-project-automation Bot moved this from Approved to Merged in Cloud Manager Apr 8, 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.

5 participants