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

NAS-128601 / 25.04 / Use undefined instead of EMPTY #10851

Merged
merged 5 commits into from
Oct 16, 2024
Merged

Conversation

RehanY147
Copy link
Contributor

Changes:

Minor code improvement

Testing:

Code review is enough

@RehanY147 RehanY147 requested a review from a team as a code owner October 12, 2024 11:03
@RehanY147 RehanY147 requested review from denysbutenko and removed request for a team October 12, 2024 11:03
@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title NAS-128601: Use undefined instead of EMPTY NAS-128601 / 25.04 / Use undefined instead of EMPTY Oct 12, 2024
@undsoft
Copy link
Collaborator

undsoft commented Oct 13, 2024

This is already in 24.10.0.

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

Also from the list of changes that needs to be brought from 24.10.1 – there is a check for gpu length that prevents user from removing all gpus from the vm.

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.92%. Comparing base (da35a60) to head (ae59683).
Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10851      +/-   ##
==========================================
+ Coverage   81.56%   81.92%   +0.35%     
==========================================
  Files        1585     1594       +9     
  Lines       54136    55589    +1453     
  Branches     5814     5816       +2     
==========================================
+ Hits        44158    45539    +1381     
- Misses       9978    10050      +72     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

For fix in .0, I've simply removed the if condition altogether. If this fix is not correct, then it needs to be fixed in .0 as well.
I do think that we could remove the if condition though.

@RehanY147 RehanY147 requested a review from undsoft October 16, 2024 13:59
@RehanY147 RehanY147 enabled auto-merge (squash) October 16, 2024 14:09
@RehanY147 RehanY147 merged commit 583373f into master Oct 16, 2024
11 checks passed
@RehanY147 RehanY147 deleted the NAS-128601-alt branch October 16, 2024 14:20
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants