Bug 2077138 - ConsoleQuickStart {{copy}} and {{execute}} features do not work in some cases
Summary: ConsoleQuickStart {{copy}} and {{execute}} features do not work in some cases
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.13.0
Assignee: Abhinandan Das
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-20 18:04 UTC by Kevin Cormier
Modified: 2023-03-14 07:46 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-09 01:17:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
ConsoleQuickStart YAML (2.19 KB, text/plain)
2022-04-20 18:04 UTC, Kevin Cormier
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11572 0 None open Bug 2077138: fix {{execute}} regex for multiline executables in QuickStart 2022-05-25 16:09:13 UTC
Github openshift console pull 12038 0 None open Bug 2077138: update version of quick-start library to latest 2022-09-13 16:36:04 UTC
Github openshift console pull 12298 0 None open Bug 2077138: update pf-quickstart version 2022-11-24 03:53:13 UTC

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


Note You need to log in before you can comment on or make changes to this bug.