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

[#607] Edit an existing RHV migration plan #620

Merged
merged 27 commits into from
Sep 24, 2018

Conversation

mturley
Copy link
Contributor

@mturley mturley commented Aug 30, 2018

This is for #607, but will not close it yet because it is disabled until backend support is ready.
Closes #646.

  • Add kebab menu with edit option to plans not started list
  • Figure out how to open the plan wizard in edit mode for a specific plan
  • Open the plan wizard in edit mode
  • Pre-fill selections on the General step
  • Pre-fill selections on the VMs step if discovery mode selected
  • Load full path for VMs being pre-filled (@AparnaKarve implemented API support for this in virtual column for parent blue folder path with excluded non-display folders manageiq#17976)
  • Warn before overriding VMs if CSV mode selected
  • Pre-fill selections on the Advanced Options step
  • When the plan wizard is submitted in edit mode, use edit API endpoint instead of creating a new plan
  • Disable changing the mapping when editing a plan

@mturley mturley self-assigned this Aug 30, 2018
@miq-bot miq-bot added the wip label Aug 30, 2018
@mturley mturley force-pushed the edit-plan branch 4 times, most recently from 0cf2eb4 to c4e9376 Compare September 4, 2018 15:19
@@ -39,3 +39,23 @@ export const csvParseErrorAction = errMsg => dispatch => {
payload: errMsg
});
};

const _queryPrefilledVmsActionCreator = ids => dispatch => {
Copy link

Choose a reason for hiding this comment

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

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

@mturley mturley force-pushed the edit-plan branch 4 times, most recently from 18c6a54 to 13da006 Compare September 7, 2018 16:45
@@ -39,3 +39,23 @@ export const csvParseErrorAction = errMsg => dispatch => {
payload: errMsg
});
};

const _queryPreselectedVmsActionCreator = ids => dispatch => {
Copy link

Choose a reason for hiding this comment

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

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

@miq-bot
Copy link
Member

miq-bot commented Sep 10, 2018

This pull request is not mergeable. Please rebase and repush.

const { postPlansUrl, postMigrationPlansAction, plansBody, planSchedule } = this.props;

postMigrationPlansAction(postPlansUrl, plansBody, planSchedule);
const { postPlansUrl, postMigrationPlansAction, putPlansUrl, putMigrationPlansAction, plansBody, planSchedule, editingPlan } = this.props;
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 9 locations. Consider refactoring.

const { postPlansUrl, postMigrationPlansAction, plansBody, planSchedule } = this.props;

postMigrationPlansAction(postPlansUrl, plansBody, planSchedule);
const { postPlansUrl, postMigrationPlansAction, putPlansUrl, putMigrationPlansAction, plansBody, planSchedule, editingPlan } = this.props;
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 10 locations. Consider refactoring.

return this.renderError(__('Error Creating Migration Plan'), errorMessage, hidePlanWizardAction);
} else if (isPuttingPlans) {
return this.renderSpinner(__('Saving Migration Plan...'), __('Please wait while the migration plan is saved.'));
} else if (isRejectedPuttingPlans) {
Copy link

Choose a reason for hiding this comment

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

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

const { postPlansUrl, postMigrationPlansAction, plansBody, planSchedule } = this.props;

postMigrationPlansAction(postPlansUrl, plansBody, planSchedule);
const {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 10 locations. Consider refactoring.

@miq-bot
Copy link
Member

miq-bot commented Sep 10, 2018

This pull request is not mergeable. Please rebase and repush.

@mturley mturley force-pushed the edit-plan branch 2 times, most recently from 2cb1b56 to 39fba8d Compare September 11, 2018 16:45
@mturley
Copy link
Contributor Author

mturley commented Sep 11, 2018

As soon as @AparnaKarve's PR ManageIQ/manageiq#17976 is merged, I'll be able to fix the path column in the VM step, and then this PR will be ready for review.

@miq-bot
Copy link
Member

miq-bot commented Sep 24, 2018

Checked commits mturley/manageiq-v2v@96fe78c~...af17a37 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. 🍪

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.

Nice work 🏆

Copy link
Contributor

@AparnaKarve AparnaKarve left a comment

Choose a reason for hiding this comment

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

Looks great @mturley
and seems to work nicely with the WIP backend PR

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

Successfully merging this pull request may close these issues.

Change the title of the migration plan wizard
5 participants