-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix #33630. Fix cannot set 0 as value on files_external through OCC command #33632
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 #33630. Fix cannot set 0 as value on files_external through OCC command #33632
Conversation
|
@skshetry are there acceptance tests for this yet? |
|
@phil-davis No, I don't think we have tested occ commands for any apps that are in core. Here's the broader issue: #33051. This doesn't seem to have any unit tests also. So, I'm thinking of covering the changed code, and needs to figure that out. I'll write acceptance tests for this also. |
0c83378 to
ae91714
Compare
Codecov Report
@@ Coverage Diff @@
## master #33632 +/- ##
============================================
+ Coverage 64.24% 64.3% +0.05%
Complexity 18293 18293
============================================
Files 1194 1194
Lines 69132 69132
Branches 1277 1277
============================================
+ Hits 44414 44454 +40
+ Misses 24346 24306 -40
Partials 372 372
Continue to review full report at Codecov.
|
ae91714 to
957bd46
Compare
957bd46 to
04a94e6
Compare
PVince81
left a comment
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.
👍
| $value = $input->getArgument('value'); | ||
| if ($value) { | ||
|
|
||
| if ($value !== null) { |
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.
classic PHP 🤦♂️
|
@skshetry nice find. Please backport this bugfix to stable10 |
|
Backport for |
Description
The OCC command didn't allow us to set value 0 due to the use of
if ($value)checks. Now, This PR modifies it to check for null value only.Related Issue
filesystem_check_changesto never through occ command #33630Motivation and Context
How Has This Been Tested?
Types of changes
Checklist:
Open tasks: