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 2018/09/12 19:34:59 UTC

[GitHub] williaster commented on a change in pull request #5869: [SIP-4] replace explorer ajax calls with `SupersetClient`

williaster commented on a change in pull request #5869: [SIP-4] replace explorer ajax calls with `SupersetClient`
URL: https://github.com/apache/incubator-superset/pull/5869#discussion_r217161488
 
 

 ##########
 File path: superset/assets/spec/helpers/setupSupersetClient.js
 ##########
 @@ -0,0 +1,12 @@
+import fetchMock from 'fetch-mock';
+import { SupersetClient } from '@superset-ui/core';
+
+export default function setupSupersetClient() {
+  // The following are needed to mock out SupersetClient requests
+  // including CSRF authentication and initialization
+  // global.FormData = window.FormData;
 
 Review comment:
   going to remove this file and add it as a cherry-pick to share across these ajax refactors. this line is also needed.

----------------------------------------------------------------
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

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