You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/09/29 15:43:56 UTC

[GitHub] fabianmenges commented on a change in pull request #3518: Full Annotation Framework

fabianmenges commented on a change in pull request #3518: Full Annotation Framework
URL: https://github.com/apache/incubator-superset/pull/3518#discussion_r141900400
 
 

 ##########
 File path: superset/assets/javascripts/modules/superset.js
 ##########
 @@ -212,13 +234,22 @@ const px = function (state) {
         token.find('img.loading').show();
         container.fadeTo(0.5, 0.25);
         container.css('height', this.height());
+        const asyncAnnotations = formData.annotation_layers
+          .map(x => runAnnotationQuery(x, timeout, formData));
         $.ajax({
           url: this.jsonEndpoint(formDataExtra),
           timeout: timeout * 1000,
           success: (queryResponse) => {
             try {
-              vizMap[formData.viz_type](this, queryResponse);
               this.done(queryResponse);
+              // render when all the annotations are available
 
 Review comment:
   Currently the  chart is only drawn on the dashboard when all annotations have been loaded. In a future PR I want display the chart as soon as its data becomes available and add an indicator that shows if not all annotations have been fetched and re-renders when all are available. 
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services