-
Notifications
You must be signed in to change notification settings - Fork 78
fix(FR-1876): remove unnecessary filter for resource usage values in MyResourceWithinResourceGroup #4951
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
base: main
Are you sure you want to change the base?
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
Pull request overview
This PR fixes a bug in resource display by removing an unnecessary filter that was hiding valid accelerator resource states from users.
Key Changes:
- Removed filter logic that excluded accelerators when both
usedandremainingvalues were 0 or non-finite (Infinity)
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.91% | 589/11988 |
| 🔴 | Branches | 4.47% (+0% 🔼) |
377/8425 |
| 🔴 | Functions | 2.75% | 101/3676 |
| 🔴 | Lines | 4.74% (+0% 🔼) |
555/11706 |
Test suite run success
173 tests passing in 13 suites.
Report generated by 🧪jest coverage report action from d43b6ed
c64ad7c to
c777403
Compare
c777403 to
4162ce2
Compare
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
…MyResourceWithinResourceGroup
4162ce2 to
d43b6ed
Compare

Resolves #4952 (FR-1876)
Improved Resource Slot Filtering Logic
This PR refines the filtering logic for resource slots in the
MyResourceWithinResourceGroupcomponent. Previously, slots were hidden when bothusingCurrentandremainingCurrentvalues were zero or not finite. The updated logic now only hides resource slots when both values are not finite numbers, allowing slots with zero values to be displayed.Checklist: