superset/superset-frontend
Phillip Kelley-Dotson 2f3e11db66
feat: blankstate metrics columns (#20755)
* add POC ExploreMixin

* Working POC
> columns are loading into page

* Created/tested query dataset dropdown

* Add isValidDatasourceType to @superset-ui/core and hide query dropdown

* Visual updates to explore datasource panel

* Temporarily make Query icon visible

* Remove Query icon visibility

* Removed isValidDatasourceType check

* Added Query preview Modal from DatasourceControl if the data source type is Query [41493]

Initial commit to add ability for the a Query Preview Modal to be available when the data source type is Query and not Dataset
Converted ModalTrigger to a functional TypeScript component

* > fix integration point with frontend
> allow for all records to be displayed
> fix select with all columns queries
> filters are now working

* Adjusts conditional logic approach to be extensible for additional types from DatasourceTypes options

* refactor

* set field for sql

* Fixes issue where Missing query parameters error was showing in datasourcePanel

* add query_language

* fix ds main_dttm

* Fixes issue where menu.tsx was blocking access to redux debugging for SqlLab and Explore

* Fixes issue where database id was not available to save query as dataset, adds default metric when chart source is query

* oops

* fix pre-commit to 50 errors now

* fix circuliar dep

* Disables showing Metrics section in DatasourcePanel when Query is the datasource

A follow on separate effort will enable having a default Count metric when Query is the datasource type

* adds condition to use query.columns if query.results is not present enable saving query as a dataset

* down to 26 now

* patch for pre-commit

* one more pre-commit

* added explore_json error

* added error messages

* add for metrics

* add text for columns

* add model open/close method

* add propogation and methods

* change link to span

* lint fix

* Fixes frontend lint and TypeScript errors unit test fixes will be next commit

* Aditional TypeScript error fix

* Fixes unit test failure

* fix some types

* added frontend piece

* fix type

* Fixes bad import caused by merge from master and removes duplicate showSaveDatasetModal check

* Fixes for DartasourceControl Test Suite

* Fix lint error

* Fixes unit test issues due to array instead of a component being passed to modal footer

* Fixes unit test failure for DatasourceControl and simplifies getDatasourceTitle based on PR comment

* fix ts

* pylint

* core_test fix

* Fixes line error post merge from master

* fixed from master

* fixed from master

* Fixes issue where Overwrite dataset does not work due to userid error

SPA refractor changed Redux structure that is used when in explore (which is now within SPA).  user object is at the root of the store now for anything under SPA.

* Resolves TypeScript errors with changes made for SPA merging in and changes needed for overwriting dataset from SaveDatasetModal

* fix: top right panel view query functionality

* remove unneeded code from core.py

* working samples endpoint for query

* add owner check

* update FE for it

* handle columns are dict vs object

* fix exceptions

* fix fe lint

* fix test

* add tab_name to payload

* Enables use of tab name from Query

* fix cypress test

* save columns on execution

* fix frontend build test

* remove parathesis around columns

* changing column types

* fixing samples that has literal_columns

* address comments

* add changes

* fix path

* fix merge

* fix types

* remove console

* add type

* fix linting

* update to enum

* fix test

* remove explore from buttons

* fix logic

* fix logic

* oops

Co-authored-by: Hugh A. Miles II <hughmil3s@gmail.com>
Co-authored-by: lyndsiWilliams <kcatgirl@gmail.com>
Co-authored-by: Eric Briscoe <eric.j.briscoe@gmail.com>
Co-authored-by: AAfghahi <arash.afghahi@gmail.com>
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
2022-07-26 14:32:30 -04:00
..
.storybook chore: bump storybook to 6.4.19, migrating config, and linting storybook config (#19245) 2022-03-28 14:02:47 -03:00
cypress-base chore: Ignore Applitools by default when running Cypress tests (#20789) 2022-07-26 16:57:45 +03:00
packages chore: Feature flag for embedding charts (#20804) 2022-07-26 17:55:44 +03:00
plugins fix: explore warnings cleanup (#20864) 2022-07-26 13:28:50 +08:00
scripts refactor(monorepo): update plugin dependencies (#17837) 2021-12-22 16:26:12 +08:00
spec feat: Pass dashboard context to explore through local storage (#20743) 2022-07-25 16:44:43 +02:00
src feat: blankstate metrics columns (#20755) 2022-07-26 14:32:30 -04:00
tools fix: rm eslint-plugin-translation-vars engine requirement (#20420) 2022-06-17 14:29:57 +08:00
.eslintignore chore: remove config of temporary_superset_ui (#18708) 2022-02-14 16:12:43 +08:00
.eslintrc.js chore: Changes the no-literal-colors lint rule to throw errors instead of warnings (#20034) 2022-05-12 15:07:56 -03:00
.gitignore Upgrade typescript to 3.8.2 (#9189) 2020-02-25 08:44:26 -08:00
.nvmrc chore: update node version in nvmrc (#17492) 2021-11-23 11:18:22 +02:00
.prettierignore chore: remove config of temporary_superset_ui (#18708) 2022-02-14 16:12:43 +08:00
applitools.config.js feat: Run Applitools on public Storybook (#19852) 2022-05-09 14:17:22 +02:00
babel.config.js refactor(monorepo): move superset-ui to superset(stage 2) (#17552) 2021-11-30 08:29:57 +08:00
cypress_build.sh build(deps-dev): update cypress to 5.5.0, improvements for running locally (#11603) 2020-11-10 15:51:47 -08:00
jest.config.js fix: superset-ui/core codes coverage (#20324) 2022-06-09 17:43:42 +08:00
js_build.sh
lerna.json refactor: move superset-ui dependencies to peerDependencies (#17965) 2022-01-11 13:53:37 +08:00
package-lock.json feat: Pass dashboard context to explore through local storage (#20743) 2022-07-25 16:44:43 +02:00
package.json feat: Pass dashboard context to explore through local storage (#20743) 2022-07-25 16:44:43 +02:00
prettier.config.js refactor: merge/upgrade superset-ui packages (#10790) 2020-09-09 13:18:55 -07:00
tsconfig.json fix: suppress translation warning in jest (#20404) 2022-06-21 20:38:58 +08:00
webpack.config.js refactor: Renders addSlice in SPA (#20675) 2022-07-13 08:50:58 -03:00
webpack.proxy-config.js test: add React Testing Library (#11771) 2020-12-01 11:14:37 -08:00