Bug 2077138

Summary: ConsoleQuickStart {{copy}} and {{execute}} features do not work in some cases
Product: OpenShift Container Platform Reporter: Kevin Cormier <kcormier>
Component: Dev ConsoleAssignee: Abhinandan Das <abhindas>
Status: CLOSED DEFERRED QA Contact: spathak <spathak>
Severity: low Docs Contact:
Priority: medium    
Version: 4.10CC: abhindas, akundu, aos-bugs, cjerolim, cvogt, jakumar, lprabhu, nmukherj
Target Milestone: ---   
Target Release: 4.13.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-09 01:17:50 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:
Attachments:
Description Flags
ConsoleQuickStart YAML none

Description Kevin Cormier 2022-04-20 18:04:27 UTC
Created attachment 1873878 [details]
ConsoleQuickStart YAML

Description of problem:

ConsoleQuickStart YAML does not support the {{copy}} or {{execute}} modifiers for multi-line code blocks if the blocks are indented as part of a list.

Version-Release number of selected component (if applicable): 4.10.6
https://files.slack.com/files-pri/T027F3GAJ-F03BWQRLZDL/image.png

How reproducible: Always


Steps to Reproduce:
1. Create ConsoleQuickStart from attached YAML

Actual results:

Observe {{copy}} appears as text and no copy button is provided.


Expected results:

Copy button should be provided for pre-formatted text.

Additional info:

Comment 2 Jakub Hadvig 2022-04-21 08:50:32 UTC
Moving to Dev Console team based on discussion with Sahil Budhwar.

Comment 4 Abhinandan Das 2022-05-25 11:56:31 UTC
The problem is with the indentation of YAML

Instead of 

        ```
        This can be copied.
        ```{{copy}}

        1. Enter the developer perspective: In the main navigation menu, click
        the [dropdown menu]{{highlight tour-perspective-dropdown}} and select
        **Developer**.

          ```
          This cannot be copied.
          ```{{copy}}

 ----------------------------------------------------------------------------------       
 This works

        ```
        This can be copied.
        ```{{copy}}

        1. Enter the developer perspective: In the main navigation menu, click
        the [dropdown menu]{{highlight tour-perspective-dropdown}} and select
        **Developer**.

        ```
        This cannot be copied.
        ```{{copy}}


Doesn't look like issue over dev-console frontend. If there is a need to change the interpretation of the indentation of YAML, the same must be logged to patternfly/quickstarts.

Comment 9 spathak@redhat.com 2022-06-24 13:48:48 UTC
The {{execute}} part of the bug has been verified on the cluster version "" and an issue has been logged in patternfly-quickstarts for the {{copy}} part which needs to be resolved from that side https://github.com/patternfly/patternfly-quickstarts/issues/178

Comment 17 spathak@redhat.com 2022-11-08 11:03:36 UTC
Still getting the copy issue as mentioned in the screenshot `Rendered quick start` with the build version 4.12.0-0.nightly-2022-11-08-002816, changing the status back to Post

Comment 20 Shiftzilla 2023-03-09 01:17:50 UTC
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira.

https://issues.redhat.com/browse/OCPBUGS-9233

Comment 21 Lokananda Prabhu 2023-03-14 07:46:30 UTC
Trigger BZ to Jira update