graceguo-supercat commented on a change in pull request #4226: add frontend 
logging functions and log loading time for Dashboard and explore view
URL: 
https://github.com/apache/incubator-superset/pull/4226#discussion_r162804149
 
 

 ##########
 File path: 
superset/assets/javascripts/explore/components/ExploreViewContainer.jsx
 ##########
 @@ -32,18 +33,33 @@ const propTypes = {
 class ExploreViewContainer extends React.Component {
   constructor(props) {
     super(props);
+    this.firstLoad = true;
+    this.actionLog = null;
     this.state = {
       height: this.getHeight(),
       width: this.getWidth(),
       showModal: false,
     };
   }
 
+  componentWillMount() {
+    this.actionLog = new ActionLog({
+      action: LOG_ACTIONS_LOAD_EXPLORE,
+      containerId: this.props.slice.slice_id,
 
 Review comment:
   in existed `logs` table, for explore view without existed slice_id, the log 
entry will have slice_id=0

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


With regards,
Apache Git Services

Reply via email to