Commit Graph

12318 Commits

Author SHA1 Message Date
EugeneTorap
994e1f6bdc
chore: bump clickhouse-sqlalchemy 0.2.2 (#21195) 2022-08-25 15:35:20 +02:00
Paulo Eduardo da Silva
93557e3a1a
removing unnecessary margin for 50% fields (#21167) 2022-08-25 11:48:31 +08:00
Paulo Eduardo da Silva
74e40c2de1
removing bottom margin on CronPicker (#21140) 2022-08-25 11:44:16 +08:00
Anthony Gainor
da3401a698
fix(database-modal): Show a different placeholder text in Snowflake connection form (#21172)
* Add new Database Modal

When adding a new database and selecting Snowflake, the database and account fields had the same placeholder. This PR adds a placeholder prop so values can be sent dynamically by field

* Call translation function for string literals

Co-authored-by: Herbert Gainor <herbert.gainor@preset.io>
2022-08-24 15:37:47 -06:00
smileydev
d568999592
fix(database): make to display validation error msg when all cases (#20095)
* fix(database): make to display validation error msg when all cases

* fix(db): make to update the alert error condition

* fix(db): make to add error detail display

* fix(db): make to update error alert display by superset error style guide.

* fix(db): make to style modal header title with h4

* fix(db): make to place see more on bottom instead of top

* fix(db): make to fix shortly

* fix(db): make to fix lint issue

Co-authored-by: Evan Rusackas <evan@preset.io>
2022-08-24 11:29:22 -06:00
Lily Kuang
604e30b3f0
fix: Filter throwing an error on Embedded Dashboard (#21157)
* fix: Filter throwing an error on Embedded Dashboard

* use short_id if storage not available

* avoid infinite loop
2022-08-24 09:38:20 -07:00
JUST.in DO IT
53de94c047
Revert "fix(sqllab): avoid unexpected re-rendering on DatabaseSelector (#21141)" (#21174) 2022-08-23 22:26:05 -07:00
Bogdan
ed6212a1f9
Reimplement permissions fetching to do it in a single transaction (#21156)
Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
2022-08-23 18:45:39 -07:00
Hugh A. Miles II
cda7d70565
feat: print comment for chromatic storybook link (#21170)
* Update chromatic.yml

* Update chromatic.yml

* Update chromatic.yml

* Update chromatic.yml

* Update chromatic.yml

* Update chromatic.yml

* working

* plz work

* plzzzzz

* one more time

* one one more time

* this works

* lit

* last one
2022-08-23 19:31:05 -04:00
Eric Briscoe
6a0b7e5598
feat: Add Chromatic publishing to superset-frontend storybook (#21095)
* Work in progress to add Chromatic publishing to superset-fronted storybook

Adds new Github action to publish storybook builds to chromatic
Adjusts configuration to support MDX story format
Updates Alert stories to take advantage of MDX format for example in storybook that will publish to Chromatic
Fixes issue in ListViewCard stories that make the story build fail

* Adjust Chromatic Github action

* Adjust action so Gtihub Secret is read into env

Github secrets are not accessible in conditional blocks so this change moves the access of the github secret into an env variable which is accessible in conditional logic

* Removes unneccesary projectToken from package json

* Using a temp key to debug no access to value from github secret

* Refining skipping if no changes to superset-frontend

* Remove typos from Action component story, consolidate on folder check in Chromatic action

* Fix error in Chromatic action event

* Testing action with pul_request_target

* adjustments to Chromatic action triggers

* lint fix

* Testing if pull_request_target is disabled

* More adjustments to Chromatic action

* UI Change to trigger action

* Change to story text to test action

* update package-lock after merge conflicts from master

* Changes to test chromatic action

* Finalize Chromatic actions, fix lint errors

* Backs out addition of @storybook/addon-docs which is included in addon-essentials

* Lint error in package.json
2022-08-23 16:16:28 -04:00
JUST.in DO IT
f77b910e2c
perf(sqllab): Rendering perf improvement using immutable state (#20877)
* perf(sqllab): Rendering perf improvement using immutable state

- keep queryEditors immutable during active state
- add unsavedQueryEditor to store all active changes
- refactor each component to subscribe the related unsaved editor state only

* revert ISaveableDatasource type cast

* missing trigger prop

* a default of an empty object and optional operator
2022-08-23 12:17:19 -03:00
Michael S. Molina
4ca4a5c7cb
feat: Adds drill to detail context menu to World Map (#21150) 2022-08-23 10:24:55 -03:00
dependabot[bot]
51e567ffef
chore(deps): bump async from 2.6.3 to 2.6.4 in /superset-frontend (#21062)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 21:02:51 -06:00
Lyndsi Kay Williams
6094274f0b
feat: Create dataset blank state (#21058)
* beginning of routing

* elizabeth review

* changed folder layout

* Dataset layout setup

* Fix DatasetLayout test

* Fixed height issue

* Fix link to sqllab

* Fix DatasetPanel test

* Remove arbitrary right panel

* Add empty state SVGs

* Restructure/rename some Dataset files

* Fixed styling issue

* Fix background color

* Fix header border

* Fix empty DatasetPanel styles

* Adjust description rendering in DatasetPanel to fix tests

* Add spaces back to blank dataset description to fix tests

* Fix blank dataset description styles

Co-authored-by: AAfghahi <arash.afghahi@gmail.com>
2022-08-22 18:45:03 -05:00
Cody Leff
52648ecd7f
feat(dashboard): Add Drill to Detail modal w/ chart menu + right-click support (#20728)
* Add drill-to-detail modal.

* Include additional filters from dashboard context in request.

* Set page cache size to be approximately equal to memory usage of Samples pane.

* Update getDatasourceSamples signature.

* One-line import/export.

* Fix incorrect argument order in getDatasourceSamples invocation.

* Fix height of modal.

* Disable option in chart menu unless feature flag is set.

* Open modal on right-click.

* Fix double requests on modal open, controls disappearing on filter update.

* Show formattedVal in clearable filter tag.

* Set force=false for all requests.

* Rearrange/refactor DrillDetailPane.

* Reset page index on reload.

* Fix endless re-requests on request failure.

* Fix modal layout issues.
2022-08-22 15:57:18 -07:00
Yao Zhou
ca98fd8468
docs: Format the same size of picture for better part of "Supported Databases" document (#21037)
* Fix bug: some word not translate in js.
delete the 'null,' in messages.json,
so that word can be translate in js.

* docs:No code change. Reformat the database logs with size 400*160,modify the aprt of "Supported dabase" in README
2022-08-22 15:29:53 -04:00
Michael S. Molina
0bf4e56dc3
fix: Drill to detail on values with comma (#21151) 2022-08-22 13:52:39 -03:00
Antonio Rivero Martinez
bdcc0a9bcf
fix(charts): Hide Values greater than Max Y Axis Bound on Mixed Time Series with Bar series (#21015)
* Mixed TimeSeries:

- When Bar chart is used as serie type, we need to hide values that are greater than the max Y Axis Bound.

* Mixed Time Series:

- Simplify logic for getOverMaxHiddenFormatter

* Mixed Time Series:

- Add tests for new getOverMaxHiddenFormatter util func
2022-08-22 08:55:09 -06:00
Rajakavitha Kodhandapani
d44202f03c
docs: added timescaledb (#21128) 2022-08-22 22:16:46 +08:00
stevetracvc
d79b0bfc74
fix(native filters): groupby filter issue (#21084) 2022-08-22 22:15:33 +08:00
Yongjie Zhao
11bf7b9125
feat: generate label map on the backend (#21124) 2022-08-22 21:00:02 +08:00
Geido
756ed0e36a
feat: Add label and tooltip for the color schemes control (#21040)
* Add tooltip

* Remove title

* Add license

* Enhance E2E tests

* Update tests

* Lint and test fixes

* Enhance layout
2022-08-22 10:44:15 +03:00
JUST.in DO IT
a1389d3a9f
fix(sqllab): avoid unexpected re-rendering on DatabaseSelector (#21141) 2022-08-22 15:43:42 +08:00
Yongjie Zhao
fea68ef23c
fix: resample method shouldn't be freeform (#21135) 2022-08-22 15:42:46 +08:00
Diego Medina
15b9f83150
chore: support trailing slashes in database api (#21123) 2022-08-22 15:15:04 +08:00
Stephen Liu
e70699fb43
fix(plugin-chart-handlebars): order by control not work (#21005) 2022-08-22 15:00:34 +08:00
EugeneTorap
7c0963f6ae
chore: refactor FilterableTable to functional component (#21136) 2022-08-22 14:19:36 +08:00
Diego Medina
25c2b7f761
chore(deps): bump jsprim to 1.4.2 (#21104) 2022-08-22 10:55:04 +08:00
John Bodley
a27f246eff
chore(fab): Expose the TableColumnInlineView extra column listed in the legacy FAB API #21118 (#21142) 2022-08-19 19:57:02 -07:00
AAfghahi
252ceb7045
timestamp bug (#21130) 2022-08-18 18:20:25 -04:00
Hugh A. Miles II
642a0d7704
ok (#21116) 2022-08-18 12:00:14 -04:00
AAfghahi
dda1dcf8ee
feat: add header_data into emails (#20903)
* test sparkpost

* added logging info

* header function implementation

* added test

* daniel revisions

* daniel revision

* elizabeth review
2022-08-18 10:32:25 -04:00
EugeneTorap
fa0be30d49
chore: Dump all babel libs (#21121) 2022-08-18 12:55:21 +02:00
EugeneTorap
dcab32676b
fix: Use Home page in SPA (#21006)
* fix: Use Welcome page in SPA

* Fix Menu.test.tsx

* Handle not frontend routes
2022-08-18 12:19:15 +02:00
Yongjie Zhao
1afcdfb9fa
fix: datetime value should be seconds in sqlite (#21113) 2022-08-18 11:42:58 +08:00
Lyndsi Kay Williams
1ffa5670b3
test: Fix async tests in SaveDatasetModal and complete overwrite screen test (#21020)
* initial push

* SaveDatasetModal test fix

* Remove arbitrary async declarations

Co-authored-by: AAfghahi <arash.afghahi@gmail.com>
2022-08-17 22:35:28 -05:00
John Bodley
3c59a86834
[fab] Add extra to list of columns (#21118) 2022-08-17 18:32:07 -07:00
Kamil Gabryjelski
55304b02cd
fix(explore): Filters with custom SQL disappearing (#21114)
* fix(explore): Filters with custom SQL disappearing

* Fix adhoc filter for query b disappearing

* Improve test coverage
2022-08-17 22:15:41 +02:00
Michael S. Molina
151795663b
feat: Adds the MetadataBar component (#21090)
* feat: Adds the MetadataBar component

* Addresses comments
2022-08-17 14:39:44 -03:00
Daniel Vaz Gaspar
db7e2b2e37
docs: improve encrypted field adapter docs (#21111) 2022-08-17 16:08:32 +01:00
EugeneTorap
76d6a9af91
chore: Support Python 3.10 and bump pandas 1.4 and pyarrow 6 (#21002)
* Bump pandas 1.4 and pyarrow 6

* Use engine="pyarrow" for pd.read_csv()

* Refactoring

* Refactoring

* Refactoring

* Use bytes in pd.read_json()

* Fix test_contribution

* Fix pandas issue when 'arrays' are empty but 'names' contain values

* fix: ValueError: For argument "ascending" expected type bool, received type NoneType.

* Remove engine="pyarrow" and convert bytes to string

* make copy of selected df to fix regression

* Simplify pd.read_json() and pd.read_csv() for example data

Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-08-17 10:36:36 -03:00
Hugh A. Miles II
94e8fd3b35
update makefile with reports and alerts (#21102) 2022-08-16 20:51:49 -04:00
Kamil Gabryjelski
8005b7f8c7
fix(plugin-chart-table): Upgrade old color formats (#21101)
* fix(plugin-chart-table): Upgrade old color formats

* Bug fix

* add comments
2022-08-16 22:05:53 +02:00
EugeneTorap
6f3a555e58
fix(dashboard): Fix scroll behaviour in DashboardBuilderSidepane (#20969) 2022-08-16 19:29:28 +02:00
Kamil Gabryjelski
d3684c0937
fix(dashboard): Dashboard header overflowing in edit mode (#21100) 2022-08-16 19:08:29 +02:00
Bogdan
495a205dec
Memoize the common_bootstrap_payload (#21018)
Try patch

Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
2022-08-16 08:27:12 -07:00
Diego Medina
0c84203053
fix: Unable to sync columns when dataset name has '+' (#21019) 2022-08-16 07:55:27 -06:00
Stephen Liu
b303d1e156
fix(plugin-chart-echarts): gauge chart enhancements and fixes (#21007)
* fix(plugin-chart-echarts): gauge chart enhancements and fixes

* fix lint
2022-08-16 07:54:17 -06:00
Stephen Liu
5c2a1f85ff
fix(database-modal): 'CTAS & CVAS SCHEMA' getting cut off (#21004) 2022-08-15 22:24:38 -06:00
Moriah Kreeger
83dd85166f
feat: add extension point for workspace home page (#21033)
* updates to allow insertion of workspace home sidescroll/table UI

* fix types

* fix User type import

* add welcome message to ui registry

* add extra fields to individual chart/query GET results (for workspace home required info)

* update list view card to support a subtitle

* add id to individual chart fetch

* update chart api test

* another test fix

* fix saved query test

* update extension types + insert point

* fix typing

* fix type name
2022-08-15 12:16:40 -07:00