Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Add skeleton for Configure Conversion Host wizard steps #863

Merged
merged 3 commits into from
Jan 29, 2019

Conversation

mturley
Copy link
Contributor

@mturley mturley commented Jan 28, 2019

Part of the Conversion Hosts UI feature BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1693339

This is the first part of #855 and will enable us to develop the individual wizard steps in parallel.

This does not include any Redux reducers/actions for the individual steps, but creates an empty index.js container for each step so we can add those things as needed.

this.setState({ activeStepIndex });
};

goToStepId = id => {
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 2 locations. Consider refactoring.

<Button bsStyle="default" className="btn-cancel" onClick={hideConversionHostWizard} disabled={onFinalStep}>
{__('Cancel')}
</Button>
<Button bsStyle="default" onClick={this.prevStep} disabled={onFirstStep || onFinalStep}>
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 3 locations. Consider refactoring.

}
};

render() {
Copy link

Choose a reason for hiding this comment

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

Function render has 40 lines of code (exceeds 25 allowed). Consider refactoring.

Copy link
Contributor

@michaelkro michaelkro left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@miq-bot
Copy link
Member

miq-bot commented Jan 29, 2019

Checked commits mturley/manageiq-v2v@d1f61ff~...0394921 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@mturley
Copy link
Contributor Author

mturley commented Jan 29, 2019

@michaelkro if you get a chance can you merge this? I may add unit tests later for the wizard container, but I'm not sure how useful they'll be at this stage and they may need to change anyway. The individual wizard steps will get more useful unit tests.

@michaelkro michaelkro merged commit f6ecbbc into ManageIQ:master Jan 29, 2019
@mturley mturley deleted the conversion-host-wizard-skeleton branch January 29, 2019 22:41
@mturley mturley added bz Issues filed by QE or having a BZ and removed bugzilla needed labels Feb 27, 2019
@mturley mturley added v1.2 and removed v1.1 labels Mar 25, 2019
simaishi pushed a commit that referenced this pull request Apr 5, 2019
Add skeleton for Configure Conversion Host wizard steps

(cherry picked from commit f6ecbbc)

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

simaishi commented Apr 5, 2019

Hammer backport details:

$ git log -1
commit 04e0bea269cec47673ff43fc499e88bb819c0f2b
Author: Michael Ro <mikerodev@gmail.com>
Date:   Tue Jan 29 16:39:31 2019 -0500

    Merge pull request #863 from mturley/conversion-host-wizard-skeleton
    
    Add skeleton for Configure Conversion Host wizard steps
    
    (cherry picked from commit f6ecbbcd880d27cba767aea70531509b8d138cf8)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1696423

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

Successfully merging this pull request may close these issues.

4 participants