Browse Source

HUE-7394 [core] Flag for a dev mode

Would need to be plugged in. Default to true in dev version of Hue, false otherwise.
Romain Rigaux 8 years ago
parent
commit
0bfd995

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

@@ -436,6 +436,9 @@
     # 2 for logging the method calls with arguments and the complete results and 9 for also logging the traceback of method calls.
     ## trace_level=0
 
+    # Enable development mode, where notably static files are not cached.
+    ## dev=false
+
     [[[users]]]
 
       # Base filter for searching for users

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

@@ -440,6 +440,9 @@
     # 2 for logging the method calls with arguments and the complete results and 9 for also logging the traceback of method calls.
     ## trace_level=0
 
+    # Enable development mode, where notably static files are not cached.
+    dev=true
+
     [[[users]]]
 
       # Base filter for searching for users

+ 4 - 0
desktop/core/src/desktop/conf.py

@@ -999,6 +999,10 @@ LDAP = ConfigSection(
       type=int,
       help=_("Possible values for trace_level are 0 for no logging, 1 for only logging the method calls with arguments,"
              "2 for logging the method calls with arguments and the complete results and 9 for also logging the traceback of method calls.")),
+    DEV = Config("dev",
+      type=coerce_bool,
+      default=False,
+      help=_("Enable development mode, where notably static files are not cached.")),
 
     LDAP_SERVERS = UnspecifiedConfigSection(
       key="ldap_servers",