-
Notifications
You must be signed in to change notification settings - Fork 14k
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 SQL Lab ajax calls with SupersetClient
#5896
Conversation
const visualizationPayload = { table_id: 107 }; | ||
fetchMock.post(visualizeEndpoint, visualizationPayload); | ||
|
||
// let ajaxSpy; |
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.
will get rid of these
Seems like there are conflicts with master. |
yeah 😢 all of these now have conflicts, a lot from the |
acc3faa
to
bda2b07
Compare
bda2b07
to
3d71e77
Compare
edb4157
to
8d0d3d8
Compare
Codecov Report
@@ Coverage Diff @@
## master #5896 +/- ##
==========================================
- Coverage 77.23% 76.91% -0.33%
==========================================
Files 47 47
Lines 9349 9362 +13
==========================================
- Hits 7221 7201 -20
- Misses 2128 2161 +33
Continue to review full report at Codecov.
|
@kristw @michellethomas @graceguo-supercat this one should be good to go as well, sorry it's a bit longer than the others. the short url explore cypress test surfaced a bug with refactoring |
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] replace sqllab ajax calls with SupersetClient * [superset-client][sqllab] replace more misc ajax calls * [superset-client][tests] call setupSupersetClient() in test shim * [superset-client] replace more sqllab ajax calls and fix tests * [superset-client][tests] remove commented lines * [sqllab][superset-client] fix eslint and tests, add better error handling tests. * [superset-client] fix tests from rebase * [cypress][sqllab][superset-client] fix * [superset-client] use Promises not callbacks in getShortUrl calls * [superset-client][short-url] don't stringify POST * [superset-client][short-url][cypress] add data-test attribute for more reliable test * [cypress] remove .only() call
This PR is one of a few PRs that implement the final step 4) discussed in #5772, to refactor just SQL Lab -specific ajax calls (not including charts) for easier review
Note that the new
@superset-ui/core
dep + setup forSupersetClient
is duplicated across all ajax PRs:SupersetClient
#5854SupersetClient
#5869SupersetClient
#5875@kristw @mistercrunch @graceguo-supercat @michellethomas @conglei