vziminov opened a new issue, #42041: URL: https://github.com/apache/superset/issues/42041
### Bug description On FE in permission names all underscores are replaced with spaces using [formatPermissionLabel](https://github.com/apache/superset/blob/d5e75c481354c36d58f3fc0efacb5457571a68bc/superset-frontend/src/features/roles/utils.ts#L58) as I understand. Issue is that BE expects underscores. Example, say we have a database schema 'data_prod'. 1. If in roles we search permissions by 'data_prod' then BE returns all needed permissions, but FE doesn't show it as it filters results with already replaced underscores by 'data_prod' 2. If in roles we search by 'data prod' then BE returns nothing Additionally, it's just strange to see all database catalog/schema/table names lose underscores. ### Screenshots/recordings _No response_ ### Superset version 6.1.0 ### Python version 3.11 ### Node version 16 ### Browser Chrome ### Additional context I use permissions fix provided [here](https://github.com/apache/superset/issues/40293#issuecomment-4499777701) ### 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. - [x] 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]
