Skip to content

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented Sep 6, 2021

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 6, 2021

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Sep 6, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 6, 2021

@rexagod: This pull request references Bugzilla bug 2001617, which is invalid:

  • expected the bug to target the "4.10.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 2001617: Disallow forward jumps for BucketClass Flow

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-ci openshift-ci bot requested review from bipuladh and shyRozen September 6, 2021 22:47
@openshift-ci openshift-ci bot added the component/ceph Related to ceph-storage-plugin label Sep 6, 2021
@rexagod
Copy link
Member Author

rexagod commented Sep 6, 2021

/bugzilla refresh

@openshift-ci openshift-ci bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Sep 6, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 6, 2021

@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
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

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:

/bugzilla refresh

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-ci openshift-ci bot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 6, 2021
@rexagod rexagod marked this pull request as ready for review September 7, 2021 15:32
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 7, 2021
@rexagod
Copy link
Member Author

rexagod commented Sep 7, 2021

/test frontend

@rexagod
Copy link
Member Author

rexagod commented Sep 7, 2021

/test ceph-storage-plugin

Comment on lines 301 to 304
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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.

Copy link
Member Author

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.

@rexagod
Copy link
Member Author

rexagod commented Sep 17, 2021

Pushing changes for https://bugzilla.redhat.com/show_bug.cgi?id=2001617#c1 in a bit. Pushed.

@rexagod
Copy link
Member Author

rexagod commented Sep 17, 2021

2021-09-17-141706_167x33_scrot

2021-09-17-141715_193x42_scrot

@openshift-ci openshift-ci bot added the kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated label Sep 17, 2021
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.
@bipuladh
Copy link
Contributor

/test frontend

@bipuladh
Copy link
Contributor

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 20, 2021

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 20, 2021
@openshift-merge-robot openshift-merge-robot merged commit 1e2d7a3 into openshift:master Sep 20, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 20, 2021

@rexagod: All pull requests linked via external trackers have merged:

Bugzilla bug 2001617 has been moved to the MODIFIED state.

In response to this:

Bug 2001617: Disallow forward jumps for BucketClass Flow

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
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/ceph Related to ceph-storage-plugin kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants