You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2019/01/22 22:27:57 UTC

[incubator-superset] branch master updated: Remove test URL (#6740)

This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new bbd781b  Remove test URL (#6740)
bbd781b is described below

commit bbd781b66efe34823a4b6e1f1e0e5bd5be433988
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Tue Jan 22 14:27:51 2019 -0800

    Remove test URL (#6740)
---
 superset/config.py                              |  3 +++
 superset/templates/appbuilder/navbar_right.html | 12 ++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/superset/config.py b/superset/config.py
index 6271ce6..2d32f97 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -559,6 +559,9 @@ WEBDRIVER_CONFIGURATION = {}
 # The base URL to query for accessing the user interface
 WEBDRIVER_BASEURL = 'http://0.0.0.0:8080/'
 
+# Send user to a link where they can report bugs
+BUG_REPORT_URL = None
+
 
 try:
     if CONFIG_PATH_ENV_VAR in os.environ:
diff --git a/superset/templates/appbuilder/navbar_right.html b/superset/templates/appbuilder/navbar_right.html
index 5db5039..878e937 100644
--- a/superset/templates/appbuilder/navbar_right.html
+++ b/superset/templates/appbuilder/navbar_right.html
@@ -17,6 +17,7 @@
   under the License.
 #}
 
+{% set bug_report_url = appbuilder.app.config.get('BUG_REPORT_URL') %}
 {% set locale = session['locale'] %}
 {% if not locale %}
     {% set locale = 'en' %}
@@ -34,6 +35,17 @@
         </ul>
     </li>
 {% endif %}
+{% if bug_report_url %}
+<li>
+  <a
+    tabindex="-1"
+    href="{{ bug_report_url }}"
+    title="Report a bug"
+  >
+    <i class="fa fa-bug"></i>&nbsp;
+  </a>
+</li>
+{% endif %}
 {% if languages.keys()|length > 1 %}
 <li class="dropdown">
     <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)">