-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 systemtatgs get,create and update API #34604
Conversation
Fix systemtags get, create and update API. Due to recent changes made to add static tags, the API changes are not compatible with the older version. Hence to make them work as before, minor changes are made. Signed-off-by: Sujith H <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #34604 +/- ##
============================================
+ Coverage 65.22% 65.23% +<.01%
- Complexity 18434 18440 +6
============================================
Files 1203 1203
Lines 69816 69825 +9
Branches 1280 1280
============================================
+ Hits 45540 45549 +9
Misses 23904 23904
Partials 372 372
Continue to review full report at Codecov.
|
3 similar comments
Codecov Report
@@ Coverage Diff @@
## master #34604 +/- ##
============================================
+ Coverage 65.22% 65.23% +<.01%
- Complexity 18434 18440 +6
============================================
Files 1203 1203
Lines 69816 69825 +9
Branches 1280 1280
============================================
+ Hits 45540 45549 +9
Misses 23904 23904
Partials 372 372
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34604 +/- ##
============================================
+ Coverage 65.22% 65.23% +<.01%
- Complexity 18434 18440 +6
============================================
Files 1203 1203
Lines 69816 69825 +9
Branches 1280 1280
============================================
+ Hits 45540 45549 +9
Misses 23904 23904
Partials 372 372
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34604 +/- ##
============================================
+ Coverage 65.22% 65.23% +<.01%
- Complexity 18434 18440 +6
============================================
Files 1203 1203
Lines 69816 69825 +9
Branches 1280 1280
============================================
+ Hits 45540 45549 +9
Misses 23904 23904
Partials 372 372
Continue to review full report at Codecov.
|
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.
👍 fine for now
if ($userEditable === null) { | ||
$userEditable = 1; | ||
} elseif (\is_bool($userEditable)) { | ||
$userEditable = (int)$userEditable; |
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.
it's a bit weird to check whether it's a boolean and then convert it to an int.
I also still wonder why we used ints below instead of boolean
@sharidas please backport |
Backport PR: #34610 |
Fix systemtags get, create and update API.
Due to recent changes made to add static tags,
the API changes are not compatible with the
older version. Hence to make them work as
before, minor changes are made.
Signed-off-by: Sujith H [email protected]
Description
Because of recent changes made to add static tags, there were changes made to
getTag
,createTag
andupdateTag
. As a result they were not compatible with the older versions of oC. For example: when any of these methods were called by the user without last argumentuserEditable
, the results were not as expected. The user gets result which were incorrect. Hence this change would help to rectify this problem. The API's should not break.Related Issue
Motivation and Context
Fix the API breakage that happened in the systemtags for
getTag
,createTag
andupdateTag
methods.How Has This Been Tested?
And the output captured for the values in
$tag
:Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: