Bug 1835228

Summary: Handle embedded pipelineSpec in pipelineRun details page.
Product: OpenShift Container Platform Reporter: Karthik Jeeyar <kjeeyar>
Component: Dev ConsoleAssignee: Karthik Jeeyar <kjeeyar>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.5CC: aos-bugs, nmukherj, spathak, wsun
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Embedded pipeline spec is not supported in UI Consequence: When the user creates the pipelinerun via cli or using the yaml https://gist.githubusercontent.com/praveen4g0/417eb5c173831a18b85737e45f564e12/raw/9e8a717936a213c86abcbb8a9af16c13d29838e3/embeededpipelinespec.yaml, it breaks the UI Fix: Add additional checks to fix avoid the error in the UI Result: UI will not break in the embedded pipeline scenario
Story Points: ---
Clone Of:
: 1838792 (view as bug list) Environment:
Last Closed: 2020-07-13 17:38:25 UTC Type: Bug
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:    
Bug Blocks: 1838792, 1839036    
Attachments:
Description Flags
console breaks if embedded pipelineSpec is passed
none
Handle embedded pipelineSpec in pipelineRun details page. none

Description Karthik Jeeyar 2020-05-13 12:47:58 UTC
Created attachment 1688017 [details]
console breaks if embedded pipelineSpec is passed

Description of problem:
Devconsole UI breaks when user creates `pipelinerun` with embedded pipeline spec and visits the pipeline run details page


Version-Release number of selected component (if applicable):
4.5, 4.4, 4.3

How reproducible:
Always

Steps to Reproduce:
1. create any namespace
2. oc apply -f https://gist.githubusercontent.com/praveen4g0/417eb5c173831a18b85737e45f564e12/raw/9e8a717936a213c86abcbb8a9af16c13d29838e3/embeededpipelinespec.yaml
3. open the pipelinerun details page from the pipeline runs list page.



Actual results:
Console UI breaks with an error


Expected results:
UI should not throw an error and it should handle the components gracefully if the pipeline details is not available.

Comment 4 spathak@redhat.com 2020-05-22 11:06:41 UTC
Created attachment 1691025 [details]
Handle embedded pipelineSpec in pipelineRun details page.

Comment 5 spathak@redhat.com 2020-05-22 11:08:12 UTC
Verified on build version: 4.5.0-0.ci-2020-05-21-230520
Browser version: Firefox73

Comment 7 errata-xmlrpc 2020-07-13 17:38:25 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, 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:2409