-
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
DialogUser - use DialogData.outputConversion before submit and refresh #6291
Conversation
@miq-bot remove_label wip (still depends on ui-components though) |
Restarted a travis job. |
The test failure will stay here until we have the ui-components change in - it fails because the function is not there yet. ( |
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.
As mentioned, ManageIQ/ui-components#422 needs to be merged first, but 👍on this
right now, when submitting a service dialog, we simply take the dialogData object, convert to JSON and send to the API. To allow for output conversions, adding a DialogData.outputConversion method, which should return the dialogData in a suitable format. (Right now, all this really means is that it converts Dates to strings before JSON stringification.) https://bugzilla.redhat.com/show_bug.cgi?id=1744413
… unify with SUI also, we can get rid of the API angular promise to Promise conversion with the $scope.$apply() removal in dialogUser.ts in ui-components https://bugzilla.redhat.com/show_bug.cgi?id=1744413
(rebased on top of #6371, should be mergable) |
(for ivanchuk: depends on #6373) |
…a being a string and a surprising promise mock
Checked commits https://github.com/himdel/manageiq-ui-classic/compare/8261b82b980d16226fe94668126fc52f80b3ecf9~...d46b0ad3b9b52e53492e5bc15e40fbabb55f3f92 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
DialogUser - use DialogData.outputConversion before submit and refresh (cherry picked from commit c5c9ebd) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1768456
Ivanchuk backport details:
|
Hammer version in #6415 |
Backported to hammer via #6415 |
Depends on ManageIQ/ui-components#422
Right now, when submitting a service dialog,
we simply take the dialogData object, convert to JSON and send to the API.
To allow for output conversions, adding a DialogData.outputConversion method,
which should return the dialogData in a suitable format.
(Right now, all this really means is that it converts Dates to strings before JSON stringification.)
And the same needs to happen in
refreshField
for dynamic fields.https://bugzilla.redhat.com/show_bug.cgi?id=1744413
@miq-bot add_label bug, ivanchuk/yes