Skip to content

Conversation

@agatha197
Copy link
Contributor

@agatha197 agatha197 commented Jan 6, 2026

Resolves #4952 (FR-1876)

Improved Resource Slot Filtering Logic

This PR refines the filtering logic for resource slots in the MyResourceWithinResourceGroup component. Previously, slots were hidden when both usingCurrent and remainingCurrent values 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:

  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

Copilot AI review requested due to automatic review settings January 6, 2026 10:23
@github-actions github-actions bot added the size:XS ~10 LoC label Jan 6, 2026
Copy link
Contributor Author

agatha197 commented Jan 6, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

Copy link
Contributor

Copilot AI left a 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 used and remaining values were 0 or non-finite (Infinity)

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

Coverage report for ./react

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

@agatha197 agatha197 requested a review from jopemachine January 6, 2026 10:25
@agatha197 agatha197 force-pushed the fix_FR-1876_/remove-unnecessary-filter branch from c64ad7c to c777403 Compare January 6, 2026 10:39
@agatha197 agatha197 requested a review from yomybaby January 6, 2026 10:41
@agatha197 agatha197 force-pushed the fix_FR-1876_/remove-unnecessary-filter branch from c777403 to 4162ce2 Compare January 7, 2026 04:16
Copilot AI review requested due to automatic review settings January 7, 2026 04:16
Copy link
Contributor

Copilot AI left a 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.

@agatha197 agatha197 force-pushed the fix_FR-1876_/remove-unnecessary-filter branch from 4162ce2 to d43b6ed Compare January 7, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS ~10 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In My Resources in RG Panel, GPU not displayed when remaining and using resources are 0.

3 participants