Эх сурвалжийг харах

HUE-7501 [dashboard] Add configuration flag to enable the new layout

Enrico Berti 8 жил өмнө
parent
commit
c19f3a695c

+ 3 - 0
desktop/conf.dist/hue.ini

@@ -851,6 +851,9 @@
   # Activate the static report layout (beta).
   ## has_report_enabled=false
 
+  # Activate the new grid layout system (beta).
+  ## use_gridster=false
+
   [[engines]]
 
     #  [[[solr]]]

+ 3 - 0
desktop/conf/pseudo-distributed.ini.tmpl

@@ -853,6 +853,9 @@
   # Activate the static report layout (beta).
   ## has_report_enabled=false
 
+  # Activate the new grid layout system (beta).
+  ## use_gridster=false
+
   [[engines]]
 
     #  [[[solr]]]

+ 7 - 0
desktop/libs/dashboard/src/dashboard/conf.py

@@ -58,6 +58,13 @@ HAS_REPORT_ENABLED = Config(
   type=coerce_bool
 )
 
+USE_GRIDSTER = Config(
+  key="use_gridster",
+  help=_t("Activate the new grid layout system (beta)."),
+  default=False,
+  type=coerce_bool
+)
+
 
 def get_properties():
   if ENGINES.get():

+ 1 - 0
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -17,6 +17,7 @@
 <%!
 from django.utils.translation import ugettext as _
 
+from dashboard.conf import USE_GRIDSTER
 from desktop import conf
 from desktop.views import commonheader, commonfooter, _ko, commonshare
 %>