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

Ben add export to sheets button #32613

Closed
Closed
Changes from 1 commit
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
beb9ec7
chore: Adds 4.0.0 RC1 data to CHANGELOG.md and UPDATING.md
michael-s-molina Feb 20, 2024
d69be32
fix(sqllab): typeahead search is broken in db selector (#27181)
justinpark Feb 21, 2024
a523d9a
fix: Failed to execute importScripts on worker-css (#27191)
michael-s-molina Feb 21, 2024
3440a30
fix(dashboard): drag and drop indicator UX (#26699)
justinpark Feb 21, 2024
d47fd44
fix: Translations related to the date range filter (#26074)
Ralkion Feb 21, 2024
ef2ca40
fix(releasing): fixes npm script for release validation (#27214)
rusackas Feb 22, 2024
c29873c
fix: no limit in SELECT * for TOP dbs (#27215)
betodealmeida Feb 22, 2024
ffa0c73
fix: setting important lower bounds versions on requirements (#27167)
dpgaspar Feb 23, 2024
3650228
fix: bump FAB to 4.4.1 (perf issue) (#27233)
dpgaspar Feb 23, 2024
7115b2c
chore: Removes Chromatic workflow and dependencies (#27232)
michael-s-molina Feb 23, 2024
7de3e0f
fix(sqlglot): Address regressions introduced in #26476 (#27217)
john-bodley Feb 23, 2024
8fd47c6
fix(reports): fixing unit test (#27236)
fisjac Feb 23, 2024
524dbd5
fix(trino): bumping trino to fix hudi schema fetching (#27213)
rusackas Feb 23, 2024
b9ec312
fix: Sorting charts/dashboards makes the applied filters ineffective …
michael-s-molina Feb 27, 2024
2e80b68
fix(import-datasources): Use "admin" user as default for importing da…
ddxv Feb 27, 2024
6b82e27
fix: Inoperable dashboard filter slider when range is <= 1 (#27271)
michael-s-molina Feb 27, 2024
8243675
fix: Navigating to an invalid page index in lists (#27273)
michael-s-molina Feb 28, 2024
5cba9bc
fix: Data zoom with horizontal orientation (#27291)
michael-s-molina Feb 29, 2024
74842fe
fix: Incorrect data type on import page (#27307)
michael-s-molina Feb 29, 2024
8103f22
fix(plugin-chart-echarts): calculate Gauge Chart intervals correctly …
goto-loop Feb 29, 2024
e881675
fix(sqllab): invalid dump sql shown after closing tab (#27295)
justinpark Feb 29, 2024
c0fa4f4
chore: bump cryptography minimum to 42.0.4 (#27281)
sadpandajoe Feb 29, 2024
f5750dd
fix(dashboard): table chart drag preview overflowing container (#27308)
rtexelm Feb 29, 2024
f063240
fix(sqllab): Missing empty query result state (#27313)
justinpark Mar 1, 2024
85efe25
fix: Heatmap numeric sorting (#27360)
michael-s-molina Mar 1, 2024
e9ebc38
fix: Missing SQL Lab permission (#27361)
michael-s-molina Mar 1, 2024
ecebd70
chore: numexpr to fix CVE-2023-39631⁠ (2.8.4 => 2.9.0) (#27187)
nigzak Mar 1, 2024
25b7eb0
fix: Results section in Explore shows an infinite spinner (#27366)
michael-s-molina Mar 4, 2024
19efb14
fix(Alerts & Reports): Fixing bug that resets cron value to default w…
fisjac Mar 4, 2024
94aeef5
fix: improve explore REST api validations (#27395)
dpgaspar Mar 5, 2024
4f3a7f3
fix(API): Updating assets via the API should preserve ownership confi…
Vitor-Avila Mar 6, 2024
db6df71
fix(sqllab): Close already removed tab (#27391)
justinpark Mar 6, 2024
0baa2af
fix: Re-enable CI checks on release branches (#27390)
michael-s-molina Mar 6, 2024
2060e54
fix: typescript errors in 4.0 (#27402)
justinpark Mar 6, 2024
5b6e5e4
fix: missing shared color in mixed timeseries (#27403)
justinpark Mar 7, 2024
15557f4
fix(deps): resolving canvg and html2canvas module not found (#27315)
fisjac Mar 4, 2024
7598635
fix(dashboard): Only fetch CSS templates for dashboard header menu wh…
mskelton Mar 8, 2024
131c254
fix: SSH Tunnel configuration settings (#27186)
geido Mar 11, 2024
0ee452e
fix(webpack): remove double-dotted file extensions in webpack config …
rusackas Mar 12, 2024
017e0fc
fix: check if guest user modified query (#27484)
betodealmeida Mar 13, 2024
1016fd9
fix(postprocessing): resample with holes (#27487)
villebro Mar 14, 2024
297849a
fix(alerts/reports): implementing custom_width as an Antd number inpu…
fisjac Mar 15, 2024
d4314a9
fix(explore): Allow only saved metrics and columns (#27539)
justinpark Mar 18, 2024
94f6778
feat: `improve _extract_tables_from_sql` (#26748)
betodealmeida Mar 18, 2024
3556219
fix: pass valid SQL to SM (#27464)
betodealmeida Mar 18, 2024
f52647f
perf(sqllab): reduce bootstrap data delay by queries (#27488)
justinpark Mar 18, 2024
4b750c0
fix: guest queries (#27566)
betodealmeida Mar 19, 2024
634d72b
fix: Skips Hive tests that are blocking PRs (#27605)
michael-s-molina Mar 21, 2024
652e6cf
fix(db_engine_specs): Update convert_dttm to work correctly with Crat…
hlcianfagna Mar 21, 2024
4a59f23
fix: bump sqlglot to support materialized CTEs (#27576)
betodealmeida Mar 20, 2024
336f6bd
fix: sqlglot SQL Server (#27577)
betodealmeida Mar 21, 2024
90afb34
fix: Volatile datasource ordering in dashboard export (#19595)
pnadolny13 Mar 21, 2024
fe95ada
fix(utils): fix off-by-one error in how rolling window's min_periods …
sfirke Mar 21, 2024
a2fb13b
fix(Dashboard): Add editMode conditional for translate3d fix on chart…
rtexelm Mar 22, 2024
4ff331a
fix: Persist query params appended to permalink (#27601)
kgabryje Mar 22, 2024
7c14968
fix(sql_parse): Ensure table extraction handles Jinja templating (#27…
john-bodley Mar 22, 2024
3bfa8a9
fix(AlertReports): clearing custom_width when disabled (#27551)
fisjac Mar 22, 2024
d851721
fix(AlertReports): defaulting grace period to undefined (#27552)
fisjac Mar 25, 2024
2955393
fix(Chart Annotation modal): Table and Superset annotation options wi…
rtexelm Mar 26, 2024
32aa25a
fix(sqllab): unable to remove table (#27636)
justinpark Mar 26, 2024
34b06f9
fix(AlertReports): disabling value when not null option is active (#2…
fisjac Mar 26, 2024
51ad634
fix: Leverage actual database for rendering Jinjarized SQL (#27646)
john-bodley Mar 26, 2024
5c56789
fix: Provide more inclusive error handling for saved queries (#27644)
john-bodley Mar 26, 2024
a024b4a
fix(explore): drag and drop indicator UX (#27558)
justinpark Mar 27, 2024
2fa1b35
perf(explore): virtualized datasource field sections (#27625)
justinpark Mar 27, 2024
bb5c0b4
fix: reduce alert error to warning (#27744)
eschutho Mar 28, 2024
b8e556d
fix: Removes filter plugins from viz gallery (#27763)
michael-s-molina Mar 28, 2024
b7fa3ed
fix: Select onChange is fired when the same item is selected in singl…
michael-s-molina Mar 28, 2024
0d5be95
chore(docs): Cleanup UPDATING.md (#27768)
john-bodley Mar 28, 2024
6a21f6d
chore: Adds the 4.0 release notes (#27441)
michael-s-molina Apr 1, 2024
c35842e
chore: Adds 4.0.0 RC2 data to CHANGELOG.md
michael-s-molina Apr 1, 2024
026c75e
fix(dashboard): missing null check in error extra (#27845)
justinpark Apr 2, 2024
54942e2
fix: row limits & row count labels are confusing (#27700)
mistercrunch Apr 2, 2024
a39971a
chore(sql_parse): Strip leading/trailing whitespace in Jinja macro ex…
john-bodley Apr 3, 2024
40fdbd1
chore(sql_parse): Provide more meaningful SQLGlot errors (#27858)
john-bodley Apr 3, 2024
1b7f599
chore: Default to engine specification regarding using wildcard (#27843)
john-bodley Apr 3, 2024
300669f
fix(bar-chart): change legend padding for horizontal orientation (#27…
Apr 3, 2024
899cd0e
chore(sqllab): Do not strip comments when executing SQL statements (#…
john-bodley Apr 4, 2024
ecc6ced
fix(Dashboard): Add border to row when hovering HoverMenu in edit mod…
rtexelm Apr 4, 2024
cb39fcd
fix: add mariadb engine spec same as MySQL (#27919)
dpgaspar Apr 5, 2024
23cd2b1
fix(frontend): allow "constructor" property in response data (#25407)
SpencerTorres Apr 6, 2024
af9dc6f
chore(explore): Hide non-droppable metric and column list (#27717)
justinpark Apr 5, 2024
e6ff82f
fix: Locale sent to frontend (#27926)
michael-s-molina Apr 8, 2024
42e1329
fix: useTruncation infinite loop, reenable dashboard cross links on C…
kgabryje Apr 9, 2024
d6e0ff5
fix(Dashboard): Add aria-label to filters and search forms (#27968)
geido Apr 10, 2024
10dffa6
fix(alerts/reports): removing duplicate notification method options (…
fisjac Apr 10, 2024
aa9aea6
fix(drillby): Enable DrillBy in charts w/o filters (dimensions) (#27941)
sowo Apr 11, 2024
7c670e2
fix(time_offset): improved LIMIT-handling in advanced analytics (#27934)
Antonio-RiveroMartnez Apr 11, 2024
1cf0b14
fix: Incorrect onChange value when an unloaded value is pasted into A…
michael-s-molina Apr 12, 2024
41230db
fix: Select is accepting unknown pasted values when `allowNewOptions`…
michael-s-molina Apr 15, 2024
aa75891
fix: bump client side chart timeouts to use the SUPERSET_WEBSERVER_TI…
eschutho Apr 15, 2024
ee92eeb
fix: Dynamic filter does not show all values on blur/clear events (#2…
michael-s-molina Apr 16, 2024
149d7ee
fix(sql_parse): Support Jinja format() filter when extracting latest[…
john-bodley Apr 18, 2024
a8f7ea0
fix(AlertsReports): making log retention "None" option valid (#27554)
fisjac Apr 23, 2024
f413ae4
fix(sql_parse): Provide more lenient logic when extracting latest[_su…
john-bodley Apr 26, 2024
51b5899
fix: Dremio alias (#28222)
betodealmeida Apr 26, 2024
3d8f00b
fix(sqllab): invalid css scope for ace editor autocomplete (#28156)
justinpark Apr 26, 2024
c250ad2
fix(maps): adds Crimea back to Ukraine 🇺🇦 (#28226)
rusackas Apr 25, 2024
b738a75
fix(explore): temporal column mixin (#28241)
justinpark Apr 29, 2024
aef6564
fix(dashboard): unable to drop tabs in columns (#28242)
justinpark Apr 29, 2024
453f747
fix(ci): adding codecov token (#28277)
rusackas Apr 30, 2024
cb18202
fix: % replace in `values_for_column` (#28271)
betodealmeida Apr 30, 2024
5de4862
fix(explore): cannot reorder dnd of Metrics (#28269)
justinpark May 1, 2024
4d3e60d
chore: allow codecov to detect SHA (#28278)
mistercrunch Apr 30, 2024
3b8bc9b
chore: Adds 4.0.1 RC1 data to CHANGELOG.md
michael-s-molina May 2, 2024
b523863
Add Aven AB Chart
daviaven Jun 5, 2024
b35b39b
Merge pull request #1 from heraclescorp/avenab
daviaven Jun 7, 2024
9fb1b07
copy over webdriver
aven-mathew Jun 8, 2024
bf4b112
image build structure
aven-mathew Jun 8, 2024
c706bbc
Merge pull request #2 from heraclescorp/transfer-changes-from-heracle…
aven-mathew Jun 8, 2024
3eec2ba
various changes to bring previous iterations of webdriver and image u…
aven-mathew Jun 8, 2024
1d637b8
Merge pull request #3 from heraclescorp/changes-for-4.0.1
aven-mathew Jun 8, 2024
0996b58
[AB] Support custom dataset metrics without labels
daviaven Jun 10, 2024
9751f06
Merge pull request #4 from heraclescorp/customMetrics
daviaven Jun 10, 2024
ec56df7
Tooltip and graphics
daviaven Jun 10, 2024
b95a354
Merge pull request #5 from heraclescorp/sparkdata
daviaven Jun 10, 2024
20be1b9
remove tsconfig dependency
daviaven Jun 10, 2024
7070a4c
Merge pull request #6 from heraclescorp/tsconfig
daviaven Jun 10, 2024
4bd0144
AB fit more stuff in the screen
daviaven Jun 11, 2024
c564f60
Merge pull request #7 from heraclescorp/fit
daviaven Jun 11, 2024
8bec6c7
AB compute p values
daviaven Jun 11, 2024
dfe8788
Merge pull request #8 from heraclescorp/pvalue
daviaven Jun 11, 2024
3a21e58
Remove % on pvalue
daviaven Jun 11, 2024
e642088
Merge pull request #9 from heraclescorp/pvalueperc
daviaven Jun 11, 2024
fb1c31e
AB confidence interval
daviaven Jun 12, 2024
dff8585
Merge pull request #10 from heraclescorp/confidence
daviaven Jun 12, 2024
770f001
confidence off by one
daviaven Jun 12, 2024
d2837d2
Merge pull request #11 from heraclescorp/offbyone
daviaven Jun 12, 2024
4ffa80c
ab interval pad with zeros with less than 10
daviaven Jun 12, 2024
d93b2b5
Merge pull request #12 from heraclescorp/spacing
daviaven Jun 12, 2024
d2d8d83
ab fix empty data fix on first timestamp
daviaven Jun 13, 2024
6c6ca00
Merge pull request #13 from heraclescorp/abfix
daviaven Jun 13, 2024
48c18af
fix(ar-modal): updateNotificationSettings not updating state (#28409)
fisjac May 13, 2024
ae6dd22
initial structure from SIP-114
aven-mathew Jun 25, 2024
49cac21
add tool versions
aven-mathew Jun 25, 2024
607f9f4
Merge remote-tracking branch 'origin/avenmaster' into export-to-gsheets
aven-mathew Jun 25, 2024
9211f28
general structure of frontend components
aven-mathew Jun 26, 2024
68c24f7
add export endpoint, get structure in place
aven-mathew Jun 26, 2024
3e6a783
adjust to proper nodejs version for superset
aven-mathew Jun 26, 2024
ec74eaf
Merge remote-tracking branch 'origin/avenmaster' into export-to-gsheets
aven-mathew Jun 26, 2024
2b1e58c
Merge remote-tracking branch 'origin/export-to-gsheets' into export-t…
aven-mathew Jun 26, 2024
d19449a
commit frontend changes
aven-mathew Jun 27, 2024
29984a8
various changes to get the backend working well
aven-mathew Jun 27, 2024
ce69062
Merge remote-tracking branch 'origin/export-to-gsheets' into export-t…
aven-mathew Jun 27, 2024
511397c
cleanup the frontend interface
aven-mathew Jun 27, 2024
29c4c52
handle missing query context
aven-mathew Jun 27, 2024
3c727b6
Merge remote-tracking branch 'origin/export-to-gsheets' into export-t…
aven-mathew Jun 27, 2024
8fd66a0
Merge pull request #14 from heraclescorp/export-to-gsheets
aven-mathew Jun 27, 2024
9191aea
add additional packages
aven-mathew Jun 27, 2024
f6ba608
Merge branch 'avenmaster' of https://github.com/heraclescorp/superset…
aven-mathew Jun 27, 2024
583f367
Merge remote-tracking branch 'origin/export-to-gsheets-frontend' into…
aven-mathew Jun 27, 2024
5f95522
improve formatting of output gsheets + add "wait" screen to avoid issues
aven-mathew Jun 27, 2024
3b5c7cd
Merge pull request #16 from heraclescorp/adjustments-to-export
aven-mathew Jun 27, 2024
2e8427a
don't fail on error pulldown
aven-mathew Jul 8, 2024
138046f
Add export to google sheets button
milbin Mar 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(frontend): allow "constructor" property in response data (#25407)
(cherry picked from commit a1983e4)
  • Loading branch information
SpencerTorres authored and michael-s-molina committed Apr 8, 2024
commit 23cd2b138b9ba4141a22ceb9818c7cb7e98d3b13
Original file line number Diff line number Diff line change
@@ -16,11 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
import JSONbig from 'json-bigint';
import _JSONbig from 'json-bigint';
import { cloneDeepWith } from 'lodash';

import { ParseMethod, TextResponse, JsonResponse } from '../types';

const JSONbig = _JSONbig({
constructorAction: 'preserve',
});

export default async function parseResponse<T extends ParseMethod = 'json'>(
apiPromise: Promise<Response>,
parseMethod?: T,
Original file line number Diff line number Diff line change
@@ -139,8 +139,12 @@ describe('parseResponse()', () => {

it('resolves to big number value if `parseMethod=json-bigint`', async () => {
const mockBigIntUrl = '/mock/get/bigInt';
const mockGetBigIntPayload =
'{ "value": 9223372036854775807, "minus": { "value": -483729382918228373892, "str": "something" }, "number": 1234, "floatValue": { "plus": 0.3452211361231223, "minus": -0.3452211361231223 } }';
const mockGetBigIntPayload = `{
"value": 9223372036854775807, "minus": { "value": -483729382918228373892, "str": "something" },
"number": 1234, "floatValue": { "plus": 0.3452211361231223, "minus": -0.3452211361231223 },
"string.constructor": "data.constructor",
"constructor": "constructor"
}`;
fetchMock.get(mockBigIntUrl, mockGetBigIntPayload);
const responseBigNumber = await parseResponse(
callApi({ url: mockBigIntUrl, method: 'GET' }),
@@ -167,6 +171,10 @@ describe('parseResponse()', () => {
expect(Math.abs(responseBigNumber.json.floatValue.minus)).toEqual(
responseBigNumber.json.floatValue.plus,
);
expect(responseBigNumber.json['string.constructor']).toEqual(
'data.constructor',
);
expect(responseBigNumber.json.constructor).toEqual('constructor');
});

it('rejects if request.ok=false', async () => {
7 changes: 6 additions & 1 deletion superset-frontend/src/components/FilterableTable/index.tsx
Original file line number Diff line number Diff line change
@@ -16,14 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
import JSONbig from 'json-bigint';
import _JSONbig from 'json-bigint';
import React, { useEffect, useRef, useState, useMemo } from 'react';
import { getMultipleTextDimensions, styled } from '@superset-ui/core';
import { useDebounceValue } from 'src/hooks/useDebounceValue';
import { useCellContentParser } from './useCellContentParser';
import { renderResultCell } from './utils';
import { Table, TableSize } from '../Table';

const JSONbig = _JSONbig({
storeAsString: true,
constructorAction: 'preserve',
});

const SCROLL_BAR_HEIGHT = 15;
// This regex handles all possible number formats in javascript, including ints, floats,
// exponential notation, NaN, and Infinity.
2 changes: 1 addition & 1 deletion superset/sql_parse.py
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
from sqlalchemy import and_
from sqlglot import exp, parse, parse_one
from sqlglot.dialects import Dialects
from sqlglot.errors import SqlglotError
from sqlglot.errors import ParseError, SqlglotError
from sqlglot.optimizer.scope import Scope, ScopeType, traverse_scope
from sqlparse import keywords
from sqlparse.lexer import Lexer
2 changes: 1 addition & 1 deletion tests/integration_tests/databases/api_tests.py
Original file line number Diff line number Diff line change
@@ -1479,7 +1479,7 @@ def test_get_invalid_table_table_metadata(self):
"indexes": [],
"name": "wrong_table",
"primaryKey": {"constrained_columns": None, "name": None},
"selectStar": "SELECT\n *\nFROM wrong_table\nLIMIT 100\nOFFSET 0",
"selectStar": "SELECT *\nFROM wrong_table\nLIMIT 100\nOFFSET 0",
},
)
elif example_db.backend == "mysql":
Loading