Commit Graph

8011 Commits

Author SHA1 Message Date
David Aaron Suddjian
ac9c1372b4
fix(dashboard): check dashboard id before calling redux methods (#15921)
* check dashboard id before calling redux methods

* comment
2021-07-28 13:45:09 -07:00
Michael S. Molina
7b0acc45de
chore: Changes the main menu order as defined in SIP-34 (#15929) 2021-07-28 16:47:07 -03:00
ʈᵃᵢ
7b503fa710
docs: add .asf.yaml (#15931)
* docs: add asf.yaml

* license

* fix
2021-07-28 15:32:03 -04:00
Hugh A. Miles II
bfe7eb9a7b
feat(dbc ui): Adding Google Sheets Dynamic Form (#15801)
* feat: Make Google Sheets Dyanmic (#15576)

* first draft

* second draft

* added tests

* first draft

* added table_catalog

* remove console.log

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* revisions

* save this for now

* working form

* save disable on public sheets

* refactor somethings

* saving this for now

* working edit

* add back query to schema

* working add

* fix styling

* fixing x

* fix linting

* prettier

* fix some type issues

* more lint fixes

* remove unused dependency

* fix linint

* fix validation

* pylint bypass

* pylint bypass

* fix this

* fix mypy

* yerp

* fix test

* fix test

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* wrap add sheets

* fix linting issues

* fix unit test

* ignore typing

* fix editting and paste issues

* remove query

* fix this

* fix test

* add test back

* fix error messaging

* update url messaging on error

* change error type

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* add errors for sheets with no name

* fix

* fix messaging for gsheets

* stop pylint

* update line

Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
Co-authored-by: Arash <arash.afghahi@gmail.com>
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-07-28 15:00:27 -04:00
Elizabeth Thompson
3f6c81b621
add timezone selector to alerts and reports (#15920) 2021-07-28 10:02:00 -07:00
John Bodley
671b8f2544
chore: Mypy fix **kwargs type (#15823)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-07-29 04:59:20 +12:00
Beto Dealmeida
3adf8e85cd
feat: send data embedded in report email (#15805)
* feat: send data embedded in report email

* Prettify table

* Change post-processing to use new endpoint

* Show text option only for text viz

* Show TEXT option only to text-based vizs

* Fix test

* Add email test

* Add unit test
2021-07-28 09:43:04 -07:00
Yongjie Zhao
32d2aa0c40
feat: run extra query on QueryObject and add compare operator for post_processing (#15279)
* rebase master and resolve conflicts

* pylint to makefile

* fix crash when pivot operator

* fix comments

* add precision argument

* query test

* wip

* fix ut

* rename

* set time_offsets to cache key

wip

* refactor get_df_payload

wip

* extra query cache

* cache ut

* normalize df

* fix timeoffset

* fix ut

* make cache key logging sense

* resolve conflicts

* backend follow up iteration 1

wip

* rolling window type

* rebase master

* py lint and minor follow ups

* pylintrc
2021-07-28 22:34:39 +08:00
Geido
bdfc2dc9d5
fix: Keep chosen columns sort option when changing a column (#15918)
* Keep sorting

* Fix adding new column
2021-07-28 16:19:58 +02:00
Yongjie Zhao
11b0249803
fix: remove unused time column when update dataset (#14969)
* fix: remove unused time column when update dataset

* fix lint

* set dttm to first datatime column
2021-07-28 21:40:16 +08:00
Ville Brofeldt
eda38a758e
chore: bump superset-ui to 0.17.74 (#15923) 2021-07-28 16:14:14 +03:00
Elizabeth Thompson
ea49aa3d2d
feat: add timezones to report cron (#15849)
* add timezones to report cron

* fix test
2021-07-27 18:28:24 -07:00
David Aaron Suddjian
a3f54a6c7b
chore: small viz gallery tweaks (#15900)
* allow passing styles to selector component

* make onClear optional

* remove broken font-size declarations

* fix bad hook dependency

* move all charts selector outside of Collapse

* stop hiding all charts button

* slight copy change

* remove x

* min left pane size

* remove default p bottom margin

* remove unused import

* fix test
2021-07-27 18:21:19 -07:00
Beto Dealmeida
2ce676d20d
feat: call screenshot to store query_context (#15846)
* feat: call screenshot to store query_context

* Add unit test

* Move updateQueryContext to ExploreChartPanel

* Add error handling

* Fix code

* Fix logic
2021-07-27 14:02:27 -07:00
Grace Guo
8c7e09e500
fix: Select a query from History and Run (#15891)
* fix: Run query picked from History

* remove sql from component local state
2021-07-27 13:24:48 -07:00
aspedrosa
e5540b79ec
fix: no roles being returned for anonymous user (#15585) 2021-07-27 12:22:39 -06:00
Michael S. Molina
663dd3f853
chore: Improves the layout of the VizTypeGallery component (#15907)
* chore: Improves the layout of the VizTypeGallery component

* copy edit

* Enables search

Co-authored-by: Evan Rusackas <evan@preset.io>
2021-07-27 15:17:36 -03:00
Kamil Gabryjelski
3f5237a3c1
feat(explore): new datasets have autocomplete filters enabled if UX_BETA is set (#15864)
* feat(explore): new datasets have autocomplete filters enabled if UX_BETA is set

* Lint fix

* Set autocomplete to True in example datasets

* Use "IN" as a default operator in dnd filters

* Default operator only if UX_BETA enabled
2021-07-27 17:40:10 +02:00
Janis Puris
019e74652d
Update alerts_reports.mdx (#15904)
Slack requires `chat:write` as part of "OAuth & Permissions" for the slack integration to be able to post messages.
2021-07-27 09:47:04 -04:00
Yongjie Zhao
94e759dbfa
chore: bumping superset-ui 0.17.73 (#15901) 2021-07-27 14:26:39 +08:00
Yongjie Zhao
315c52a328
fix: dashboard url error when edit slug (#15893) 2021-07-27 08:49:29 +08:00
Beto Dealmeida
eeba326f8b
chore: set UUID of examples DB (#15724) 2021-07-26 17:45:48 -07:00
chuancy
2d0056507b
Incorrect translations (#15813) 2021-07-26 17:41:06 -06:00
Geido
e6a37022ac
fix(Explore): "Customize" tab rendering behavior (#15841)
* Remove getDerivedStateFromProps

* Set loading
2021-07-26 17:32:27 -06:00
Geido
1297fd9169
fix(dashboard): Refresh Native Filters when Dashboard refreshes (#15890)
* Implement onRefresh action

* Update tests

* Clean up

* Fix type

* Add effect dependency
2021-07-26 17:27:08 -06:00
Hugh A. Miles II
62550db385
fix: Update Query Context on Explore loading (#15865)
* create serialize json function

* saving for now

* saving for now

* lint

* cleanup

* fix network request

* update test

* Update tests/integration_tests/charts/api_tests.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-07-26 12:43:25 -07:00
Michael S. Molina
5be0a89625
fix: Charts sort by in edit mode gets cut off (#15896) 2021-07-26 16:38:38 -03:00
Michael S. Molina
7aeb15031d
fix: Download as image of dashboard chart did not work (#15897) 2021-07-26 16:36:45 -03:00
Michael S. Molina
f6115a73d4
fix: Side menu of the dashboard component will scroll out of dashboard (#15888) 2021-07-26 12:16:40 -06:00
Michael S. Molina
16a26bac35
fix: New time range filter initially show advance section (#15889) 2021-07-26 12:14:43 -06:00
Yaozong Liu
fb5dce07b7
chore: implement new mockup to the new viz gallery (2nd iteration) (#15868)
* chore: implement new mockup to the new viz gallery

* fix: update package-lock

* fix: add license

* fix: reduce duplication and fit within the sidebar

* fix: ut
2021-07-26 11:10:39 -07:00
Beto Dealmeida
2f95f81be7
feat: apply post processing to chart data (#15843)
* feat: apply post processing to chart data

* Fix tests and lint

* Fix lint

* trigger tests
2021-07-26 10:58:59 -07:00
Yongjie Zhao
873daf3867
chore: bumping superset-ui 0.17.72 (#15895) 2021-07-26 14:38:33 -03:00
Elizabeth Thompson
b81f120916
add timezone selector component (#15880) 2021-07-26 09:30:35 -07:00
John Bodley
6d3e19d857
fix(15403): Re-enable canceling query for Hive and Presto (#15878)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-07-26 08:04:56 -07:00
Michael S. Molina
9c81599d21
chore: Adds the tests that need to be coded for the Select component (#15885) 2021-07-25 21:01:48 +02:00
David Aaron Suddjian
7330aefeac
feat: deprecate plugins by their metadata (#15882) 2021-07-24 16:52:07 +08:00
John Bodley
65728ea049
fix(15482): Propagate SupersetSecurityException error (#15874)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-07-24 10:19:49 +12:00
John Bodley
4ba17092fa
fix: Ensure SupersetError.extra is always a dict (#15848)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-07-24 10:19:30 +12:00
Duy Nguyen Hoang
73b436ab9f
fix: Unable to create alerts/report after introduced creation_method (#15760) 2021-07-24 09:36:29 +12:00
Beto Dealmeida
f9b72505fb
fix: revert DEFAULT_SQLLAB_LIMIT to default (#15869) 2021-07-23 11:38:42 -07:00
Kamil Gabryjelski
d408ff8466
fix(explore): show multi queries results in View query modal and data pane (#15840)
* fix(explore): show multiple queries in View query modal

* show multiple queries result in data pane

* fix tests

* lint fix
2021-07-23 17:04:22 +02:00
Elizabeth Thompson
9c854ff1f1
bump typescript (#15847) 2021-07-22 16:30:25 -07:00
Elizabeth Thompson
c1eb9cec49
add timezone to report schedule (#15747) 2021-07-22 15:36:15 -07:00
Geido
ebec353351
fix(dashboard): Remove edit from url params when discarding changes (#15709)
* Remove edit from url params

* Change replace to assign
2021-07-22 12:58:43 -07:00
Geido
d4bec135e8
Render value immediately (#15820) 2021-07-22 11:46:01 -07:00
Michael S. Molina
e660de6936
chore: Adds lazy loading to the Select component (#15799) 2021-07-22 15:17:31 -03:00
Phillip Kelley-Dotson
04c0680f6e
feat(homepage): conditionally render viewed tab and move examples to chart and dashboard table (#15792)
* test examples

* fix lint

* more lint

* last test

* add suggestions

* fix lint

* fix wrong localstor

* fix tests

* add suggestions

* Update superset-frontend/src/views/CRUD/types.ts

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

* Update superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

* fix lint

* fix default tab

* fix test

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2021-07-22 10:41:49 -07:00
Kamil Gabryjelski
5e1c469f42
feat(explore): default aggregate for string/numeric columns when creating metric (#15798)
* feat(explore): default aggregate for string/numeric columns when creating metric

* Fix for editing items with the same label

* Replace componentDidUpdate with getDerivedStateFromProps

* Wrap changes in feature flag
2021-07-22 18:23:10 +02:00
Kamil Gabryjelski
040b94119b
chore: bump superset-ui to 0.17.71 (#15839) 2021-07-22 17:10:45 +02:00