You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/02/03 19:28:13 UTC

[GitHub] [incubator-superset] graceguo-supercat commented on a change in pull request #9070: [logging] Add flag for document visibility

graceguo-supercat commented on a change in pull request #9070: [logging] Add flag for document visibility
URL: https://github.com/apache/incubator-superset/pull/9070#discussion_r374294770
 
 

 ##########
 File path: superset/assets/src/middleware/loggerMiddleware.js
 ##########
 @@ -107,6 +107,7 @@ const loggerMiddleware = store => next => action => {
       ...eventData,
       event_type: 'user',
       event_id: lastEventId,
+      visibility: document.visibilityState,
 
 Review comment:
   `timing event` (mostly is data loading and chart render) is triggered by `user event` (dashboard mount, switch tab, etc). I assume during 1 user event (a few charts will be loading and re-render), the browser's visibilityState will not change.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org