-
Notifications
You must be signed in to change notification settings - Fork 404
RI-6067 implemented reset/start/stop rdi functionality #3843
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
Conversation
redisinsight/api/test/api/rdi/pipeline/POST-rdi-id-pipeline-reset.test.ts
Fixed
Show fixed
Hide fixed
redisinsight/api/test/api/rdi/pipeline/POST-rdi-id-pipeline-start.test.ts
Fixed
Show fixed
Hide fixed
redisinsight/api/test/api/rdi/pipeline/POST-rdi-id-pipeline-stop.test.ts
Fixed
Show fixed
Hide fixed
export interface PipelineButtonProps { | ||
onClick: () => void; | ||
disabled: boolean; | ||
loading: boolean; |
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.
please, remove semicolons
// font-weight: 400 !important; | ||
// font-size: 14px !important; | ||
// line-height: 16.8px !important; | ||
// } |
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.
please, remove commented code
// font-weight: 400 !important; | ||
// font-size: 14px !important; | ||
// line-height: 16.8px !important; | ||
// } |
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.
please, remove commented code
// font-weight: 400 !important; | ||
// font-size: 14px !important; | ||
// line-height: 16.8px !important; | ||
// } |
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.
the same
@@ -0,0 +1,26 @@ | |||
.stopPipelineBtn { |
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.
if we use the same styles for several buttons, we can move it to one file
{pageLoading && ( | ||
<div className={styles.cover}> | ||
<EuiLoadingSpinner size="xl" /> | ||
</div> |
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.
please, add tabulation
|
||
export function stopPipelineAction( | ||
rdiInstanceId: string, | ||
callback: (result: IActionPipelineResultProps) => void, |
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.
it's better to split to onSuccess and onFinish
|
||
export function startPipelineAction( | ||
rdiInstanceId: string, | ||
callback: (result: IActionPipelineResultProps) => void, |
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.
the same
|
||
export function resetPipelineAction( | ||
rdiInstanceId: string, | ||
callback: (result: IActionPipelineResultProps) => void, |
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.
the same
resetPipelineFailure: (state, { payload }: PayloadAction<string>) => { | ||
state.reset.loading = false | ||
state.reset.error = payload | ||
}, |
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.
a lot similar actions, could you think how to have one? Maybe add some variables (isStarted)? Do we use all these errors at the same time?
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.
approve FE
approve BE |
…rdi-pipelines add reset/stop pipeline tests
487057b
No description provided.