-
Notifications
You must be signed in to change notification settings - Fork 659
Bug 2001617: Disallow forward jumps for BucketClass Flow #10001
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
Skipping CI for Draft Pull Request. |
@rexagod: This pull request references Bugzilla bug 2001617, which is invalid:
Comment In response to this:
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. |
/bugzilla refresh |
@rexagod: This pull request references Bugzilla bug 2001617, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla ([email protected]), skipping review request. In response to this:
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. |
/test frontend |
/test ceph-storage-plugin |
frontend/packages/ceph-storage-plugin/src/components/bucket-class/create-bc.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/ceph-storage-plugin/src/components/bucket-class/create-bc.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/ceph-storage-plugin/src/components/bucket-class/create-bc.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/ceph-storage-plugin/src/components/bucket-class/create-bc.tsx
Outdated
Show resolved
Hide resolved
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.
const idIndexPlusOne = Object.values(CreateStepsBC).indexOf(CreateStepsBC[id]) + 1; | |
const newStepHigherBound = | |
stepHigherBound < idIndexPlusOne ? idIndexPlusOne : stepHigherBound; | |
setStepHigherBound(newStepHigherBound); | |
}} | |
setStepsReached(StepIndexMap[id]); |
If id is the upcoming step then we might have to add some guard for corner cases.
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.
I just tested out the changes and it seems to work well. I think we are good here since onNext
will only be called for n-1
steps and onSave
will be called for the last one.
|
Disallow forward jumps in the BucketClass Wizard navigation sidebar so as to make sure that the user does not go any further than they are supposed to without completing the previous steps first.
/test frontend |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, rexagod 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 |
@rexagod: All pull requests linked via external trackers have merged: Bugzilla bug 2001617 has been moved to the MODIFIED state. In response to this:
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. |
Disallow forward jumps in the BucketClass Wizard navigation sidebar so
as to make sure that the user does not go any further than they are
supposed to without completing the previous steps first.