-
Notifications
You must be signed in to change notification settings - Fork 42
[#740] Waiting for available conversion hosts #807
[#740] Waiting for available conversion hosts #807
Conversation
</EmptyState> | ||
); | ||
|
||
CardEmptyState.propTypes = { |
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.
Similar blocks of code found in 11 locations. Consider refactoring.
<CardEmptyState | ||
iconType="pf" | ||
iconName="error-circle-o" | ||
emptyStateInfo={ |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
458867b
to
d646a03
Compare
.set('isRejectedCancelPlanRequest', false) | ||
.set('hasRequestedCancellation', [...state.hasRequestedCancellation, action.payload]); | ||
case `${V2V_CANCEL_PLAN_REQUEST}_FULFILLED`: { | ||
return state |
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.
Avoid too many return
statements within this function.
77d7d72
to
aa65469
Compare
response: { data: cancelRequestResponse } | ||
}); | ||
|
||
return store.dispatch(cancelPlanRequestAction(TRANSFORMATION_PLAN_REQUESTS_URL, '1')).then(() => { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
status: 404 | ||
}); | ||
|
||
return store.dispatch(cancelPlanRequestAction(TRANSFORMATION_PLAN_REQUESTS_URL, '1')).catch(() => { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
17ae9a7
to
29681a8
Compare
response: { data: cancelRequestResponse } | ||
}); | ||
|
||
return store.dispatch(action).then(() => { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
status: 404 | ||
}); | ||
|
||
return store.dispatch(action).catch(() => { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
9e6bdc0
to
33e2313
Compare
33e2313
to
593658c
Compare
* When a cancelation is initiated for a plan request, its cancelation_status attribute will change from null to a string value * requestsProcessingCancellation * Scopes disabling cancel button to a specific in progress card * Cancel button will remain disabled even after a full page refresh
593658c
to
392ef2e
Compare
Checked commits michaelkro/manageiq-v2v@e14c5d9~...392ef2e with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
Code looks good, I'm still working on testing it.
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.
Tested locally and it works great!
Nice work, especially abstracting out the card child components. And thanks for adding unit tests!
[#740] Waiting for available conversion hosts (cherry picked from commit ef4b7e1) https://bugzilla.redhat.com/show_bug.cgi?id=1640816
Hammer backport details:
|
Fixes #740
https://bugzilla.redhat.com/show_bug.cgi?id=1640816
Notes
cancelation_status
gets set to 'cancel_requested`, but does not progress to the other two states. Please see [699] Fix cancellation issues based on new backend changes #708MiqQueue.destroy_all
Screens