Skip to content

Conversation

@andrewballantyne
Copy link
Contributor

@andrewballantyne andrewballantyne commented Apr 12, 2020

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

Analysis / Root cause:
Need a way to remove the triggers we add.

Solution Description:
Remove trigger modal.

Screen shots / Gifs for design review:
@openshift/team-devconsole-ux

Empty state seems lame... Probably should find a way not to show the modal... but it requires fetching to find out that information... 🤔
Screen Shot 2020-04-12 at 2 45 34 PM

I added a minor gap slightly smaller than a single line message to hack our way around PatternFly and their dropdown/modal issue:
Screen Shot 2020-04-12 at 2 45 56 PM

Selected and ready to remove:
Screen Shot 2020-04-12 at 2 46 05 PM

Unit test coverage report:

  • Likely some components that can be tested here

Test setup:

  • Install Pipelines Operator
  • Have a trigger installed
  • Remove

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci-robot openshift-ci-robot added component/dev-console Related to dev-console approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 12, 2020
Copy link
Contributor

@divyanshiGupta divyanshiGupta left a comment

Choose a reason for hiding this comment

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

@andrewballantyne apart from your last commit, other commits are reorganizing/refactoring code or they add or change any functionalities?

@andrewballantyne
Copy link
Contributor Author

@andrewballantyne apart from your last commit, other commits are reorganizing/refactoring code or they add or change any functionalities?

Apologizes, been reviewing and haven't had a chance to refactor (actually doing that right now).

Everything before the last commit is stacking PRs. The last commit is the only one that matters for the content of this PR.

@andrewballantyne andrewballantyne force-pushed the remove-trigger branch 3 times, most recently from 2bffaf5 to a39b8f6 Compare April 15, 2020 19:18
@andrewballantyne
Copy link
Contributor Author

@divyanshiGupta I have made this PR a tiny bit smaller 🙂

@andrewballantyne andrewballantyne force-pushed the remove-trigger branch 2 times, most recently from 979d585 to 918f1da Compare April 16, 2020 01:01
@divyanshiGupta
Copy link
Contributor

@divyanshiGupta I have made this PR a tiny bit smaller slightly_smiling_face

Its like you removed 80% of the code. 😜

Copy link
Contributor

@divyanshiGupta divyanshiGupta left a comment

Choose a reason for hiding this comment

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

@andrewballantyne the code looks good to me. Need to try to it locally once. Also please resolve the conflicts.

@karthikjeeyar
Copy link
Contributor

@andrewballantyne verified removing triggers, it works fine.

removing_trigger
I agree with you, instead of empty state we should not show the remove tirgger option to the pipeline which does not have TT and EL. May be we could do that in a followup PR.

@andrewballantyne
Copy link
Contributor Author

andrewballantyne commented Apr 16, 2020

I agree with you, instead of empty state we should not show the remove tirgger option to the pipeline which does not have TT and EL. May be we could do that in a followup PR.

Absolutely. Unless there is a critical issue, no additions are happening on the current Pipeline PRs. We'll cover it after FF. I'll log a bug to track (https://issues.redhat.com/browse/ODC-3589).

@divyanshiGupta
Copy link
Contributor

@andrewballantyne the code looks good to me. Need to try to it locally once. Also please resolve the conflicts.

Tried it locally, works fine. Will add lgtm once the remaining comments are resolved.

@karthikjeeyar
Copy link
Contributor

/lgtm

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

[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

Details 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

@divyanshiGupta
Copy link
Contributor

divyanshiGupta commented Apr 16, 2020

Looks good.
/lgtm

@andrewballantyne
Copy link
Contributor Author

/retest

@andrewballantyne
Copy link
Contributor Author

error: could not run steps: step test-bin failed: could not wait for build: could not create watcher for build test-bin: the server is currently unable to handle the request (get builds.build.openshift.io)

That's a first.

/test frontend

@andrewballantyne
Copy link
Contributor Author

/retest

1 similar comment
@andrewballantyne
Copy link
Contributor Author

/retest

@andrewballantyne
Copy link
Contributor Author

/kind feature

@openshift-ci-robot openshift-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 16, 2020
@openshift-merge-robot openshift-merge-robot merged commit 66531bd into openshift:master Apr 16, 2020
@spadgett spadgett added this to the v4.5 milestone Apr 20, 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. component/dev-console Related to dev-console kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants