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

add number increment input for sync interval #493

Conversation

SanjalKatiyar
Copy link
Collaborator

Comment on lines +61 to +62
const syncTime = isNaN(+target.value) ? minSyncTime : Number(target.value);
const normalizedSyncTime = syncTime < minSyncTime ? minSyncTime : syncTime;
Copy link
Contributor

Choose a reason for hiding this comment

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

The minimum value won't allow Null, also there is no change of syncTime < minSyncTime. Is these two conditions required?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

there are 2 ways to change value:

  1. increment or decrement using button, in this case onMinus/onPlus will be called.
  2. by directly typing in the value in the numberInput box, in this case onChange will be called. But, if user types negative value or less than 0 it will not allow that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can remove point 2. if u think it is not needed... then user can only increase value by 1 at a time...
using increment or decrement button.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes second one is not required, first one is fine

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 14, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: GowthamShanmugam, SanjalKatiyar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@SanjalKatiyar
Copy link
Collaborator Author

/cherry-pick release-4.12

@openshift-cherrypick-robot

@SanjalKatiyar: once the present PR merges, I will cherry-pick it on top of release-4.12 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@SanjalKatiyar
Copy link
Collaborator Author

/cherry-pick release-4.12-compatibility

@openshift-cherrypick-robot

@SanjalKatiyar: once the present PR merges, I will cherry-pick it on top of release-4.12-compatibility in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.12-compatibility

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

7 similar comments
@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@GowthamShanmugam
Copy link
Contributor

/test odf-console-e2e-aws

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@SanjalKatiyar
Copy link
Collaborator Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit 0b492eb into red-hat-storage:master Oct 19, 2022
9 checks passed
@openshift-cherrypick-robot

@SanjalKatiyar: new pull request created: #505

In response to this:

/cherry-pick release-4.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-cherrypick-robot

@SanjalKatiyar: new pull request created: #506

In response to this:

/cherry-pick release-4.12-compatibility

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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.

None yet

4 participants