AAfghahi
eadff5f41e
feat: invalid DB name error messages (MySQL/Postgres/Redshift) ( #14146 )
...
* initial DB custom errors for mysql
* added redshift and postgres
2021-04-15 08:02:47 -07:00
simcha90
8ef572a412
refactor(native-filters): update dataMask and ExtraFormData schema ( #13983 )
...
* refactor: updates usage of `ownFilters` to `ownState`
* refactor: update dataMask (final)
* lint: fix lint
* refactor: revert feat
* fix: fix missed chart configuration
* add filter set migration
* apply new changes
* fix migration revision
* update migration
* fix jest mock
* js lint
* fix test types
* update tests and types
* remove append_form_data from tests
* fix findExistingFilterSet tests
* add migration test
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com >
2021-04-15 17:43:29 +03:00
Ville Brofeldt
68e11cd47f
fix(dashboard): filter set hydration not working ( #14129 )
2021-04-15 06:09:12 +03:00
AAfghahi
f1acb2f974
horizontal scroll ( #14140 )
2021-04-14 16:31:13 -07:00
Jesse Yang
6755083e3a
fix(dashboard): incorrect perm for users with multiple roles ( #14148 )
2021-04-14 16:04:09 -07:00
Lyndsi Kay Williams
36bd6d8303
feat: FE: Import for Queries II ( #14091 )
...
* Copied changes over
* Tests passing
* Import testing complete
2021-04-14 16:02:35 -07:00
krsnik93
ef1f048d81
feat: add Echarts gauge chart ( #14072 )
...
* feat: echarts gauge chart
* fix
* change plugin order
Co-authored-by: root <root@superset.ikrsnik.devonly.net >
2021-04-14 09:25:26 -07:00
Geido
474f1e2044
test: Add tests for Dashboard Header and HeaderActionsDropdown components ( #13973 )
...
* Add tests for HeaderActionsDropdown - WIP
* Fix trigger node
* Add types
* Clean up
* Add tests for Header
* Delete obsolete tests
* Add factory and clean up
* Add opposite case
* Fix file name
* Include latest changes
2021-04-14 06:54:24 -07:00
dependabot[bot]
a548b69201
build(deps): bump urijs from 1.19.4 to 1.19.6 in /superset-frontend ( #13393 )
...
Bumps [urijs](https://github.com/medialize/URI.js ) from 1.19.4 to 1.19.6.
- [Release notes](https://github.com/medialize/URI.js/releases )
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md )
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.4...v1.19.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-13 23:15:27 -07:00
Michael S. Molina
cfe927bebb
test: Adds tests for the FixedOrMetricControl component ( #13705 )
2021-04-13 15:26:31 -07:00
Michael S. Molina
c8a794368d
refactor: Bootstrap to AntD - ListGroup ( #13996 )
...
* refactor: Bootstrap to AntD - ListGroup
* Improves theme handling on touched files
2021-04-13 15:26:02 -07:00
AAfghahi
b77477a9dd
feat: invalid hostname and password error messages (MySQL) ( #14089 )
...
* custom errors for mySQL
* initial custom errors and tests for MySQL
* revisions
2021-04-13 14:42:31 -07:00
dependabot[bot]
83b8d1bc1b
build(deps): bump y18n from 4.0.0 to 4.0.1 in /superset-frontend ( #13886 )
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-13 13:07:45 -07:00
Jesse Yang
3c88d2542c
fix(country-map): update geojson and control layout ( #14063 )
2021-04-13 10:14:27 -07:00
simcha90
f453287a07
fix:fix get permission function ( #14099 )
2021-04-13 09:36:13 -07:00
Lyndsi Kay Williams
6392d41ac9
fix: Fixed saved query export ( #14086 )
...
* Fixed saved query export
* Te
sting implemented
2021-04-13 08:09:08 -07:00
Amit Miran
8c5b6b1263
feat(dashboard_rbac): provide data access based on dashboard access ( #13992 )
...
* feat: provide data access based onb dashboard access
* chore: adjust code after CR comments
* fix: add brackets
* fix: type
* chore: add tests
* fix: pre-commit
* fix: pre-commit and lint
* fix: fix test
* fix: pre-commit
* fix: fix local pylint warnings
* revert: birth_names pylint change bc it affects tests
* Update superset/security/manager.py
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
* Update superset/security/manager.py
* Update tests/utils_tests.py
* fix: after CR
* fix: after CR from ville
* chore: update roles description
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2021-04-13 16:23:31 +03:00
Amit Miran
9c5264af0d
feat(can_share): can share chart and dashboard ( #14076 )
...
* feat: share chart - can_share_chart
share dashboard can_share_dashboard
* fix: pre-commit
* fix: userCanShare tests
* fix: after hugh CR
* fix: adjust after spa refactor
2021-04-13 13:54:14 +03:00
Michael S. Molina
b394733ff3
test: Adds tests to the UndoRedoKeyListeners component ( #13919 )
2021-04-12 23:51:57 -07:00
Michael S. Molina
55257ab48c
chore: Adds dataMask reducer to reducerIndex ( #13951 )
2021-04-12 23:50:20 -07:00
Geido
11869dc076
test: Tests audit for the Dashboard FilterBar ( #13916 )
...
* Add FilterBar tests
* Finalize FilterBar tests
* Add tests for FilterBar Header
* Add tests for FilterBar FilterConfigurationLink
* Add tests for FilterBar FilterSets EditSection
* Add tests for FilterBar FilterSets
* Clean up
* Add tests for FilterBar FilterSetUnit
* Add tests for FilterBar FilterSets FiltersHeader
* Add tests for FilterBar FilterSets Footer
* Fix linting
* Fix import
* Fix minor changes
* Fix import
* Add factory and clean up
2021-04-12 23:28:19 -07:00
Michael S. Molina
92a66921e0
refactor: Bootstrap to AntD - Slider ( #13989 )
2021-04-12 16:28:06 -07:00
Phillip Kelley-Dotson
4bb29b6f04
chore(spa refactor): refactoring dashboard to use api's instead of bootstrapdata ( #13306 )
...
* add hook for future async api calls
* test to see conflict
* add async middleware and update reducers
* working async dashboard load
* implement getcharts api
* add user permissions to explore and dashboard bootstrap data
* integrate api calls with getinitial state
* update namings
* accept an id or a slug in the dashboard charts api
* add permissions function
* fix merge
* update state
* get dashboard charts by id or slug
* fix undefined states
* variable names
* stop using some more bootstrap data
* fix metadata reference
* remove unused bootstrap from the template
* add errorboundry to dashboard
* refactoring, fixing
* update permissions
* add just roles
* id is supposed to be a string
* unused vars
* get datasources from api
* make onError optional
* use resource hooks, better error boundary
* add loading state for dashboardroute
* remove console
* add conditional
* more conditionals
* testing out a possible fix for cypress
* convert edit/standalone test to cypress
* remove bootstrappy assertions
* lint
* fix dashboard edit history issue
* rename stuff
* address recent native filters schema change
* remove unused getInitialState
* remove .only from test
* hooksy redux usage
* Revert "more conditionals"
This reverts commit 25c8ed61b4 .
* cleanup
* undo unnecessary change
* actually need conditions here
* certainty
* Revert "certainty"
This reverts commit 77dea1915b .
* more permutations (untested yolo)
* Update superset-frontend/src/chart/chartReducer.ts
Co-authored-by: Evan Rusackas <evan@preset.io >
* import style
* comment
* cleaner dashboardInfo
* remove debug code
* use memo for getPermissions
* fix lint
* adjust name/location of DashboardPage
* move logic for REMOVE_SLICE_LEVEL_LABEL_COLORS to DAO
* stop using full_data()
* remove unused (and now useless) json=true query param
Co-authored-by: David Aaron Suddjian <aasuddjian@gmail.com >
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com >
Co-authored-by: Evan Rusackas <evan@preset.io >
2021-04-12 16:10:29 -07:00
Beto Dealmeida
786dadc836
feat: invalid password error message (Postgres) ( #14038 )
2021-04-12 14:03:21 -07:00
Kamil Gabryjelski
bf22487e23
Make chart exclude itself from cross filtering ( #14046 )
2021-04-12 14:08:07 +03:00
simcha90
d6bd160250
fix: fix bug when remove chart not removing it's related cross filter data ( #14081 )
2021-04-12 10:54:31 +03:00
simcha90
468638c5b8
feat(native-filters): Add default first value to select filter ( #13726 )
...
* feat: native filters first default value
* fix: fix CR notes
* feat: add support for `Place` type
* refactor: sync with master
* feat: add first value to Select filters
* refactor: fix CR notes
* refactor: updates usage of `ownFilters` to `ownState`
* Revert "refactor: updates usage of `ownFilters` to `ownState`"
This reverts commit 58b91998
* fix: revert mocks
* fix: fix CR notes
* chore: update package json
* chore: update package json
* chore: update package json
* test: fix tests
* fix: fix BE empty metrics
* lint: fix lint
* fix: fix BE empty metrics
* refactor: fix Cr notes
2021-04-12 09:22:33 +03:00
Bruno Motta
66201e7c55
test: FilterSets-utils ( #14028 )
...
* Tests for "nativeFilters/FilterBar/FilterSets/utils"
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/findExistingFilterSet.test.ts
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/findExistingFilterSet.test.ts
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/generateFiltersSetId.test.ts
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Fix: Lint error
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
2021-04-09 15:07:37 -07:00
Bruno Motta
95ed8735f1
chore: well component to card component(Updating PR #12200 ) ( #14033 )
...
* replace Well componenet with Card component
* Fix lint errors
* Fix lint
* Addressing comments
* Addressing comments
* Fix lint errors
* Exporting Card from index.tsx and adding storybook variants
* Fix some refactoring
* Fix errors
* solving conflicts and lint errors
* Update superset-frontend/src/common/components/Card.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/common/components/Card.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
Co-authored-by: Nikola Gigic <nik.gigic@gmail.com >
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
2021-04-09 15:06:44 -07:00
Ville Brofeldt
bfa6140b15
fix(viz): bump superset-ui 0.17.30 ( #14045 )
...
* fix(viz): bump superset-ui 0.17.30
* fix test
* bump react-table to match the version in superset-ui
2021-04-09 20:49:38 +03:00
Bruno Motta
ff08d423a9
Tests for ControlItems ( #13975 )
2021-04-09 09:54:35 -07:00
Bruno Motta
1920811cf2
test: Tabs ( #13941 )
...
* Test for Tabs component
* Fix: "creteProps" to "createProps"
* Update superset-frontend/src/dashboard/components/gridComponents/Tabs.test.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-04-09 09:54:16 -07:00
Bruno Motta
011af825a9
test: Tab ( #13937 )
...
* Tests for Tab component
* Update superset-frontend/src/dashboard/components/gridComponents/Tab.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/gridComponents/Tab.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/gridComponents/Tab.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/gridComponents/Tab.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/gridComponents/Tab.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/gridComponents/Tab.test.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-04-09 09:53:54 -07:00
Bruno Motta
ec3f8d07f4
test: SliceHeader ( #13888 )
...
* tests for SliceHeader
* Update superset-frontend/src/dashboard/components/SliceHeader/SliceHeader.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/SliceHeader/SliceHeader.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/SliceHeader/SliceHeader.test.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-04-09 09:14:16 -07:00
Bruno Motta
36f101e500
test: ShareMenuItems ( #13860 )
...
* Tests for ShareMenuItems
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/dashboard/components/menu/ShareMenuItems/ShareMenuItems.test.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-04-09 09:13:05 -07:00
Bruno Motta
c0017b3262
Tests for ColumnSelect ( #13991 )
2021-04-09 09:02:39 -07:00
Beto Dealmeida
c60a93db9c
feat: add extract_errors to Postgres ( #13997 )
...
* feat: add extract_errors to Postgres
* Add unit tests
* Fix lint
* Fix unit tests
2021-04-08 13:24:54 -07:00
Michael S. Molina
784d29b57c
chore: Moves Fade component into TableElement ( #13458 )
2021-04-08 12:56:21 -07:00
Jack Fragassi
5dd971eaf5
fix: execution log crashes for logs with no uuid ( #13998 )
...
* Fix execution log when no execution id
* Use single quotes
* Pretty
2021-04-08 06:50:23 -07:00
Lyndsi Kay Williams
7697bc297c
feat: FE: Export for Queries II ( #13981 )
...
* package.lock upgrade
* Copied changes from old PR
* Cleaned up ternaries
* Added export check for VERSIONED_EXPORT feature flag
2021-04-08 09:22:15 -04:00
Michael S. Molina
b5c95c537c
test: Adds tests to the CssEditor component ( #13933 )
2021-04-07 14:40:24 -07:00
Geido
6c06866583
test: Tests and Storybook entry for the IndeterminateCheckbox Component ( #13502 )
...
* Add tests for IndeterminateCheckbox
* Add storybook entry
* Fix linting issue
* Remove mocked icon
* Add jest.fn to mockedProps
2021-04-07 13:34:19 -07:00
Bruno Motta
dcb9f7cff1
test: DataTablesPane ( #13736 )
...
* Tests for DataTablesPane
* Update superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Update superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
* Using factory for props
* replacing "data-test"
* removing "act" from tests and fix error
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
2021-04-07 11:35:27 -07:00
Bruno Motta
284402c583
test: AdhocMetricEditPopover ( #13787 )
...
* tests for AdhocMetricEditPopover
* replace "factoryProps" for "createProps"
* removing unnecessary if
* Update superset-frontend/src/explore/components/controls/MetricControl/AdhocMetricEditPopover/AdhocMetricEditPopover.test.tsx
Co-authored-by: Evan Rusackas <evan@preset.io >
* Update superset-frontend/src/explore/components/controls/MetricControl/AdhocMetricEditPopover/AdhocMetricEditPopover.test.tsx
Co-authored-by: Evan Rusackas <evan@preset.io >
* Update superset-frontend/src/explore/components/controls/MetricControl/AdhocMetricEditPopover/AdhocMetricEditPopover.test.tsx
Co-authored-by: Evan Rusackas <evan@preset.io >
* Update superset-frontend/src/explore/components/controls/MetricControl/AdhocMetricEditPopover/AdhocMetricEditPopover.test.tsx
Co-authored-by: Evan Rusackas <evan@preset.io >
Co-authored-by: Evan Rusackas <evan@preset.io >
2021-04-07 10:34:29 -07:00
Geido
cc075f23ef
test: Tests and Storybook entry for the TableView Component ( #13501 )
...
* Refactor TableView tests
* Add more tests
* Add storybook entry
* Remove unnecessary control
2021-04-07 10:33:55 -07:00
Yongjie Zhao
f06d53455c
fix: annotation modal dateRangePicker saved invalid value ( #13969 )
2021-04-07 22:02:29 +08:00
Yongjie Zhao
e3efaba775
test: prevent flaky frontend unit test case ( #13984 )
...
* test: prevent flaky unit test case
* Update superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx
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-04-07 20:08:04 +08:00
Yongjie Zhao
56dc74e09f
fix: Pie chart not displayed in viz ( #13987 )
2021-04-07 17:08:24 +08:00
Beto Dealmeida
a82d72fef6
feat: initial work to make v1 API compatible with SIP-40 and SIP-41 ( #13960 )
...
* WIP
* Use errorhandler
* Add response schema
* Fix status on HTTPException
* s/found/encountered/g
* Fix test
* Fix lint
* Fix lint and test
2021-04-06 22:06:32 -07:00
Bruno Motta
1638e6e932
test: exploreUtils ( #13719 )
...
* Tests for exploreUtils
* removing eslint-disable
* applying factory
* Removing skip tests and code comments.
* Improving test name
* remove comments
* Improving "shouldUseLegacyApi" tests
* fixing typo
2021-04-06 21:35:34 -07:00