HUE-8139 [core] Fix django-debug-toolbar 1.9.1 to work with django_debug_panel

Review Request #13310 - Created Sept. 6, 2018 and submitted

Ying Chen
hue
master
HUE-8139
hue
enricoberti, jgauthier, johan, ranade, romain, weixia
commit 131bd1e2416d468a1d625d8902a53ba352dd1f2e (HEAD -> debug_panel_c6)
Author: Ying Chen <yingchen@cloudera.com>
Date:   Thu Sep 6 11:31:46 2018 -0700

    HUE-8139 [core] Fix django-debug-toolbar 1.9.1 to work with django_debug_panel
    * remove toolbar middleware to enable SQL panel
    * Fix middlewares to enable capture Ajax calls

:100644 100644 1b0fa5fdc6... 14c5b48d59... M    desktop/core/ext-py/django-debug-panel-0.8.3/debug_panel/middleware.py
:100644 100644 c38761123f... a746b3cbf0... M    desktop/core/ext-py/django-debug-toolbar-1.9.1/debug_toolbar/middleware.py
:100644 100644 53553a2082... 585e2c2105... M    desktop/core/src/desktop/settings.py


  • 0
  • 0
  • 0
  • 1
  • 1
Description From Last Updated
  1. 
      
    1. In previous version, this was calling from show_toolbar https://github.com/cloudera/hue/blob/11313378f09d84466fc708094b4a05b0ea0c1075/desktop/core/ext-py/django-debug-toolbar-1.3.2/debug_toolbar/middleware.py#L30. And we override it at https://github.com/cloudera/hue/blob/11313378f09d84466fc708094b4a05b0ea0c1075/desktop/core/src/desktop/settings.py#L537. In 1.9.1, it moved to current place, so we need to remove it to get it Ajax call captured.

  2. 
      
Review request changed

Status: Closed (submitted)

Loading...