Commit Graph

8083 Commits

Author SHA1 Message Date
Yongjie Zhao a786373fff
feat: auto sync table columns when change dataset (#15887)
* feat: auto sync dataset metadata when change dataset

* diablo sync button when edit mode

* handle undefine schema

* fix py UT

* fix FE UT

* improve test coverage

* fix UT
2021-08-02 16:55:31 +08:00
David Aaron Suddjian 46188c1011
fix(explore): calculate query staleness correctly (#15994) 2021-07-31 19:46:34 -06:00
Beto Dealmeida ce6bc3b598
fix: save DB with with query (#15991) 2021-07-31 10:48:15 -07:00
Yongjie Zhao c01d42fd98
fix: eliminate cartesian product columns in pivot operator (#15975)
* fix: eliminate cartesian product columns in pivot operator

* wip

* wip

* minor tip
2021-07-31 16:02:04 +08:00
Jesse Yang b73d7baedf
fix(dashboard): FilterBox JS error when datasets API is slow (#15993) 2021-07-30 22:06:29 -07:00
stellalc7 324ecb31fc
fix: three button styles to tertiary (#15978)
* changed margin right on warning icon to 8px

* fixed to grid units from pixels

* Changed three buttons styles to tertiary
2021-07-31 10:25:55 +08:00
Phillip Kelley-Dotson 5fd798afb7
chore: change dropdown icons from horizontal to vertical (#15958)
* change icons

* add size

* fix storybook

* fix favstar, add new icons, and others

* fix lint
2021-07-30 17:02:40 -06:00
serenajiang c37c56c2e4
Revert "fix: Select a query from History and Run (#15891)" (#15992)
This reverts commit 8c7e09e500.
2021-07-30 15:24:07 -07:00
Elizabeth Thompson 908db3ab31
fix select width (#15986) 2021-07-30 14:58:03 -07:00
David Aaron Suddjian 7e691f9849
Update bug_report.md (#15987) 2021-07-30 13:27:34 -07:00
Michael S. Molina a3a762e5a7
fix: Dataset field required 2 clicks to select when dashboard was empty (#15985) 2021-07-30 17:23:00 -03:00
Beto Dealmeida f1b57c0d88
fix: DB add modal (#15981) 2021-07-30 14:32:48 -04:00
Beto Dealmeida 2d61f15153
feat: send post-processed data in reports (#15953)
* feat: send post-processed data in reports

* Fix tests and lint

* Use enums

* Limit Slack message to 4k chars
2021-07-30 09:37:16 -07:00
Michael S. Molina cc704dd53a
fix: Cancel alert is not appearing to all native filters modal fields (#15925) 2021-07-30 11:59:36 -03:00
Michael S. Molina eb78f4332f
fix: Name change is not lost in left side of modal when return to edition after aborting changes (#15952) 2021-07-30 08:21:12 -03:00
Michael S. Molina e8f18f4dbf
fix: Drag inner tab to outer tab while editing a dashboard will show an error (#15946) 2021-07-30 08:20:43 -03:00
Geido c2e4290392
fix(dashboard): Add required message in the tooltip for the time range filter (#15941)
* Add required msg in tooltip

* Fix lint

* Keep red border on hover
2021-07-30 09:44:33 +02:00
Hugh A. Miles II 3b9b2c97aa
Update ModalHeader.tsx (#15949) 2021-07-29 16:23:46 -04:00
Phillip Kelley-Dotson 02f9749d18
feat(homepage): add more cards and new layout (#15853)
* testing out

* use %

* test

* more changes for testing

* add styles

* initial test commit

* remove ff

* default to false

* fix bug

* fix lint

* fix test

* ensure thumbnails if ff is true

* add back examples and fix layout

* fixes

* new layout

* add suggestions

* changes descriptions

* add changes

* Update superset-frontend/src/components/ListViewCard/index.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* add const for req

* Update superset-frontend/src/views/CRUD/utils.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* fix grid-gap

* fix padding

* fix cards in listviews

* address comments

* removing fractional pixel

Co-authored-by: Evan Rusackas <evan@preset.io>
2021-07-29 11:57:00 -07:00
Beto Dealmeida f4739f427e
feat: post-processing for pivot table v2 (#15879)
* feat: add pivot v2 post-processing

* Fix lint
2021-07-29 11:05:56 -07:00
Beto Dealmeida 6afa840659
feat: send report data to Slack (#15806)
* feat: send data embedded in report email

* Change post-processing to use new endpoint

* Show TEXT option only to text-based vizs

* Fix test

* feat: send data embedded in report email

* feat: send report data to Slack

* Add unit test

* trigger tests
2021-07-29 10:13:28 -07:00
Geido 56dd2a3269
fix(dashboard): Show the filters popover behind the dashboard header when scrolling (#15933)
* Fix z-index

* Fix z-index dropdown and maximized chart filters
2021-07-29 18:19:25 +02:00
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