Skip to content
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

fix: missed prefix function usage in resource panel #2612

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

ironAiken2
Copy link
Contributor

@ironAiken2 ironAiken2 commented Aug 7, 2024

TL;DR

Fixes an issue with the _prefixFormat method default parameter and optimizes CUDA GPU description formatting.

What changed?

  • Fixed default parameter value in _prefixFormat method from '0;' to '0'.
  • Optimized the CUDA GPU description formatting using the _prefixFormat helper method.

How to test?

  • Verify that the _prefixFormat method functions correctly with default and custom parameters.
  • Ensure that CUDA GPU descriptions are formatted as expected in the resource monitor component.

Why make this change?

The change corrects the default parameter value in the _prefixFormat method and streamlines the GPU description formatting for consistency and clarity.


Checklist: (if applicable)

  • Mention to the original issue
  • 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

Copy link

graphite-app bot commented Aug 7, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ironAiken2 and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added the size:XS ~10 LoC label Aug 7, 2024
@ironAiken2 ironAiken2 requested a review from yomybaby August 7, 2024 06:47
@ironAiken2 ironAiken2 marked this pull request as ready for review August 7, 2024 06:47
@ironAiken2 ironAiken2 requested a review from agatha197 August 7, 2024 06:56
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Aug 7, 2024

Merge activity

### TL;DR

Fixes an issue with the `_prefixFormat` method default parameter and optimizes CUDA GPU description formatting.

### What changed?

- Fixed default parameter value in `_prefixFormat` method from `'0;'` to `'0'`.
- Optimized the CUDA GPU description formatting using the `_prefixFormat` helper method.

### How to test?

- Verify that the `_prefixFormat` method functions correctly with default and custom parameters.
- Ensure that CUDA GPU descriptions are formatted as expected in the resource monitor component.

### Why make this change?

The change corrects the default parameter value in the `_prefixFormat` method and streamlines the GPU description formatting for consistency and clarity.

---

<!--
Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes,
and how it affects the users and other developers.
-->

**Checklist:** (if applicable)

- [ ] Mention to the original issue
- [ ] 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
@yomybaby yomybaby force-pushed the fix/missed-prefix-func-usage-in-resource-panel branch from 529e29d to 1206203 Compare August 7, 2024 07:03
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM

@graphite-app graphite-app bot merged commit 1206203 into main Aug 7, 2024
5 checks passed
@graphite-app graphite-app bot deleted the fix/missed-prefix-func-usage-in-resource-panel branch August 7, 2024 07:05
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.

3 participants