Skip to content
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

Service detail screen - don't run automate methods #1551

Merged
merged 4 commits into from
Jul 11, 2019
Merged

Service detail screen - don't run automate methods #1551

merged 4 commits into from
Jul 11, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jun 28, 2019

When displaying the service detail screen (/services/:id), we're doing an API request for the details, including provision_dialog.

But, computing provision_dialog evaluates all the automate methods,
which is not useful when we don't display the dialog afterwards.

=> Added a runAutomate option to getService, and set it to false when on the screen.

(Ops-side, this was solved in ManageIQ/manageiq-ui-classic#5126, by reimplementing a readonly part of dialog-user to display the fields with values from options. SUI-side, I'm not seeing the dialog being displayed, so no need for that.)

Cc @eclarizio

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1695804

himdel added 4 commits June 28, 2019 11:16
(whitespace/comma change only)
Asking the API for `provision_dialog` evaluates any automate methods it needs to populate the dialog data.
That's not always desirable, parametrizing.

https://bugzilla.redhat.com/show_bug.cgi?id=1695804
@himdel
Copy link
Contributor Author

himdel commented Jul 2, 2019

@h-kataria , @AllenBW please take a look? :)

@miq-bot
Copy link
Member

miq-bot commented Jul 2, 2019

Checked commits https://github.com/himdel/manageiq-ui-service/compare/c3c44e32e250df9593c304006d590bdc1322120e~...1466c421ea4d9ddc35927024392ff5e7ff6d345d with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Member

@AllenBW AllenBW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! neat solution!

@h-kataria h-kataria added this to the Sprint 116 Ending Jul 22, 2019 milestone Jul 11, 2019
@h-kataria h-kataria merged commit 0c37f06 into ManageIQ:master Jul 11, 2019
@h-kataria h-kataria self-assigned this Jul 11, 2019
@himdel himdel deleted the automate-bz1695804 branch July 11, 2019 16:23
simaishi pushed a commit that referenced this pull request Oct 4, 2019
Service detail screen - don't run automate methods

(cherry picked from commit 0c37f06)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1755393
@simaishi
Copy link
Contributor

simaishi commented Oct 4, 2019

Hammer backport details:

$ git log -1
commit 4cd567893363b4890b9c266ad620f6fd6984aae7
Author: Harpreet Kataria <[email protected]>
Date:   Thu Jul 11 11:49:13 2019 -0400

    Merge pull request #1551 from himdel/automate-bz1695804
    
    Service detail screen - don't run automate methods
    
    (cherry picked from commit 0c37f061c9c23bbca57e3f22a167653e18b0c852)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1755393

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants