Bug 2018264

Summary: Delete Export button doesn't work in topology sidebar (general issue with unknown CSV?)
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Jaivardhan Kumar <jakumar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10CC: abhindas, aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.10.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: 2022-03-10 16:22:54 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
export-delete-error.mp4 none

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