Bug 2018264 - Delete Export button doesn't work in topology sidebar (general issue with unknown CSV?)
Summary: Delete Export button doesn't work in topology sidebar (general issue with unk...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.0
Assignee: Jaivardhan Kumar
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-28 16:32 UTC by Christoph Jerolimov
Modified: 2022-03-10 16:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:22:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
export-delete-error.mp4 (415.58 KB, video/mp4)
2021-10-28 17:49 UTC, Christoph Jerolimov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10457 0 None open Bug 2018264: Delete Export button doesn't work in topology sidebar (general issue with unknown CSV?) 2021-11-15 06:00:02 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:23:10 UTC

Description Christoph Jerolimov 2021-10-28 16:32:09 UTC
Description of problem:
When the user opens an unknown (?) CSV resources in the topology sidebar, and clicks on Actions > Delete the delete modal is not opened.

Version-Release number of selected component (if applicable):
console master (tested with revision e463efccf958d39b819bb0b08133be54ca773d9d)

How reproducible:
Always

Steps to Reproduce:
1. Open Operator Hub and install the "Primer" GitOps Operator
2. Switch to developer perspective
3. Import at least one Application to enable the Export button in topology
4. If not opened yet, open the topology, and click the "Export Application" button
5. Wait until the export finishs and a new Deployment "primer-export-primer" was shown
6. Click on surrounding CSV Export "Primer" to open the sidebar
7. Click in the topology sidebar on Actions > Delete Export


Actual results:
Nothing happen (in production mode)


In the browser console or when in dev mode you can see an ignored runtime error:

  TypeError: Cannot read properties of undefined (reading 'labelKey')
  Call Stack
  Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'labelKey')
    at delete-modal.tsx:79
    at renderWithHooks (react-dom.development.js:14985)


Expected results:
The 'confirm deletion' modal should open and allow me to remove the Export resource.

Additional info:
The "Delete Project" also do nothing for the default project, but this issue doesn't show the same error in the browser console. So I think they are NOT aligned. https://bugzilla.redhat.com/show_bug.cgi?id=2013996

Comment 1 Christoph Jerolimov 2021-10-28 17:49:00 UTC
Created attachment 1838067 [details]
export-delete-error.mp4

Comment 3 Abhinandan Das 2021-12-17 14:18:42 UTC
verified
OpenShift version 4.10.0-0.ci-2021-12-16-184808
Kubernetes version v1.22.1-1757+6859754c3ffc75-dirty
Cluster ID 5ed2ffcf-de10-4c82-be7f-e2ebd8ba2cc0
API server https://api.ci-ln-tdh4wwk-72292.origin-ci-int-gce.dev.rhcloud.com:6443

Comment 8 errata-xmlrpc 2022-03-10 16:22:54 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 (Moderate: OpenShift Container Platform 4.10.3 security 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/RHSA-2022:0056


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