Skip to content
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

Merged
merged 10 commits into from
Oct 16, 2018

Conversation

williaster
Copy link
Contributor

@williaster williaster commented Sep 12, 2018

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 for SupersetClient is duplicated across all ajax PRs

@kristw @mistercrunch @graceguo-supercat @michellethomas @conglei

export default function setupSupersetClient() {
// The following are needed to mock out SupersetClient requests
// including CSRF authentication and initialization
// global.FormData = window.FormData;
Copy link
Contributor Author

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.

Copy link
Contributor

@kristw kristw left a 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 */
Copy link
Contributor

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?

@codecov-io
Copy link

codecov-io commented Oct 16, 2018

Codecov Report

Merging #5869 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

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

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 462c58e...8fe201d. Read the comment docs.

Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@williaster williaster merged commit af0ffa4 into apache:master Oct 16, 2018
Embeddable Charts automation moved this from In progress to Done Oct 16, 2018
@williaster williaster deleted the chris--ajax-explorer branch October 16, 2018 21:54
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
* [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
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants