Bug 1855820

Summary: Pipeline Trigger Resource YAMLs should be Editable
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Dev ConsoleAssignee: Andrew Ballantyne <aballant>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-21 17:42:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1855818    
Bug Blocks:    
Attachments:
Description Flags
Pipeline Trigger Resource YAML is Editable
none
Pipeline Trigger Resource YAML is Editable none

Description OpenShift BugZilla Robot 2020-07-10 15:18:34 UTC
+++ This bug was initially created as a clone of Bug #1855818 +++

Description of problem:
When I access a TriggerTemplate by clicking on the link to it in the Pipeline Details screen, I can then select the option to Edit the TriggerTemplate. This redirects me to a YAML editor but I can't save my changes.

Prerequisites (if any, like setup, operators/versions):
Pipelines Operator 1.0.1, OpenShift 4.5.0-rc.4

Steps to Reproduce
1. From the Pipelines list in the Developer console, click on a Pipeline that has a Trigger
2. Click on the TriggerTemplate
3. In the TriggerTemplate Details screen, select "Edit Trigger Template" from the dropdown menu
4. The YAML editor opens up but in read-only mode

Actual results:
The editor opens up in read-only mode. I can't do changes and there is no save button.

Expected results:
I should be able to edit the Trigger Template. If this screen is meant to be read-only, then perhaps the wording should change from "Edit Trigger Template" to "View Trigger Template YAML file"

Reproducibility (Always/Intermittent/Only Once):
Always

Build Details:
Additional info:
We should make all trigger resources editable at the same time:

Event Listener
Cluster Trigger Binding
Trigger Binding
(and) Trigger Template

Comment 3 spathak@redhat.com 2020-09-16 22:56:29 UTC
Created attachment 1715142 [details]
Pipeline Trigger Resource YAML is Editable

Comment 4 spathak@redhat.com 2020-09-16 22:58:53 UTC
Created attachment 1715143 [details]
Pipeline Trigger Resource YAML is Editable

Comment 5 spathak@redhat.com 2020-09-16 23:00:20 UTC
Verified on build version: 4.5.0-0.ci-2020-09-15-143038
Browser version: Chrome 84

Comment 7 errata-xmlrpc 2020-09-21 17:42:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.5.11 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3719