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 1826526: Improves Start Pipeline Resource section #5140

Merged

Conversation

andrewballantyne
Copy link
Contributor

@andrewballantyne andrewballantyne commented Apr 21, 2020

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

Analysis / Root cause:
Pipeline Resources section was not ideal.

Solution Description:
Disable the dropdown when no items are selectable & space the content out more.

Screen shots / Gifs for design review:

@openshift/team-devconsole-ux

Before (when the ticket was logged - used the cluster directly):
image

After (with Triggers work + this PR):
image

Test setup:

  • Pipeline Operator
  • Pipeline needing resources
  • Start Modal action with no Pipeline Resources created (to force the initial empty state)

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci-robot
Copy link
Contributor

@andrewballantyne: This pull request references Bugzilla bug 1826526, 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 1826526: Improves Start Pipeline Resource section

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

@andrewballantyne: This pull request references Bugzilla bug 1826526, 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 1826526: Improves Start Pipeline Resource section

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

@andrewballantyne: An error was encountered searching for bug 1826526 on the Bugzilla server at https://bugzilla.redhat.com:

Get https://bugzilla.redhat.com/rest/bug/1826526?api_key=CENSORED: dial tcp: i/o timeout
Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 1826526: Improves Start Pipeline Resource section

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

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@andrewballantyne: This pull request references Bugzilla bug 1826526, 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:

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

@divyanshiGupta
Copy link
Contributor

/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 lgtm Indicates that a PR is ready to be merged. label Apr 22, 2020
@serenamarie125
Copy link
Contributor

@andrewballantyne can you add an explanation as to why we couldn't use the internal form pattern that we are using in other areas? I think it would be good to have that noted, so there's an understanding of why we deviated and are not consistent.

@andrewballantyne
Copy link
Contributor Author

@andrewballantyne can you add an explanation as to why we couldn't use the internal form pattern that we are using in other areas? I think it would be good to have that noted, so there's an understanding of why we deviated and are not consistent.

@serenamarie125 Sure, two main points I have for why I made this change in 4.5 (separate of this PR for clarity):

  1. If you create an inline Pipeline Resource and then cancel your Start Modal you end up with this extra resource hanging around... thus defeating the "modal and inline" form like action.
    • Note Secrets are currently this way and will need to be changed in 4.6 with a little refactor
  2. Biggest problem and the one that lead the change, is Triggers. Triggers can create resources off of parameters and those parameters cannot be isolated away in a separate created CR object as there is no reference for the Operator to make use of those params during "trigger occurance"

I tried for several hours to reuse what we had, but due to the inline desires of creation and how we display dropdown items, it just became this web of mess. Essentially it boiled down to either I copy the logic and duplicate code for Triggers or make the change and improve both Modals. I chose the latter because of no.1 above (and code quality / consistency).

@openshift-bot
Copy link
Contributor

/retest

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

1 similar comment
@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 da8d7dc into openshift:master Apr 22, 2020
@openshift-ci-robot
Copy link
Contributor

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

In response to this:

Bug 1826526: Improves Start Pipeline Resource section

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 Apr 23, 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/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/dev-console Related to dev-console 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

7 participants