mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Migrate Table visualization to React Part 1: Renderer (#3963)
This commit is contained in:
@@ -30,6 +30,14 @@ export function createQuery(data, shouldPublish = true) {
|
||||
return request;
|
||||
}
|
||||
|
||||
export function createVisualization(queryId, type, name, options) {
|
||||
const data = { query_id: queryId, type, name, options };
|
||||
return cy.request('POST', '/api/visualizations', data).then(({ body }) => ({
|
||||
query_id: queryId,
|
||||
...body,
|
||||
}));
|
||||
}
|
||||
|
||||
export function addTextbox(dashboardId, text = 'text', options = {}) {
|
||||
const defaultOptions = {
|
||||
position: { col: 0, row: 0, sizeX: 3, sizeY: 3 },
|
||||
|
||||
Reference in New Issue
Block a user