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 1966275: Fix Pipeline Parameters in Modals accept empty string defaults #9085

Merged

Conversation

andrewballantyne
Copy link
Contributor

Slimmed down version of: #9074
(the functionality without the proper moving of the utility & type differences between the two releases)

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 31, 2021

@andrewballantyne: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

Fix Pipeline Parameters in Modals accept empty string defaults

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 31, 2021
@andrewballantyne andrewballantyne changed the title Fix Pipeline Parameters in Modals accept empty string defaults Bug 1966275: Fix Pipeline Parameters in Modals accept empty string defaults May 31, 2021
@openshift-ci openshift-ci bot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label May 31, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 31, 2021

@andrewballantyne: This pull request references Bugzilla bug 1966275, which is invalid:

  • expected the bug to target the "4.7.z" release, but it targets "4.7.0" instead
  • expected dependent Bugzilla bug 1951043 to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE), but it is MODIFIED 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 1966275: Fix Pipeline Parameters in Modals accept empty string defaults

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 added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label May 31, 2021
@openshift-ci openshift-ci bot requested a review from karthikjeeyar May 31, 2021 19:05
@andrewballantyne
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 31, 2021

@andrewballantyne: This pull request references Bugzilla bug 1966275, which is invalid:

  • expected dependent Bugzilla bug 1951043 to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE), but it is MODIFIED 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:

/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.

@andrewballantyne
Copy link
Contributor Author

/retest

@karthikjeeyar
Copy link
Contributor

In 4.7, While starting the pipeline with no default param, it opens the start modal with start button enabled even if the user haven't entered any value. If user hasn't entered anything in required field, then start button should be disabled.

@andrewballantyne
Copy link
Contributor Author

In 4.7, While starting the pipeline with no default param, it opens the start modal with start button enabled even if the user haven't entered any value. If user hasn't entered anything in required field, then start button should be disabled.

It seems to do nothing with my code (happens on 4.7 without my PR + with a more mirrored version of the 4.8 code), but I am unsure what actually is fixing this in 4.8. The yup errors are not catching value of undefined until you touch the param. 🤔

I think we are going to have to go with what this is. The issue predates my work here and isn't exposed anymore or less by my changes so I don't think it's worth anymore time to try and figure this out. If you have a better idea of what could be causing it @karthikjeeyar - I'd be happy to investigate more.

@andrewballantyne
Copy link
Contributor Author

andrewballantyne commented Jun 2, 2021

Thanks for the suggestion @karthikjeeyar - Completely forgot about that hook for Formik. It probably got implemented somewhere in this form for another reason in 4.8 and thus was solving the issues for the whole modal.

EDIT: Once I knew what I was looking for, sure enough that's it. 4.7 code vs 4.8 code (added in #8355)

@karthikjeeyar
Copy link
Contributor

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 2, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, karthikjeeyar

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 the lgtm Indicates that a PR is ready to be merged. label Jun 2, 2021
@openshift-bot
Copy link
Contributor

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 3, 2021

@openshift-bot: This pull request references Bugzilla bug 1966275, which is invalid:

  • expected dependent Bugzilla bug 1951043 to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE), but it is ON_QA 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:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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-bot
Copy link
Contributor

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 4, 2021

@openshift-bot: This pull request references Bugzilla bug 1966275, 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.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.z) matches configured target release for branch (4.7.z)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 1951043 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 1951043 targets the "4.8.0" release, which is one of the valid target releases: 4.8.0
  • bug has dependents

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (gamore@redhat.com), skipping review request.

In response to this:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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 added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jun 4, 2021
@ecordell ecordell added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jun 11, 2021
@openshift-merge-robot openshift-merge-robot merged commit 3b38d91 into openshift:release-4.7 Jun 11, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 11, 2021

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

Bugzilla bug 1966275 has been moved to the MODIFIED state.

In response to this:

Bug 1966275: Fix Pipeline Parameters in Modals accept empty string defaults

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.7.z milestone Jun 14, 2021
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. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. 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

6 participants