-
Notifications
You must be signed in to change notification settings - Fork 360
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 bug where calling getItem without name text would cause error #2898
Conversation
@miq-bot add_label bug, gaprindashvili/yes, gtls |
@karelhala We probably should not support numeric ids at all... this will work only until the number is high enough not to work. We can only supports strings. |
..the only way this can work reliably is that both Otherwise, this wont work with ids in regions with large number. So I suggest dropping the type check, and simply looking at both |
6c4b458
to
943f49e
Compare
@himdel sound reasonable. Dropped the typecheck and identificator is now check for long_id and id. Although I would rather keep simple comparison |
@karelhala Agreed on (In the mean time, I talked with QE and seems like they don't use a region value that high, so it will probably work even if they do send a number.) ((That said, we may need QE to test even with larger region numbers at some point, so maybe we will still have to add a check later.)) Another thing I noticed, |
@karelhala Maybe you forgot to push? I'm still seeing that |
6ec80b1
to
472c608
Compare
472c608
to
893cd98
Compare
Checked commit karelhala@893cd98 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Merged, LGTM now :)
Agreed, this could be useful :). |
Fix bug where calling getItem without name text would cause error (cherry picked from commit 6bae823)
Gaprindashvili backport details:
|
Fixes error when calling report data API with id would throw error on items without name
When performing call
sendDataWithRx({"action": "get_item", "controller": "reportDataController", "data": ["10r1107"]})
on items without name it would throw error. This PR fixes such issue and enables to callget_item
with full IDsendDataWithRx({"action": "get_item", "controller": "reportDataController", "data": [10000000001107]})