mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
chore(explore): Get Explore data from endpoint instead of bootstrap_data (#20519)
* feat(explore): Use v1/explore endpoint data instead of bootstrapData * Add tests * Fix ci * Remove redundant dependency * Use form_data_key in cypress tests * Add auth headers to for data request * Address comments * Remove displaying danger toast * Conditionally add auth headers * Address comments * Fix typing bug * fix * Fix opening dataset * Fix sqllab chart create * Run queries in parallel * Fix dashboard id autofill * Fix lint * Fix test
This commit is contained in:
committed by
GitHub
parent
f2af81b1c7
commit
b30f6a5db1
@@ -23,7 +23,7 @@ describe('Visualization > Bubble', () => {
|
||||
slice_id: 46,
|
||||
granularity_sqla: 'year',
|
||||
time_grain_sqla: 'P1D',
|
||||
time_range: '2011-01-01+:+2011-01-02',
|
||||
time_range: '2011-01-01 : 2011-01-02',
|
||||
series: 'region',
|
||||
entity: 'country_name',
|
||||
x: 'sum__SP_RUR_TOTL_ZS',
|
||||
@@ -47,7 +47,7 @@ describe('Visualization > Bubble', () => {
|
||||
};
|
||||
|
||||
function verify(formData) {
|
||||
cy.visitChartByParams(JSON.stringify(formData));
|
||||
cy.visitChartByParams(formData);
|
||||
cy.verifySliceSuccess({ waitAlias: '@getJson', chartSelector: 'svg' });
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ describe('Visualization > Bubble', () => {
|
||||
// Since main functionality is already covered in filter test below,
|
||||
// skip this test until we find a solution.
|
||||
it.skip('should work', () => {
|
||||
cy.visitChartByParams(JSON.stringify(BUBBLE_FORM_DATA)).then(() => {
|
||||
cy.visitChartByParams(BUBBLE_FORM_DATA).then(() => {
|
||||
cy.wait('@getJson').then(xhr => {
|
||||
let expectedBubblesNumber = 0;
|
||||
xhr.responseBody.data.forEach(element => {
|
||||
@@ -86,7 +86,7 @@ describe('Visualization > Bubble', () => {
|
||||
expressionType: 'SIMPLE',
|
||||
subject: 'region',
|
||||
operator: '==',
|
||||
comparator: 'South+Asia',
|
||||
comparator: 'South Asia',
|
||||
clause: 'WHERE',
|
||||
sqlExpression: null,
|
||||
filterOptionName: 'filter_b2tfg1rs8y_8kmrcyxvsqd',
|
||||
|
||||
Reference in New Issue
Block a user