-
Notifications
You must be signed in to change notification settings - Fork 356
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
Dialog Editor, ExplorerPresenter - make sure all ids are strings in javascript #6388
Dialog Editor, ExplorerPresenter - make sure all ids are strings in javascript #6388
Conversation
for regions > 9006, our bigint ids become floats in javascript, and can be off-by-one. This makes sure dialog editor works in those regions. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1769968
…nless nil Most of the code setting `presenter[:record_id]` or `:parent_id` is not doing the `.to_s` conversion necessary for javascript, so ExplorerPresenter should do it. (Also removes the now extra .to_s from the 2 calls that were actually right before.) Fixes toolbar Edit button not working on a service dialog detail screen. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1769968
@miq-bot remove_label wip |
Cc @martinpovolny (ExplorerPresenter id changes :)) |
Checked commits https://github.com/himdel/manageiq-ui-classic/compare/f162d770786f02d05c9ce35d6b27ebb41bdad4ea~...4dfad619acff1fcfa08215c350a6d24a83f5b314 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Dialog Editor, ExplorerPresenter - make sure all ids are strings in javascript (cherry picked from commit 747eb57) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1772932
Hammer backport details:
|
Dialog Editor, ExplorerPresenter - make sure all ids are strings in javascript (cherry picked from commit 747eb57) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1772933
Ivanchuk backport details:
|
for regions > 9006, our bigint ids become floats in javascript, and can be off-by-one. (Original issue: #1405)
This makes sure the dialog editor works in those regions:
dialog_id_action
change fixes the result of therequestDialogId
dialog editor controller method, controlling where to load the dialog data fromExplorerPresenter
change fixes the toolbar (Edit) button failing (becuase it usesManageIQ.record.recordId
, which was set to a number otherwise)to_s
because it's handled in ExplorerPresenter now)Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1769968