Commit Graph

1698 Commits

Author SHA1 Message Date
Geido d86880d49b
Revert style (#14840) 2021-05-30 23:11:57 -06:00
rijojoseph07 a85f5c1344
feat(trino): add support for user impersonation (#14843)
* trino impersonation feature

* Extra options label update

* Update superset/db_engine_specs/trino.py

Co-authored-by: Đặng Minh Dũng <dungdm93@live.com>

Co-authored-by: rijojoseph01 <rijo.joseph@myntra.com>
Co-authored-by: Đặng Minh Dũng <dungdm93@live.com>
2021-05-29 09:54:18 +03:00
Hugh A. Miles II 0eb34be789
leverage qs to create new tab (#14855) 2021-05-28 10:05:36 -07:00
Kamil Gabryjelski 507d4d791f
chore: Bump @superset-ui/legacy-preset-chart-deckgl to 0.4.7 (#14871) 2021-05-28 17:30:21 +02:00
Kamil Gabryjelski f82a085175
feat(dashboard): Highlight tabs that contain a chart in scope of focused native filter (#14865)
* feat(dashboard): Highlight tabs that contain a chart in scope of focused native filter

* Optimizations and improvements

* Use Set instead of array

* Simplify logic

* Change variable name
2021-05-28 11:32:32 +02:00
Michael S. Molina 8519a09086
chore: Improves the native filters UI/UX - iteration 5 (#14882) 2021-05-28 10:29:16 +03:00
Geido fce8ac27f0
Add style (#14839) 2021-05-28 09:32:51 +03:00
Ville Brofeldt b72e5e0aae
feat(native-filters): improve inverse selection indicators (#14873) 2021-05-28 07:45:37 +03:00
Yongjie Zhao acbbced20b
fix: timerange in filter box error (#14890) 2021-05-28 11:28:58 +08:00
Kamil Gabryjelski 281d637674
Don't run query when control panel has errors (#14687) 2021-05-27 08:13:17 -07:00
AAfghahi 877201f1e0
margin style (#14849) 2021-05-27 10:39:19 -04:00
Michael S. Molina a6d54b681b
chore: Improves the native filters UI/UX - iteration 4 (#14854) 2021-05-27 13:37:36 +03:00
Geido ad4ce83327
fix(native-filter): Default value multi-select height in native filters (#14816)
* Fix height

* Fix height sidebar

* Move style
2021-05-27 13:05:58 +03:00
Ville Brofeldt 2b4e0ec9e0
feat(native-filters): sort selected values on blur (#14842)
* feat(native-filters): sort selected values on blur

* remove new icons
2021-05-27 09:36:33 +03:00
Yongjie Zhao 9f54231af1
fix: filterbox apply single value (#14841)
* fix: filterbox apply single value

* fix ci

* fix e2e
2021-05-27 14:00:48 +08:00
Ville Brofeldt bd2c087f78
fix(native-filters): remove indicators outside scope (#14838)
* fix(native-filters): remove indicators outside scope

* lint
2021-05-27 07:53:52 +03:00
AAfghahi 80d22f5b33
report dropdown (#14852) 2021-05-26 17:17:35 -04:00
Ville Brofeldt e466066229
chore(native-filters): introduce experimental feature flag (#14814)
* chore(native-filters): introduce experimental feature flag

* break out util and add tests

* fix import
2021-05-26 17:20:33 +03:00
Einat Bertenthal 3224e75193
feat: show max tag count in select filter (#14486)
Co-authored-by: einatnielsen <einat.bertenthal@nielsen.com>
2021-05-26 14:17:58 +03:00
Michael S. Molina 0c0eccb81a
chore: Improves the native filters UI/UX - iteration 3 (#14824) 2021-05-26 10:49:00 +03:00
Einat Bertenthal dfe030b835
feat: chart gallery search improvement (#14484)
* feat: chart gallery search improvement

* test: adding unit test for VizTypeControl

* fix: lint errors

Co-authored-by: einatnielsen <einat.bertenthal@nielsen.com>
2021-05-25 18:41:53 +03:00
Kamil Gabryjelski 63dc035d6a
feat(explore): Remove default for time range filter and Metrics (#14661)
* feat(explore): Remove default for time range filter and Metrics

* Merge errors with same messages

* Fix e2e test

* Rename a variable

* Bump packages

* Fix unit tests
2021-05-25 15:55:41 +02:00
Einat Bertenthal add35f9fe4
fix: set table name width to not hide icons when name is too long (#14489)
* fix: set table name width to now hide icons when name is too long

* fix: table style

Co-authored-by: einatnielsen <einat.bertenthal@nielsen.com>
2021-05-25 16:44:28 +03:00
Ville Brofeldt 9a96dac3a7
fix(native-filters): loop bug by simplify state handling (#14788) 2021-05-25 15:03:22 +03:00
simcha90 9bf07cc428
fix(native-filters): Manage default value of filters by superset (#14785)
* fix:fix get permission function

* feat: manage default value in superset
2021-05-25 11:25:13 +03:00
AAfghahi 252c64b397
fix: Additional ResultSet tests (#14741)
* fixing tests

* added testing

* Update superset-frontend/spec/javascripts/sqllab/ResultSet_spec.jsx

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

* Update superset-frontend/spec/javascripts/sqllab/ResultSet_spec.jsx

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

* Update superset-frontend/spec/javascripts/sqllab/ResultSet_spec.jsx

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

* Update superset-frontend/spec/javascripts/sqllab/ResultSet_spec.jsx

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

* Update superset-frontend/spec/javascripts/sqllab/ResultSet_spec.jsx

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

* removed decribe

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2021-05-24 17:42:09 -04:00
Beto Dealmeida 65f90096fd
fix: use encodeURIComponent when getting table metadata (#14790) 2021-05-24 12:20:31 -07:00
Elizabeth Thompson fbe6f16052
database modal should close on connect with tab layout (#14771) 2021-05-24 13:13:56 -04:00
Ville Brofeldt e9657afe4b
feat(native-filters): add search all filter options (#14710)
* feat(native-filters): add search all filter options

* add tests

* fix default value

* implement ILIKE operator

* rebump packages

* fix test

* address comments

* fix state changes coming from application

* fix debouncer
2021-05-24 16:33:59 +03:00
Yongjie Zhao 8484ee653f
fix: extra query in Dashboard when native filter enabled (#14770) 2021-05-24 20:53:14 +08:00
Michael S. Molina bee6f3ba8a
chore: Improves the native filters UI/UX - iteration 2 (#14753) 2021-05-24 15:22:05 +03:00
simcha90 2b2a8c4bcd
fix(native filters): Fix explore state (#14779)
* fix:fix get permission function

* fix: fix ownState for unsaved explore chart
2021-05-24 14:00:26 +03:00
Kamil Gabryjelski d03c608ce1
fix(explore): DndColumnSelect not handling controls with "multi: false" (#14737)
* fix(explore): DndColumnSelect not handling controls with multi={false}

* Implement translations for singular and plural cases

* Fix test
2021-05-24 09:53:46 +02:00
Beto Dealmeida 9e13476714
feat: enable user impersonation in GSheets (#14767) 2021-05-22 13:46:36 -07:00
Beto Dealmeida fb662698ce
fix: add DB should not say it's Postgres (#14766) 2021-05-22 13:46:19 -07:00
Yongjie Zhao d71b8b38d6
Revert "fix(dashboard): multiple query trigger when native filter enabled (#14734)" (#14762)
This reverts commit 88de4109e7.
2021-05-22 15:11:58 +08:00
Elizabeth Thompson c7aee4e27b
feat: save database with new dynamic form (#14583)
* split db modal file

* split db modal file

* hook up available databases

* add comment
2021-05-21 18:25:56 -04:00
Michael S. Molina 04d94d2b6c
chore: Removes ColorSchemeControl.less (#14199) 2021-05-21 14:46:01 -07:00
Geido fb6d21a168
fix(explore): Icons width (#14717)
* Revert width and margin

* Adjust width

* Increase margin
2021-05-21 14:41:55 -07:00
Phillip Kelley-Dotson f96fea166c
feat: make tabs sticky in homepage (#14695)
* inital commit

* lint

* fix loading state for edit activity

* add dep

* lint fix

* add condition

* lint being lint
2021-05-21 14:37:54 -07:00
Michael S. Molina 1e8b6eb848
fix: Fixes right menu layout in different screen sizes (#14689) 2021-05-21 11:21:21 -07:00
Yongjie Zhao 88de4109e7
fix(dashboard): multiple query trigger when native filter enabled (#14734)
* fix(dashboard): multiple query trigger when native filter enabled

* fix lint

* wip
2021-05-21 09:24:42 -07:00
Kamil Gabryjelski c831655913
feat(native-filters): Highlight charts affected by focused native filter (#14693)
* Highlight charts affected by focused native filter

* Remove tabs animation on dashboard

* Remove a test that checks for "animated={true}" prop on tabs

* Move hooks types to a separate interface
2021-05-21 15:54:33 +02:00
Phillip Kelley-Dotson 29828f8552
fix: homepage card layout (#14725)
* initial commit

* ensure card lsize
2021-05-20 19:43:12 -07:00
Michael S. Molina 173c486d4a
fix: Unable to clear default value in native select filter (#14739) 2021-05-20 19:42:33 -07:00
David Aaron Suddjian 0e86a6b81c
fix(sqllab): don't store user in localstorage (#14722)
* fix(sqllab): remove user info from localstorage

* filter out user data when loading localstorage
2021-05-20 16:35:56 -07:00
Lyndsi Kay Williams e4103c272e
feat: Labeled Error-bound Input (#14530)
* Error Input Form created

* Adjusting styling

* testing complete

* Corrected component naming in Form

* testing complete

* Corrected component naming in Form

* Renamed stories file to appropriate name

* add image for alert

* Fixed test

* Switched from px to theme

* Adjusting LabeledErrorBoundInputProps

* validation now accepts a string

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
2021-05-20 14:01:27 -07:00
Michael S. Molina d924223950
chore: Improves the native filters UI/UX - iteration 1 (#14714) 2021-05-20 19:52:01 +03:00
Yaozong Liu ea37274180
fix(explore): fix clearing select data causes popover dismiss (#14221)
* fix(explore): fix clearing select data causes popover dismiss

* wip: lint

* wip: lint
2021-05-20 17:26:27 +03:00
Elizabeth Thompson a9d888ad40
check limiting factor on query results (#14719) 2021-05-19 14:38:57 -07:00
David Aaron Suddjian 26c0b30ec9
fix(explore): add padding to the adhoc filter value select (#14679) 2021-05-19 14:08:41 -07:00
David Aaron Suddjian 152b0d0575
fix(explore): checkbox form control formatting (#14701)
* fix(explore): add inline option for the field that only gets used in one place

* typescriptify

* unnecessary component wrapping
2021-05-19 14:04:09 -07:00
Hugh A. Miles II 4160e45398
feat: Add headers for DatabaseModal (#14647)
* update styles sheets

* save this

* add backend

* update backend reference

* update styles

* my style updates

* sticky header
2021-05-19 13:20:02 -04:00
Hugh A. Miles II ec0a7922fe
feat: Add Parameters fields to GET Database (#14653) 2021-05-19 10:25:20 -04:00
Michael S. Molina be8c176df2
chore: Removes less from SliceAdder (#14448) 2021-05-19 00:16:44 -07:00
Geido a0881fb157
Add filter_box full height (#14657) 2021-05-19 00:13:16 -07:00
Evan Rusackas c2bd684454
fix(Explore): fixes broken layout of tooltips (#14529)
* fix: moves LESS styles into Emotion, fixes broken layout of tooltips

* fix: tests

* style: linting

* style: better styling location
2021-05-18 21:55:09 -07:00
Beto Dealmeida c3d1f1084e
feat: redirect 404/500 to static pages (#14677)
* feat: redirect 404/500 to static pages

* Show pages only on html requests
2021-05-18 20:50:39 -07:00
Ajay M 90378ed94e
fix(explore): #10098 boolean filter not working (#14567)
* Restrict operators when column is boolean

* refactor 'isOperatorRelevant' a little bit

* Include 'BOOLEAN' to handle presto

* Update tests

* number column should show bool operators

* fix test - some dbs translate true/false to 1/0

* Fix tests and add linting

* When column type is boolean, show bool operators

* Address PR comments - simplify conditions

* Fix a linting error

* Addressing PR comment - remove unused variables
2021-05-18 14:39:19 -07:00
Ajay M 84e8dc71f6
feat(dashboard): View query of the chart in dashboard (#14667)
* Extract view query component out

* Typo correction

* Fix and rename tests

* Remove logs, and test code

* Rename file - fix tests

* Fix a typo

* Linting errors, add Apache License Header
2021-05-18 13:17:11 -07:00
AAfghahi a7a011cce5
feat: Better return messages in SQL Editor (#14381)
* Sqllab limit

* Add migration script

* Set default values

* initial push

* revisions

* moving migration to separate PR

* revisions

* Fix apply_limit_to_sql

* all but tests

* added unit tests

* result set

* first draft

* revisions

* made user required prop, added it to all places ResultSet is imported

* changed QueryTable test to allow for useSelector

* Query Table working

* working with heights

* fixed scrolling

* got rid of animated

* fixed tests, revisions

* revisions

* revisions

* heights

* fun with heights

* alert state

* aaron helped me fix this

* better alert messages

* fixed result set test

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-05-18 11:02:06 -07:00
Michael S. Molina 32f5f365d8
fix: Fixes email body when sharing a chart by email (#14664) 2021-05-18 00:43:36 -07:00
Yaozong Liu 2320bd44d4
fix(sqllab): fix error message (#14651) 2021-05-17 16:20:03 -07:00
Geido b5e9854ddc
Fix tooltip position (#14656) 2021-05-17 15:49:06 -07:00
Geido 9a9f093e63
Add max width (#14663) 2021-05-17 15:31:09 -07:00
Geido 7a050c59e4
fix(explore): Fix column number calculation (#14665)
* Fixes columns calc

* Fix type
2021-05-17 15:30:12 -07:00
Phillip Kelley-Dotson 3ad8b546e6
fix: nav submenu dropdown styles (#14580)
* fix nav submenu dropdown styles

* lint

* fix mobile view styles

* run lint

* address comments

* undo comit lock files

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

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

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2021-05-17 13:58:02 -07:00
Michael S. Molina fd8b2cb89b
fix: Fixes group by control icon colors (#14674) 2021-05-17 13:53:32 -07:00
Geido ea96d95622
Clear search (#14655) 2021-05-17 13:30:16 -07:00
Michael S. Molina 9deb7aa3c1
chore: Replaces Icon with Icons component - iteration 1 (#14469) 2021-05-17 10:24:56 -07:00
Michael S. Molina 4e6169e0f9
chore: Adjust language picker theme to match other menus (#14644) 2021-05-17 10:24:30 -07:00
Michael S. Molina 1b47902e47
chore: Removes react-bootstrap and react-bootstrap-slider (#14641) 2021-05-17 10:22:22 -07:00
Phillip Kelley-Dotson 60f903ff58
fix: fix submenu header double line (#14631)
* fix submenu header

* remove unused css

* lint

* address comment

* address more comments
2021-05-14 14:57:54 -07:00
David Aaron Suddjian 884ded0507
fix: roles undefined on public dashboards (#14648) 2021-05-14 14:28:47 -07:00
David Aaron Suddjian f16c708fab
fix(dashboard): check edit permissions correctly on frontend (#14626)
* fix(dashboard): check edit permissions correctly on frontend

* fix types, appease linter

* handle nulls better
2021-05-14 12:18:38 -07:00
Michael S. Molina 9cb4a4602f
fix: Fixes top level tabs and automatic scroll (#14624) 2021-05-14 11:50:20 -07:00
Geido 3466cb253e
Fix class name (#14609) 2021-05-14 11:05:52 -07:00
Cedric Gampert 74473e2ad1
fix: do not render favorite favStars and filters for anonymous user (#14120)
* fix: do not render favorite favStar and filter for anonymous user

* fix: prevent anonymous user to trigger the favstar view route

* fix: lint over previous commit

* fix: linter follow-up
2021-05-14 08:05:50 -07:00
Ville Brofeldt 97c9e37c24
perf: memoize db_engine_spec in database (#14638)
* perf: memoize db_engine_spec in sqla table classes

* remove extended cypress timeouts
2021-05-14 12:49:35 +03:00
Evan Rusackas bf90885828
fix: Removing specific column widths, letting things flex naturally. (#14637) 2021-05-14 12:12:37 +03:00
Phillip Kelley-Dotson e4e23ea487
fix: fix adhocpopovers tab animate. (#14478)
* fix popover

* addd tabs default css

* fix lint

* fix tests

* address comments

* lint fix

* fix test

* lint
2021-05-13 20:30:27 -07:00
Michael S. Molina e4d24242b4
refactor: Bootstrap to AntD - NavDropdown (#14557) 2021-05-13 14:54:09 -07:00
Michael S. Molina d31958cbd2
fix: Fixes #12672 (#14525) 2021-05-13 12:53:24 -07:00
Geido 1e601483e3
fix(explore): Filters Tooltip is not showing the full content (#14618)
* Add getTooltipTitle

* Fix tests
2021-05-13 10:03:22 -07:00
Evan Rusackas 568061e8d4
feat: bumping echarts plugin, adding new treemap plugin (#14560)
* chore: bumping echarts plugin

* feat: Upgrading to new treemap

* bump @superset-ui/plugin-chart-echarts 0.17.47

Co-authored-by: Yongjie Zhao <yongjie.zhao@gmail.com>
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-05-13 22:52:17 +08:00
Ville Brofeldt 3f6bd1e4a4
feat: add generic type to column payload (#14547)
* feat: add generic type to column payload

* feat: add generic type to column payload

* xit flaky test
2021-05-13 09:36:09 +03:00
Evan Rusackas ad699e8b48
fix: don't show busted label for unknown data types (#14585) 2021-05-12 23:16:54 -07:00
Michael S. Molina 331eb10fb9
refactor: Bootstrap to AntD - Form - iteration 4 (#14546) 2021-05-12 23:01:43 -07:00
Phillip Kelley-Dotson 3eef38f309
refactor: change xsm Icons and dnd icons to new dynamic icons (#14419)
* intial commit

* fix test and add more icons

* fix lint
2021-05-12 22:52:25 -07:00
Phillip Kelley-Dotson 5f7722cb36
fix: error icon spacing in explore (#14597)
* fix error message icon

* lint
2021-05-12 22:42:40 -07:00
Beto Dealmeida 31f406a526
feat: API endpoint to validate databases using separate parameters (#14420)
* feat: new endpoint for validating database parameters

* Rebase

* Remove broken tests
2021-05-12 18:32:10 -07:00
Ville Brofeldt f1c32b9576
feat(native-filters): add sort metric to select (#14590) 2021-05-12 23:28:45 +03:00
Hugh A. Miles II 0d240c3841
fix: properly keep state on queryEditorSetSql on tabstateview PUT (#14579)
* send queryid up with setSQL

* pass latest query id

* update

* cleanup
2021-05-12 15:20:26 -04:00
Phillip Kelley-Dotson bfbf767663
fix: dashboard side actions (#14587)
* fix dashboard side actions

* lint being lint
2021-05-12 11:47:29 -07:00
Grace Guo ada380982b
fix: bring back dashboard perf logger (#14584)
* fix: bring back dashboard perf logger

* add test
2021-05-12 08:25:46 -07:00
Evan Rusackas 6d786d4d47
fix: Adds space under dataset change warning (#14582)
* fix: Adding a little margin under the warning about changing datasets

* feat: moves Alert spacing from a css override to an Alert prop

* fix: prop needs to be optional... proptional

* fix: moving the typing to a better spot, adding the new prop to storybook.

* style: linting
2021-05-12 10:44:14 +08:00
Geido b960843015
fix: Menu does not appear on scroll in Dashboard (#14566)
* Fix menu

* Fix test
2021-05-11 11:38:58 -07:00
Evan Rusackas eaeb8f71c8
style: adding padding to the sides of badges, so they look less claustrophobic (#14569) 2021-05-11 11:36:58 -07:00
Geido 3a4536acac
fix: Column name and icons alignment in the Datasource Panel (Explore) (#14551)
* Fix column name alignment

* Fix space wrap
2021-05-11 10:27:46 -07:00
Geido e21beb76f1
fix: White space between Chart and Data panel in Explore (#14495)
* Adjust white space

* Adjust chart padding
2021-05-10 13:03:43 -07:00
Phillip Kelley-Dotson cee22e28c0
refactor: remove panel from userinfo component (#14364)
* first pass

* fix merge

* fix lint

* covert pane to styled comp

* add theme

* fix lint

* fix test

* remove unused import
2021-05-08 15:04:16 -07:00
Phillip Kelley-Dotson e16c4d856e
refactor(navbar): migrate Bootstrap navbar to AntD menus (#14184)
* initial commit

* more polish

* fix types and remove tests

* fix tests, update menu css, add oetc

* fix lint and precommit

* fix test

* update css, address comments

* fix lint

* update submenu for extra buttons

* remove block and lint

* fix lint

* remove block

* adjust margin

* test round 2

* test round 3

* about section

* src/components/Menu/Menu.test.tsx

* remove redundant test

* fmore pointed test

* fix lint

* remove unused css

* fix dashboard nav view

* update comments

* use suggestion

* lint-fix

* move css, fix dropdown and text

* lint

* rearchitect main nav component

* run lint fix

* nit
2021-05-08 14:57:59 -07:00
Michael S. Molina e7a4734742
chore: Removes tabs animation by default (#14496) 2021-05-08 14:22:16 -07:00
Michael S. Molina 79ff96269b
refactor: Bootstrap to AntD - Form - iteration 3 (#14502) 2021-05-08 12:34:52 -07:00
Evan Rusackas 4f000cc8d1
fix: bringing metric type icon styles into SelectControl (#14531) 2021-05-08 15:47:25 +08:00
Ville Brofeldt 66a4c94a1e
fix(chart-data): handle url_params in csv export and native filters (#14526) 2021-05-07 21:07:44 +03:00
simcha90 e8e838e279
feat(native-filters): Auto apply changes in FiltersConfigModal (#14461)
* fix:fix get permission function

* feat: auto apply changes after save filters config modal

* fix: repopulate default values

* test: fix tests

* test: fix tests

* fix: fix CR notes

* fix: fix CR notes
2021-05-07 13:06:59 +03:00
Ville Brofeldt 680c96ec54
feat(explore): collapse time section if no ts columns (#14493)
* feat(explore): collapse time section if no ts columns

* fix viz change bug

* fix test
2021-05-07 11:55:54 +03:00
Mayur 05c24056b5
add new plugin (#14516) 2021-05-07 10:21:00 +03:00
Ville Brofeldt 19b408b08d
chore: bump superset-ui to 0.17.44 (#14515) 2021-05-07 09:31:34 +03:00
Geido 10a53b7f5d
fix: Add extra check to loggerMiddleware (#14492)
* Add extra check

* Update superset-frontend/src/middleware/loggerMiddleware.js

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

* Fix linting issue

Co-authored-by: Evan Rusackas <evan@preset.io>
2021-05-06 22:39:58 -07:00
Michael S. Molina 68058b0ad9
chore: Moves spec files to the src folder - iteration 4 (#14380) 2021-05-05 22:01:05 -07:00
Michael S. Molina 331310db9b
refactor: Bootstrap to AntD - Form - iteration 2 (#14379) 2021-05-05 22:00:37 -07:00
Michael S. Molina fa510df624
chore: Adds QueryParamProvider to testing helper (#14195) 2021-05-05 21:58:40 -07:00
Rob DiCiuccio fa0915d9e6
Attempt to reduce asyncEvent test flakiness (#14497) 2021-05-05 19:34:13 -07:00
Elizabeth Thompson 9b42eec064
feat: db modal split (#14470)
* refactor: split db modal file (#14436)

* split db modal file

* fix tests

* fix extra options

* update database id methodology
2021-05-05 19:03:19 -04:00
AAfghahi 12baba03cc
fix: Query History (#14498)
* fix for QUery History

* fixed
2021-05-05 17:00:32 -04:00
Michael S. Molina f9567efe81
fix: Fix #13831 (#14490) 2021-05-05 13:48:48 -07:00
Ajay M c832542570
fix(dashboard): Prevent char overflow when displaying chart description (#14467)
* Force refresh the chart on toggle display description

* Use forceUpdate instead of forceRefresh

* Instead of forceUpdate, add a state for desciption height

Co-authored-by: Ajay Mancheery <ajaymancheery@Ajays-MacBook-Pro.local>
2021-05-05 13:30:10 -07:00
Jesse Yang ae256a9119
chore: bump sankey and pivot table chart to 0.17.43 (#14477) 2021-05-05 11:17:18 -07:00
Evan Rusackas 8ccd19629a
fix: explore flex layout is sometimes too short (#14481) 2021-05-05 10:21:15 -07:00
Michael S. Molina 7182a1b390
chore: Removes common storybook (#14418) 2021-05-05 09:53:14 -07:00
Kamil Gabryjelski b030c9801c
chore: Move styles from .less stylesheet to emotion in Explore (#14485)
* Move some styles from .less stylesheet to emotion in Explore

* Replace Global styles with local styled components

* Address comments
2021-05-05 15:36:52 +02:00
Ville Brofeldt 93c7f5bb44
fix(annotations): pass force param to annotation request (#14483)
* fix(annotations): pass force param to annotation request

* use strtobool

* add util for parsing bools
2021-05-05 13:52:17 +03:00
Ville Brofeldt 5aef6bccd1
feat(viz): add funnel chart (#14480) 2021-05-05 14:26:12 +08:00
Jesse Yang 23014e9233
chore: upgrade @emotion (#14454) 2021-05-04 15:26:16 -07:00
Elizabeth Thompson 2242f74818
Revert "refactor: split db modal file (#14436)" (#14466)
This reverts commit 2d991ec359.
2021-05-04 14:40:58 -04:00
David Aaron Suddjian 21cf12a480
chore(dashboard): Integrate dashboard app into the SPA bundle (#14356)
* chore(dashboard): Integrate dashboard app into the SPA bundle

* fix url params

* change variable name

* change title correctly

* custom css

* lint

* remove unused file

* remove content assertions from dashboard tests

* fix case with missing bootstrap data

* fix: respect crud views flag

* crud views -> spa

* remove unused dashboard templates

* fix: remove unused variable

* fix: missed a spot with the crudViews -> spa

* router link to dashboard from dashboard list page

* link using the router when in card mode

* lint

* fix tests, add memory router

* remove  dashboard app files

* split up the bundle a little more

* use webpack preload
2021-05-04 08:51:17 -07:00
Amit Miran 158ac302d8
chore: bump table plugin to 0.17.42 (#14460) 2021-05-04 17:41:02 +03:00
simcha90 582900c170
perf(native-filters): Load native filters after charts (#14443)
* fix:fix get permission function

* refactor: filter default value

* refactor: update default value loading

* refactor: apply defaultValues

* lint: fix lint

* lint: fix lint

* test: fix test

* refactor: use extraFormData for reload charts

* feat: load native filters after after charts

* feat: load filters after charts

* fix: revert changes

* test: fix timers

* test: fix tests
2021-05-04 16:07:40 +03:00
Duy Nguyen Hoang 9a22fb00d9
fix: CSV Export permission is not consistent (#13713) 2021-05-04 10:19:58 +03:00
Jesse Yang a75e4af99b
fix(viz): bump superset-ui to fix bugs in table and graph chart (#14438) 2021-05-03 16:23:42 -07:00
Elizabeth Thompson 2d991ec359
refactor: split db modal file (#14436)
* split db modal file

* fix tests
2021-05-03 17:00:41 -04:00
simcha90 bbb1f2d757
perf(native-filters): avoid unnecessary reloading of charts (#14408)
* fix:fix get permission function

* refactor: filter default value

* refactor: update default value loading

* refactor: apply defaultValues

* lint: fix lint

* lint: fix lint

* test: fix test

* refactor: use extraFormData for reload charts

* test: fix tests

* test: fix tests

* test: fix tests
2021-05-03 14:56:41 +03:00
simcha90 abbf4bf05a
refactor(native-filters): allow cascading only for filter_select (#14441)
* fix:fix get permission function

* refactor: allow cascading only for filter_select
2021-05-02 13:16:10 +03:00
simcha90 1f8de1d06c
test(maximize-chart): Add tests to maximize chart action (#14371)
* fixed FullSize charts broken #13600

* Update ChartHolder.jsx

* fix:fix get permission function

* test: adding tests to full screen

* lint: fix lint

* fix: fix CR notes

* fix: fix CR notes

* fix: fix CR notes

Co-authored-by: toop <mytoop@163.com>
2021-05-02 09:27:38 +03:00
AAfghahi e507508b48
feat: Logic added to limiting factor column in Query model (#13521)
* Sqllab limit

* Add migration script

* Set default values

* initial push

* revisions

* Update superset/views/core.py

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

* moving migration to separate PR

* with migration

* revisions

* Fix apply_limit_to_sql

* all but tests

* added unit tests

* revisions

* Update superset/sql_lab.py

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

* Update superset/sql_parse.py

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

* fixed black issue

* Update superset/views/core.py

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

* updated logic

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-04-30 15:15:18 -07:00
Hugh A. Miles II efcdc8cb9b
change relationship (#14435) 2021-04-30 17:27:05 -04:00
Sam Faber-Manning b147fa84e2
fix: parse simple string error message values (#14360)
* fix parsing error messages that are formatted as single strings

* fix other instances of error typing
2021-04-30 09:30:53 -07:00
Ville Brofeldt 319125ec3b
fix(native-filters): fix filter scope error (#14426) 2021-04-30 12:20:02 +03:00
Michael S. Molina a52ff13b5d
chore: Moves Card to the components folder (#14139) 2021-04-29 11:51:41 -07:00
Geido 545e257537
feat: Dynamic imports for the Icons component (#14318)
* Add aria-label and twotone

* Enhance LazyIcon

* Fix tests and solve ject warnings

* Add new line

* Revert package-lock to master

* Fix failing test

* Implement icon overrides

* Fix failing storybook

* Clean up

* Improve var name
2021-04-29 11:49:39 -07:00
Ville Brofeldt 1c16261651
fix(native-filters): always show filters without dataset (#14409) 2021-04-29 14:25:39 +03:00
eriendeng 2dc3fa3f21
fix error getting partitionQuery from table.partition (#14369)
Co-authored-by: eriendeng <eriendeng@tencent.com>
2021-04-29 10:42:11 +03:00
Michael S. Molina 1d6a746a09
refactor: Boostrap to AntD - Tabs (#14048) 2021-04-28 23:49:50 -07:00
Ville Brofeldt 4410fd047e
fix(native-filters): default value not populated on second opening (#14401) 2021-04-29 09:09:47 +03:00
Michael S. Molina b38aadf9e4
chore: Moves the branding folder to the assets folder (#14166) 2021-04-28 22:17:21 -07:00
Ville Brofeldt 183b5ae362
fix(sqllab): fix error due to anonymous user (#14390) 2021-04-28 19:57:45 +03:00
Ville Brofeldt 43ee52be57
fix(native-filters): force update control value on change (#14385)
* fix(native-filters): force update control value on change

* fix test
2021-04-28 11:41:22 +03:00
simcha90 fc0c1155c2
fix(native-filters): fix lint (#14387)
* fix:fix get permission function

* lint: fix types
2021-04-28 10:16:21 +03:00
simcha90 2486fd4f6d
feat(native-filters): Show/Hide filter bar by metdata ff (#14261)
* fix:fix get permission function

* feat: hide native filters by metadata

* fix: fix show_native_filters name

* fix: metadata

* chore: add migration to hide native_filters in all existing dashboards

* chore: fix pre-commit

* fix: make migration migration dashboard with filter_box only

* fix: pre-commit

* feat: hide filter bar if no permission edit and no filters

* fix: remove migration

Co-authored-by: amitmiran137 <amit.miran@nielsen.com>
2021-04-28 07:49:03 +03:00
ʈᵃᵢ 86d2a616c1
fix(emotion): add separate namespace for menu app (#14362) 2021-04-27 15:53:55 -06:00
Evan Rusackas 8e6803f65f
chore: Bumping lodash version in Superset (#14203)
* Bumping lodash in main package

* new package lock with updated lodash
2021-04-27 14:54:56 -06:00
Hugh A. Miles II 44c09b5383
feat: Setup `supersetText` configuration to overwrite errors (#14256)
* Setup error message overwrite config`

* fix

* bad reabse

* bad rebase 2

* remove unneeded comment

* working dynamic importing

* saveeee

* working textUtil file

* add ignore tslint

* fix linting

* fix linting

* import order

* setup guard statements

* linting again

* linting again

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
2021-04-27 15:03:35 -04:00
Ville Brofeldt 40fb94dcca
feat(native-filters): add optional sort metric to select filter (#14346)
* feat(native-filters): add optional sort metric to select filter

* use verbose name when defined

* fixes

* lint

* disable flaky test

* disable flaky test

* disable flaky test
2021-04-27 20:28:38 +03:00
Ville Brofeldt 87a895cc4a
feat(native-filters): add refresh button to default value picker (#14375)
* feat(native-filters): add refresh button to default value picker

* skip flaky test
2021-04-27 19:18:34 +03:00
Kamil Gabryjelski 41ccebce91
feat(native-filters): Use datasets in dashboard as default options for native filters (#14374)
* Use defaultOptions in dataset picker

* Remove console log

* Temporarily skip failing test
2021-04-27 18:04:57 +03:00
Kamil Gabryjelski 20ab0869fa
feat(native-filters): Implement adhoc filters and time picker in Range and Select native filters (#14313)
* Implement adhoc filters in Range and Select native filters

* Add time picker

* Remove additional filters from datamask

* Create separate stylesheet for AdhocFilterControl in native filters

* Rename Time picker to Time range

* Fix columns in AdhocFilter empty when creating a new filter

* Skip flaky test
2021-04-27 11:08:05 +02:00
simcha90 03e4a5b6b7
fix(native-filters): Update filter saving (#14370)
* fix:fix get permission function

* fix: not reload charts after save filters

* fix: not reload charts after save filters

* fix: temp commit type

* lint: add typing
2021-04-27 11:20:04 +03:00
Michael S. Molina d0be1ff79e
chore: Moves Tabs to the components folder (#14136) 2021-04-27 00:15:21 -07:00
Amit Miran 22f9e12a3b
chore: bump 0.17.38 (#14355)
* chore: bump 0.17.37

* chore: update package-lock

* chore: revert echarts upgrade

* bump echarts package to 0.17.38

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-04-27 09:30:39 +03:00
Phillip Kelley-Dotson 69f2af9fb6
refactor(addslicecontainer): move slice container panel from bootstrap panel to ant-d (#14035)
* slice boostrap panel to ant-d

* remove panel

* remove space

* fix lint

* fix addslicecontainer

* Update AddSliceContainer.tsx
2021-04-26 22:13:49 -07:00
Sam Faber-Manning 6898dd916f
update default cron settings for new alerts and reports (#14363) 2021-04-26 18:11:15 -07:00
Michael S. Molina 4fbb572568
refactor: Bootstrap to AntD - Form - iteration 1 (#14106) 2021-04-26 15:03:53 -07:00
Lily Kuang 876779865c
feat(alert/report): update content format radio buttons (#14235)
* update content format selection ui

* translations

* update test
2021-04-26 11:33:55 -07:00
Ville Brofeldt 8a0d321084
fix(native-filters): allowClear only when required not checked (#14353)
* fix(native-filters): allowClear only when required not checked

* Update superset-frontend/src/filters/components/Select/controlPanel.ts

Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>

Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
2021-04-26 20:48:17 +03:00
simcha90 7ff35dfdfb
fix(native-filters): Fix indicators (#14334)
* fix:fix get permission function

* fix: hide featured filters

* test: fix FF in tests

* test: fix FF in tests

* fix: fix unset cross filters
2021-04-26 13:22:11 +03:00
simcha90 3e8bf96642
fix(native-filters): Fix first loading of charts (#14332)
* fix:fix get permission function

* fix: fix unnecessary loading for native filters

* test: fix mocks
2021-04-25 13:58:53 +03:00
Ville Brofeldt e392e2ed39
feat(native-filters): add option to create value in select filter (#14314)
* feat(native-filters): add option to create value in select filter

* address comments
2021-04-24 08:26:24 +03:00
Michael S. Molina aada73302f
chore: Moves spec files to the src folder - iteration 3 (#14202) 2021-04-23 16:19:12 -07:00
Michael S. Molina 1bc73f2cba
chore: Moves spec files to the src folder - iteration 2 (#14201) 2021-04-23 16:18:46 -07:00
Michael S. Molina 98b450aa76
chore: Moves spec files to the src folder - iteration 1 (#14200) 2021-04-23 16:18:16 -07:00
Michael S. Molina 58534b36c5
chore: Improves Icons storybook (#14193) 2021-04-23 09:57:12 -07:00
Ville Brofeldt 2b57ebaffd
feat(native-filters): add tooltip to control values (#14312) 2021-04-23 19:29:51 +03:00
Yongjie Zhao 67535bb320
refactor: reorganize dateFilterUtils.tx (#14309)
* refactor: reorganize dateFilterUtils.tx

* move spec to src dirctory
2021-04-23 16:05:50 +08:00
Yongjie Zhao d1afca4fa1
fix: custom TimeRange can not input value (#14084) 2021-04-23 15:20:37 +08:00
Michael S. Molina b963624e12
refactor: Boostrap to AntD - Row/Col (#14100) 2021-04-22 20:57:17 -07:00
Michael S. Molina 3e23c103dc
chore: Moves WarningIconWithTooltip to own folder (#14123) 2021-04-22 13:50:11 -07:00
zuzana-vej 86233d1676
chore: SQLLab row limit warning using Alert component (#14298) 2021-04-22 10:12:46 -07:00
Lyndsi Kay Williams 70cfb7752c
chore: Code cleanup in DatabaseModal (#14196) 2021-04-21 13:41:50 -04:00
Jesse Yang 2dd20df03d
fix(dashboard): draft dashboards should be viewable (#14207)
* fix(dashboard): draft dashboards should have open access

* Remove a duplicate test
2021-04-21 09:54:51 -07:00
Yaozong Liu 852e840575
fix(explore): CUSTOM SQL tab should automatically update (#14194)
* fix(explore): CUSTOM SQL tab should automatically update

* fix(explore): CUSTOM SQL tab should automatically update

* fix: lint

* fix(explore): default value

Co-authored-by: Yongjie Zhao <yongjiezhao@apache.org>

Co-authored-by: liuyaozong <liuyaozong@baijiahulian.com>
Co-authored-by: stephenLYZ <vueact@gmail.com>
Co-authored-by: Yongjie Zhao <yongjiezhao@apache.org>
2021-04-21 14:30:18 +08:00
Yongjie Zhao 0dfb32cf08
fix: incorrect module reference (#14258) 2021-04-21 10:37:24 +08:00
Lyndsi Kay Williams a846015f4d
fix: Center each import icon and add a tooltip II (#14192) 2021-04-20 19:59:48 -04:00
Hugh A. Miles II 392d8a8107
fix: Handle bad permission errors for bigquery test connections (#14147)
* starter make file

* yea

* move messaging to config

* Delete Makefile

* remove

* checkout

* check for db generic errors

* checkout bad files

* add proper message

* add docs for new permissions codes

* Update superset/errors.py

Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>

* Update superset/errors.py

Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>

* rename var

* starter regex

* fix

* fix

* fix linting

* update test

* yerp

* fixed test

* added regex

* Apply suggestions from code review

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

* address comments

* update docs

* prettier

* fux

* add space

* Update errors.py

* Update types.ts

Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-04-20 19:19:36 -04:00
Elizabeth Thompson ff665fa5a7
feat: restyle database modal (#14092)
* restyle database modal

* change name of tab to Basic

* update test with RTL better RTL render statement

* change color and position of required asterisk

* refactor db logic
2021-04-20 18:21:07 -04:00
Erik Ritter 97e086051c
chore: bump superset-ui (#14253) 2021-04-20 15:16:58 -07:00
Amit Miran 13d4902711
feat(native-filters): select group by support (#14217)
* chore: initial commit

* feat: groupby filter

Co-authored-by: Simcha Shats <simcha.shats@nielsen.com>
2021-04-20 18:52:33 +03:00
Michael S. Molina 42fb2286ad
chore: Moves Dropdown to the components folder (#14126) 2021-04-20 08:48:28 -07:00
Michael S. Molina d1b458c4c5
chore: Moves Radio to the components folder (#14133) 2021-04-20 08:48:10 -07:00
Michael S. Molina 8441590812
chore: Moves Tooltip to the components folder (#14137) 2021-04-20 08:47:47 -07:00
Michael S. Molina ec79b7be1f
chore: Moves the staticPages folder to the assets folder (#14167) 2021-04-20 08:47:24 -07:00
simcha90 7e5440a359
test(native-filters): Filter config modal test (#14245)
* test: add tests for filter bar

* test: merge filter bar tests with master

* test: add test for filter set

* test: filter set tests

* test: merge with master

* test: fix tests for filter bar

* test: filter config modal

* test: add select filter

* feat: filter config modal

* lint: fix lint

* lint: fix TS

* test: test testWithId
2021-04-20 14:07:08 +03:00
Kamil Gabryjelski 6119d8e998
Fix filter edit popover not opening in DnD mode (#14243) 2021-04-20 11:45:48 +02:00
simcha90 d386e66f59
test(native-filters): add integration tests for filter bar (#14098)
* test: add tests for filter bar

* test: merge filter bar tests with master

* test: add test for filter set

* test: filter set tests

* test: merge with master

* test: fix tests for filter bar

* fix: fix CR notes

* fix: fix CR notes
2021-04-20 12:24:12 +03:00
simcha90 9d67b46576
fix(native-filters): fix remove native filters (#14218)
* fix:fix get permission function

* fix: clean data mask on chart removing

* refactor: fix reducer
2021-04-20 09:48:23 +03:00
Michael S. Molina c2d11ac53e
chore: Moves InfoTooltip to the components folder (#14128) 2021-04-19 16:25:29 -07:00
Amit Miran ca359402bd
chore: bump package.json (#14222)
* chore: bump package.json

* chore: bump package.json and lock
2021-04-19 06:52:24 +03:00
simcha90 c01f8101eb
fix(cross-filters): Fix missed metadata (#14220)
* fix:fix get permission function

* fix: fix missed metadata case
2021-04-18 18:46:38 +03:00
Michael S. Molina 77a9cc7088
chore: Moves Collapse to the components folder (#14124) 2021-04-16 15:55:04 -07:00