Bug 2017001

Summary: Topology context menu for Serverless components always open downwards
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Sahil Budhwar <sbudhwar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10CC: aos-bugs, nmukherj, sbudhwar
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:39:06 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:
Bug Depends On:    
Bug Blocks: 2099527    
Attachments:
Description Flags
topology-context-menu.mp4 none

Description Christoph Jerolimov 2021-10-25 11:35:53 UTC
Description of problem:
The context menu of the topology opens normally downwards, but for components which are shown at the bottom edge of the visible area, the context menu opens upwards so that the context menu is (hopefully) fully visible.

This works for applications, deployments, etc. but not for Serverless components like a Knative Service or Revision. For these resources the menu always opens downwards.

See attached video.

Version-Release number of selected component (if applicable):
- Works in 4.8 and 4.9
- Broken in latest console master (tested with f516dd96ec498038dfb1b4acbd08bbbc1031937d)

How reproducible:
Always

Steps to Reproduce:
1. Install the OpenShift Serverless operator
2. Switch to the Developer perspective
3. Import an application as standard Deployment
4. Import an application and enable the Serverless option
5. Switch to the topology and move the Deployment and the Serverless Service to the button edge
6. Right click the both applications (the service and revision for example) and compare it with right clicks on the app or the deployment.

Actual results:
- The App and Deployment context menu opens upwards, as expected.
- The Serverless Service and Revision menu opens downwards and are the options could not be selected.

Expected results:
- The Serverless Service and Revision menu should also open upwards when the menu could not be shown completely downwards.

Additional info:
None

Comment 1 Christoph Jerolimov 2021-10-25 11:36:22 UTC
Created attachment 1836720 [details]
topology-context-menu.mp4

Comment 3 Christoph Jerolimov 2022-03-04 15:56:11 UTC
Can we resolve the actions before rendering the menu or performing reposition once all actions are resolved (just once)?

Comment 6 Christoph Jerolimov 2022-04-06 10:18:12 UTC
Verified on 4.11.0-0.nightly-2022-04-01-172551

Comment 9 errata-xmlrpc 2022-08-10 10:39:06 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 (Important: OpenShift Container Platform 4.11.0 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.

https://access.redhat.com/errata/RHSA-2022:5069