Description of problem:
After deleting a project with the Management Console, project context is not reset. The project dropdown continues to show the project, and the "+Add" component shows some (but not all) cards. This confuses users into thinking that they may deploy some but not all kinds of cards into the deleted project.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Login to console, developer perspective
2. Create a new project, then delete it through same.
3. Click "+Add" and cards appear to be able to deploy apps into project.
Cards appear. The project selector dropdown is not refreshed to reflect project termination and deletion.
Project context should reset to null.
User should be asked to create or select a project.
User should not see cards for deployment options.
Investigating a proper fix. We know why the bug is occurring, the question is how to fix.
https://github.com/openshift/console/pull/7433 introduced this regression.
Reassigning to Dev Console team since they introduced the regression.
I believe the bug is occurring because the modal does not share the same context as app, thus `activeNamespace` at https://github.com/openshift/console/blob/master/frontend/public/components/modals/delete-namespace-modal.tsx#L33 is always `undefined`.
Created attachment 1771375 [details]
activeNamespace is undefined
Browser: Firefox 88
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.8.2 bug fix and 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.