-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add link on how to get permission to permission error #4408
Add link on how to get permission to permission error #4408
Conversation
ce4c721
to
2c762f1
Compare
PING |
superset/views/core.py
Outdated
perms_instruction_link = config.get('PERMISSION_INSTRUCTIONS_LINK') | ||
if perms_instruction_link: | ||
DATASOURCE_ACCESS_ERR = __( | ||
"You don't have access to this datasource. <a href='{}'>How to gain access.</a>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine. If you wanted to truncate the length of the message maybe something like
You don't have access to this datasource (Gain Access)
Pending #4405 I think this LGTM, my only comment was possibly on abbreviating the language. |
Unrelated to this PR: we need padding on the |
Language abbreviated. |
I don't think this works with #4373 |
* add flag to config * add troubleshooting link if there is a link * nits
* add flag to config * add troubleshooting link if there is a link * nits
This PR creates a way for users to be shown a link to a document that shows them how to gain the right permissions to be able to access datasources. This often varies across companies so it is manually configured in the config file. If set, the end result should look like the image below.
@john-bodley @michellethomas @mistercrunch