HUE-9202 [core] Adding number of queries metric

Review Request #14885 — Created March 18, 2020 and submitted

yingc
hue
master
HUE-9202
johan, ranade, romain, weixia
commit e0793e54aea7c9108c97633fa690382f2ab41dad (HEAD -> master)
Author: Ying Chen <yingchen@cloudera.com>
Date:   Wed Mar 18 15:56:53 2020 -0700

    HUE-9202 [core] Adding number of queries metric

:100644 100644 0de33615d0... 6cf5a65362... M    desktop/core/src/desktop/metrics.py
:100644 100644 0851f3dae3... 0f208c2b1f... M    desktop/libs/notebook/src/notebook/api_tests.py


  • 0
  • 0
  • 3
  • 1
  • 4
Description From Last Updated
romain
  1. 
      
  2. desktop/libs/notebook/src/notebook/metrics.py (Diff revision 1)
     
     
     
     
     
     

    Nit: to clean-up

  3. 
      
yingc
yingc
romain
  1. 
      
  2. desktop/libs/notebook/src/notebook/api_tests.py (Diff revision 3)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

    How about using magic mock to patch

    Document2.objects.filter
    count()

    in metrics to return the count you want?

  3. 
      
yingc
romain
  1. Nice!

  2. desktop/core/src/desktop/metrics.py (Diff revision 4)
     
     

    note: at some we can probably move those to 'activity' group

  3. 
      
yingc
Review request changed

Status: Closed (submitted)

Loading...