Skip to content
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

Merged
merged 3 commits into from
Feb 16, 2018

Conversation

timifasubaa
Copy link
Contributor

@timifasubaa timifasubaa commented Feb 12, 2018

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.

screen shot 2018-02-12 at 2 18 53 pm

@john-bodley @michellethomas @mistercrunch

@timifasubaa
Copy link
Contributor Author

PING

@timifasubaa timifasubaa changed the title Add link on how to get permission. Add link on how to get permission to permission error. Feb 14, 2018
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>"
Copy link
Member

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)

@john-bodley
Copy link
Member

Pending #4405 I think this LGTM, my only comment was possibly on abbreviating the language.

@timifasubaa timifasubaa changed the title Add link on how to get permission to permission error. Add link on how to get permission to permission error Feb 14, 2018
@mistercrunch
Copy link
Member

Unrelated to this PR: we need padding on the Panel.body when showing alerts.

@timifasubaa
Copy link
Contributor Author

Language abbreviated.

@mistercrunch mistercrunch merged commit 7e08296 into apache:master Feb 16, 2018
@jeffreythewang
Copy link
Contributor

jeffreythewang commented Apr 13, 2018

I don't think this works with #4373

@mistercrunch
Copy link
Member

@timifasubaa

michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* add flag to config

* add troubleshooting link if there is a link

* nits
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* add flag to config

* add troubleshooting link if there is a link

* nits
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants