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

Bug 1836028: fix traffic splitting required fields #5451

Merged

Conversation

nemesis09
Copy link
Contributor

@nemesis09 nemesis09 commented May 15, 2020

Fixes:
https://issues.redhat.com/browse/ODC-3798

Analysis / Root cause:
In Traffic split modal split field has placeholder 100
required fields are not marked with asterisk(*) in traffic modal

Solution Description:
add support for required label() in multicolumnfield headers
remove placeholder for traffic split
mark the required fields with asterisk(
)

Screens:
Screenshot from 2020-05-15 06-21-37

Code Coverage:
Screenshot from 2020-05-15 05-47-18

Browser Conformance:

  • Firefox
  • Chrome
  • Safari
  • Edge

@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label May 15, 2020
@openshift-ci-robot
Copy link
Contributor

@nemesis09: This pull request references Bugzilla bug 1836028, 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.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1836028: fix traffic splitting required fields

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-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label May 15, 2020
@openshift-ci-robot openshift-ci-robot added the component/shared Related to console-shared label May 15, 2020
@openshift-ci-robot
Copy link
Contributor

@nemesis09: This pull request references Bugzilla bug 1836028, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1836028: fix traffic splitting required fields

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.

1 similar comment
@openshift-ci-robot
Copy link
Contributor

@nemesis09: This pull request references Bugzilla bug 1836028, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1836028: fix traffic splitting required fields

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.

@nemesis09
Copy link
Contributor Author

/assign @invincibleJai

@karthikjeeyar
Copy link
Contributor

@nemesis09 If i am not wrong, the issue is about not just adding the required field header but also to add yup validations :) I think the submit buttons should be disabled untill all the required fields are filled and we must show inline validation on the input change.

validation-missing

@invincibleJai
Copy link
Member

invincibleJai commented May 15, 2020

@karthikjeeyar Currently without yup validation for form's it shows error if required field are not provided i.e split/Revision is empty as in

Screenshot 2020-05-15 at 6 29 10 PM

So there two options

  1. don't have validation for required field , show required field (*) header and based on above error from server to user as above
  2. Just add validation for required , that way we won't enable Save till required values are provided and other validation we can leave it on Serverside

@serenamarie125 @christianvogt

<>
{header.name}
{header.required && (
<span className="odc-multi-column-field__header--required-label">*</span>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<span className="odc-multi-column-field__header--required-label">*</span>
<span className="odc-multi-column-field__header--required-label" aria-hidden="true">*</span>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@jeff-phillips-18
Copy link
Member

/lgtm
This implements 1. above. I think 2. can be done as an add on in the future.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 18, 2020
@nemesis09
Copy link
Contributor Author

/test images

@invincibleJai
Copy link
Member

invincibleJai commented May 19, 2020

/lgtm

@nemesis09 Thanks , verified locally works as expected.

check on point 2 above #5451 (comment) , we can even have it as separate issue if need be

cc @beaumorley @serenamarie125

@invincibleJai
Copy link
Member

/assign @christianvogt

@christianvogt
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianvogt, invincibleJai, jeff-phillips-18, nemesis09

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 19, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 7c9ff7b into openshift:master May 20, 2020
@openshift-ci-robot
Copy link
Contributor

@nemesis09: All pull requests linked via external trackers have merged: openshift/console#5451. Bugzilla bug 1836028 has been moved to the MODIFIED state.

In response to this:

Bug 1836028: fix traffic splitting required fields

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.

@spadgett spadgett added this to the v4.5 milestone May 22, 2020
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/knative Related to knative-plugin component/shared Related to console-shared lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants