TeCHiScy commented on issue #39967:
URL: https://github.com/apache/superset/issues/39967#issuecomment-4411942728

   Continue digging the root cause, I found that the api 
`/api/v1/security/permissions-resources` is provided by upstream deps named 
`Flask-AppBuilder`. In 
   
   ```
   
https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/sqla/apis/permission_view_menu/api.py#L6
   ```
   
   it can be seen that no search_columns were defined, which leads to `id`, 
`permission.name`, `view_menu.name` not searchable.
   
   Currently, my workaround is to build a custom superset docker image which 
patches this file by:
   
   ```
       echo '    search_columns = ["id", "permission.name", "view_menu.name"]' 
>> 
/app/.venv/lib/python3.10/site-packages/flask_appbuilder/security/sqla/apis/permission_view_menu/api.py
   ```


-- 
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