subinjp opened a new issue, #35668:
URL: https://github.com/apache/superset/issues/35668

   ### Bug description
   
   
   
   When attempting to add or edit a role, clicking the "Permissions" dropdown 
causes the browser page to freeze completely and eventually show a "Page 
Unresponsive" dialog. This occurs in an environment with a very large number of 
permissions (due to many connected schemas and tables). The page for listing 
roles is fast (after applying a separate fix), but adding/editing is unusable.
   
   Expected results
   The permissions dropdown should open in a reasonable amount of time, 
allowing the user to search for and select permissions without freezing the 
browser.
   
   Actual results
   The browser's main thread locks up, the UI becomes completely unresponsive, 
and a "Page Unresponsive" error is displayed.
   
   <img width="1146" height="519" alt="Image" 
src="https://github.com/user-attachments/assets/c2a942f0-d9f5-4367-85dc-e8af3240d257";
 />
   
   How to reproduce the bug
   Go to an instance of Superset with a large number of permissions (e.g., 
thousands of table permissions).
   
   Navigate to "Settings" -> "List Roles".
   
   Click the + ROLE button to add a new role.
   
   Click on the "Select Value" input field for "Permissions".
   
   Observe that the browser tab freezes.
   
   Environment
   Browser version: (e.g., Chrome Version 128.0.6613.84)
   
   Superset version: 3.0.0
   
   Deployment: Custom Docker image deployed on AWS EKS. Backend database is 
Aurora PostgreSQL.
   
   
   My hypothesis is that the frontend select component is attempting to render 
all tens of thousands of permission options into the DOM at once, which is 
causing the browser's main thread to lock up. A "virtualized" or "windowed" 
select component would likely solve this issue.
   
   Any guidance on a potential workaround or confirmation if this is fixed in a 
newer version of Superset or Flask-AppBuilder would be greatly appreciated. 
Thanks!
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to