Navigation Menu

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

Explicitly touch pipeline builder task fields when workspaces are changed #9130

Conversation

rottencandy
Copy link
Contributor

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

Analysis / Root cause:
Formik fields do not echo errors unless they are touched.

Solution Description:
Use a hook to explicitly touch all task fields so they echo errors when dependent fields are changed.

Screen shots / Gifs for design review:

0.mp4

Unit test coverage report:
(unchanged)

Test setup:

  • Edit a pipeline that has tasks which use workspaces or resources.
  • Update the list of workspaces/resources.

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci openshift-ci bot added the component/pipelines Related to pipelines-plugin label Jun 3, 2021
@karthikjeeyar
Copy link
Contributor

karthikjeeyar commented Jun 7, 2021

@rottencandy Even without this change I see the errors showing up correctly in the task sidbebar, I have verified it in the cluster latest build 4.8.0-0.nightly-2021-06-06-164529. cc: @jerolimov @andrewballantyne

Edit: I have observed the above while creating a pipeline, but the while editing a Pipeline I see the issue. Thanks @rottencandy for this fix.

@karthikjeeyar
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2021
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 8, 2021
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 8, 2021
Copy link
Member

@jerolimov jerolimov left a comment

Choose a reason for hiding this comment

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

Tested the changed version again. Works fine.
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 8, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 8, 2021

[APPROVALNOTIFIER] This PR is APPROVED

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

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-merge-robot openshift-merge-robot merged commit 629fe7a into openshift:master Jun 8, 2021
@spadgett spadgett added this to the v4.8 milestone Jun 8, 2021
@rottencandy rottencandy deleted the fix/pipeline-formik-touch branch June 29, 2021 18:06
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. component/pipelines Related to pipelines-plugin 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