-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SIP-4] replace explorer ajax calls with SupersetClient
#5869
Conversation
export default function setupSupersetClient() { | ||
// The following are needed to mock out SupersetClient requests | ||
// including CSRF authentication and initialization | ||
// global.FormData = window.FormData; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going to remove this file and add it as a cherry-pick to share across these ajax refactors. this line is also needed.
e22e5f5
to
f334912
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -1,7 +1,9 @@ | |||
/* global AbortController */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be added at project level?
3e17d65
to
d9cc68b
Compare
88ca537
to
3afe2dc
Compare
Codecov Report
@@ Coverage Diff @@
## master #5869 +/- ##
=======================================
Coverage 77.23% 77.23%
=======================================
Files 47 47
Lines 9349 9349
=======================================
Hits 7221 7221
Misses 2128 2128 Continue to review full report at Codecov.
|
c799144
to
8fe201d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* [superset-client] initialize SupersetClient in app setup * [core] replace explore ajax calls with SupersetClient * [core] fix SupersetClient explore tests * [core] remove _packages mistake directory * remove unused files * add yarn.lock * always render modal * [superset-client][jest] fix SaveModal_spec * [lint] remove unnecessary AbortController global * yarn.lock
This PR is one of a few that implements the final step 4) discussed in #5772 and refactors just explorer-specific ajax calls (not including charts) for easier review.
Note that the new
@superset-ui/core
dep + setup forSupersetClient
is duplicated across all ajax PRsSupersetClient
#5854SupersetClient
#5875SupersetClient
#5896@kristw @mistercrunch @graceguo-supercat @michellethomas @conglei