You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by sr...@apache.org on 2022/01/25 14:55:42 UTC
[superset] branch docV2 updated (14305b1 -> 32522b3)
This is an automated email from the ASF dual-hosted git repository.
srini pushed a change to branch docV2
in repository https://gitbox.apache.org/repos/asf/superset.git.
from 14305b1 Port community page (#18128)
add 32522b3 chore: add seo redirects for Docs v@ (#18092)
No new revisions were added by this update.
Summary of changes:
.rat-excludes | 7 +-
CHANGELOG.md | 9175 +-----
CONTRIBUTING.md | 2 +-
Makefile | 2 +-
UPDATING.md | 21 +-
docs-v2/README.md | 19 +
docs-v2/babel.config.js | 1 +
docs-v2/docusaurus.config.js | 78 +
docs-v2/package.json | 1 +
docs-v2/src/css/custom.css | 19 +
docs-v2/src/pages/markdown-page.md | 19 +
docs-v2/static/img/logo.svg | 18 +
docs-v2/static/img/superset-logo-horiz-dark.svg | 2 -
docs-v2/static/img/superset-logo-horiz.svg | 2 -
docs-v2/static/img/undraw_docusaurus_mountain.svg | 18 +
docs-v2/static/img/undraw_docusaurus_react.svg | 18 +
docs-v2/static/img/undraw_docusaurus_tree.svg | 18 +
docs-v2/yarn.lock | 1409 +-
.../pages/docs/Connecting to Databases/trino.mdx | 91 +-
.../docs/Contributing/creating-viz-plugins.mdx | 140 +
.../exploring-data.mdx | 2 +-
.../docs/installation/building-viz-plugins.mdx | 217 -
docs/src/pages/docs/introduction.mdx | 4 +-
docs/src/pages/docs/security-page.mdx | 2 +-
requirements/base.txt | 2 +
requirements/testing.in | 1 +
requirements/testing.txt | 10 +-
setup.py | 2 +-
superset-frontend/.storybook/main.js | 4 +-
.../packages/generator-superset/README.md | 7 +-
.../generators/plugin-chart/index.js | 35 +-
.../generators/plugin-chart/templates/README.erb | 70 +-
.../plugin-chart/templates/gitignore.erb | 111 +
.../plugin-chart/templates/package-lock.erb | 28390 +++++++++++++++++++
.../generators/plugin-chart/templates/package.erb | 27 +-
.../plugin-chart/templates/src/MyChart.erb | 15 +-
.../plugin-chart/templates/src/index.erb | 2 +-
.../plugin-chart/templates/src/plugin/index.erb | 2 +-
.../plugin-chart/templates/test/index.erb | 6 +-
.../generator-superset/test/plugin-chart.test.js | 1 +
.../src/operators/pivotOperator.ts | 8 +-
.../src/operators/prophetOperator.ts | 3 +-
.../src/operators/resampleOperator.ts | 18 +-
.../src/operators/rollingWindowOperator.ts | 8 +-
.../src/operators/sortOperator.ts | 9 +-
.../src/operators/timeComparePivotOperator.ts | 7 +-
.../src/operators/utils/constants.ts | 1 -
.../src/operators/utils/index.ts | 2 +-
.../test/utils/operators/pivotOperator.test.ts | 26 +
.../test/utils/operators/prophetOperator.test.ts | 34 +-
.../test/utils/operators/resampleOperator.test.ts | 104 +-
.../test/utils/operators/sortOperator.test.ts | 16 +
.../utils/operators/timeCompareOperator.test.ts | 26 +
.../src/query/types/PostProcessing.ts | 13 +-
.../time-format/TimeFormatterRegistrySingleton.ts | 2 +-
.../superset-ui-core/src/utils/featureFlags.ts | 1 +
...lettesStories.jsx => ColorPallettesStories.tsx} | 0
.../{RenderPalettes.jsx => RenderPalettes.tsx} | 0
.../{BigNumberStories.jsx => BigNumberStories.tsx} | 78 +-
.../{ThemeStories.jsx => ThemeStories.tsx} | 0
...TimeFormatStories.jsx => TimeFormatStories.tsx} | 60 +-
.../src/countries.ts | 24 +-
.../src/countries/cyprus.geojson | 11 +
.../src/countries/jordan.geojson | 18 +
.../src/countries/kenya.geojson | 14 +
.../src/countries/kuwait.geojson | 12 +
.../src/countries/lithuania.geojson | 16 +
.../src/countries/nigeria.geojson | 43 +
.../src/countries/oman.geojson | 17 +
.../src/countries/pakistan.geojson | 14 +
.../src/countries/philippines.geojson | 124 +
.../src/countries/qatar.geojson | 13 +
.../src/countries/united_arab_emirates.geojson | 15 +
.../BigNumber/BigNumberWithTrendline/buildQuery.ts | 7 +-
.../BigNumberWithTrendline/transformProps.ts | 6 +-
.../src/MixedTimeseries/transformProps.ts | 6 +-
.../src/Timeseries/Area/controlPanel.tsx | 4 +-
.../src/Timeseries/Area/index.ts | 26 +-
.../src/Timeseries/Regular/Bar/controlPanel.tsx | 4 +-
.../src/Timeseries/Regular/Bar/index.ts | 20 +-
.../src/Timeseries/Regular/Line/index.ts | 22 +-
.../Timeseries/Regular/Scatter/controlPanel.tsx | 4 +-
.../src/Timeseries/Regular/Scatter/index.ts | 22 +-
.../src/Timeseries/Regular/SmoothLine/index.ts | 22 +-
.../src/Timeseries/Regular/controlPanel.tsx | 8 +-
.../src/Timeseries/Step/controlPanel.tsx | 4 +-
.../src/Timeseries/Step/index.ts | 22 +-
.../src/Timeseries/buildQuery.ts | 11 +-
.../src/Timeseries/controlPanel.tsx | 4 +-
.../plugin-chart-echarts/src/Timeseries/index.ts | 32 +-
.../src/Timeseries/transformProps.ts | 47 +-
.../plugins/plugin-chart-echarts/src/controls.tsx | 46 +-
.../plugin-chart-echarts/src/utils/annotation.ts | 4 +-
.../plugin-chart-echarts/src/utils/prophet.ts | 10 +-
.../plugin-chart-echarts/src/utils/series.ts | 56 +-
.../test/Timeseries/transformProps.test.ts | 29 +-
.../test/utils/annotation.test.ts | 18 +-
.../plugin-chart-echarts/test/utils/series.test.ts | 75 +-
superset-frontend/src/SqlLab/actions/sqlLab.js | 26 +-
.../src/SqlLab/actions/sqlLab.test.js | 4 +-
.../src/SqlLab/components/SaveQuery/index.tsx | 7 +-
.../src/SqlLab/components/SqlEditor/index.jsx | 12 +-
.../SqlLab/components/SqlEditorLeftBar/index.jsx | 244 +-
.../src/SqlLab/reducers/getInitialState.js | 1 +
.../{Checkbox.stories.jsx => Checkbox.stories.tsx} | 7 +-
.../src/components/Checkbox/Checkbox.tsx | 2 +
.../src/components/Checkbox/index.tsx | 2 +-
superset-frontend/src/dashboard/actions/hydrate.js | 4 +-
.../HeaderActionsDropdown.test.tsx | 1 +
.../Header/HeaderActionsDropdown/index.jsx | 2 +
.../PropertiesModal/PropertiesModal.test.tsx | 1 +
.../dashboard/components/PropertiesModal/index.tsx | 1 +
.../components/RefreshIntervalModal.test.tsx | 2 +
.../dashboard/components/RefreshIntervalModal.tsx | 2 +
.../SliceHeaderControls.test.tsx | 1 +
.../components/SliceHeaderControls/index.tsx | 1 +
.../src/explore/components/EmbedCodeButton.jsx | 1 +
.../explore/components/ExploreActionButtons.tsx | 4 +
.../PropertiesModal/PropertiesModal.test.tsx | 24 +-
.../explore/components/PropertiesModal/index.tsx | 10 +-
.../explore/components/RowCountLabel.stories.tsx} | 62 +-
.../{RowCountLabel.jsx => RowCountLabel.tsx} | 22 +-
superset-frontend/src/setup/setupColors.ts | 6 +-
.../CRUD/annotationlayers/AnnotationLayerModal.tsx | 4 +
.../src/views/CRUD/chart/ChartList.tsx | 43 +-
.../src/visualizations/TimeTable/TimeTable.jsx | 17 +-
superset-frontend/webpack.config.js | 11 +-
superset/charts/commands/exceptions.py | 4 +
superset/cli.py | 902 -
.../importers/v1 => superset/cli}/__init__.py | 0
superset/cli/celery.py | 80 +
superset/cli/examples.py | 108 +
superset/cli/importexport.py | 381 +
superset/cli/lib.py | 48 +
superset/cli/main.py | 79 +
superset/cli/test.py | 110 +
superset/cli/thumbnails.py | 106 +
superset/cli/update.py | 181 +
superset/commands/importers/v1/examples.py | 3 +-
superset/common/query_context_processor.py | 12 +-
superset/config.py | 48 +-
superset/connectors/base/models.py | 2 +
superset/dashboards/filter_state/api.py | 4 +-
.../dashboards/filter_state/commands/create.py | 21 +-
.../dashboards/filter_state/commands/delete.py | 20 +-
superset/dashboards/filter_state/commands/get.py | 16 +-
.../dashboards/filter_state/commands/update.py | 25 +-
superset/dataframe.py | 10 +-
superset/datasets/commands/exceptions.py | 4 +
superset/db_engine_specs/base.py | 157 +-
superset/db_engine_specs/mysql.py | 29 +-
superset/db_engine_specs/postgres.py | 38 +-
superset/db_engine_specs/presto.py | 71 +-
superset/db_engine_specs/trino.py | 43 +
superset/examples/__init__.py | 18 -
superset/examples/bart_lines.py | 2 +-
superset/examples/birth_names.py | 2 +-
superset/examples/country_map.py | 4 +-
superset/examples/{__init__.py => data_loading.py} | 29 +-
superset/examples/energy.py | 4 +-
superset/examples/flights.py | 4 +-
superset/examples/long_lat.py | 4 +-
superset/examples/multiformat_time_series.py | 2 +-
superset/examples/paris.py | 4 +-
superset/examples/random_time_series.py | 4 +-
superset/examples/sf_population_polygons.py | 4 +-
superset/examples/world_bank.py | 3 +-
.../importers/v1 => superset/explore}/__init__.py | 0
.../v1 => superset/explore/form_data}/__init__.py | 0
superset/explore/form_data/api.py | 305 +
.../explore/form_data/commands}/__init__.py | 0
.../form_data}/commands/create.py | 40 +-
.../form_data}/commands/delete.py | 40 +-
.../form_data}/commands/get.py | 38 +-
.../form_data/commands/parameters.py} | 15 +-
.../form_data/commands/state.py} | 8 +-
superset/explore/form_data/commands/update.py | 69 +
.../get.py => explore/form_data/schemas.py} | 30 +-
superset/explore/form_data/utils.py | 63 +
superset/initialization/__init__.py | 8 +-
superset/key_value/api.py | 112 +-
superset/key_value/commands/create.py | 23 +-
superset/key_value/commands/delete.py | 16 +-
.../filter_state => key_value}/commands/entry.py | 0
superset/key_value/commands/get.py | 18 +-
.../entry.py => key_value/commands/parameters.py} | 15 +-
superset/key_value/commands/update.py | 19 +-
...9410a97a_add_columns_for_external_management.py | 105 +
superset/models/core.py | 28 +-
superset/models/dashboard.py | 2 +
superset/models/helpers.py | 2 +-
superset/models/slice.py | 13 +-
superset/models/sql_lab.py | 10 +
superset/utils/cache_manager.py | 12 +
superset/utils/core.py | 47 +-
superset/utils/database.py | 88 +
superset/utils/mock_data.py | 2 +-
superset/utils/pandas_postprocessing.py | 38 +-
superset/views/core.py | 8 +-
tests/conftest.py | 103 +
.../tests => consts}/__init__.py | 9 -
.../tests/__init__.py => consts/birth_names.py} | 19 +-
.../__init__.py => consts/us_states.py} | 53 +
.../tests => example_data}/__init__.py | 9 -
.../data_generator}/__init__.py | 0
.../data_generator}/base_generator.py | 10 -
.../data_generator/birth_names}/__init__.py | 9 -
.../birth_names/birth_names_generator.py | 70 +-
.../birth_names/birth_names_generator_factory.py | 13 +-
.../data_generator}/consts.py | 0
.../data_generator}/string_generator.py | 9 -
.../data_generator}/string_generator_factory.py | 2 +-
.../data_generator/tests}/__init__.py | 0
.../data_generator}/tests/test_string_generator.py | 6 +-
.../data_loading}/__init__.py | 9 -
.../data_loading/base_data_loader.py} | 26 +-
.../data_loading/data_definitions}/__init__.py | 9 -
.../data_loading/data_definitions/birth_names.py | 64 +
.../data_loading/data_definitions/types.py} | 27 +-
.../data_loading/pandas}/__init__.py | 9 -
.../data_loading/pandas/pandas_data_loader.py | 89 +
.../data_loading/pandas/pands_data_loading_conf.py | 64 +
.../data_loading/pandas/table_df_convertor.py | 46 +
.../__init__.py | 11 +-
tests/fixtures/birth_names.py | 51 +
tests/integration_tests/access_tests.py | 2 +-
tests/integration_tests/alerts_tests.py | 5 +-
tests/integration_tests/base_tests.py | 3 +-
tests/integration_tests/celery_tests.py | 3 +-
tests/integration_tests/charts/data/api_tests.py | 3 +-
tests/integration_tests/cli_tests.py | 104 +-
tests/integration_tests/config_tests.py | 2 +-
tests/integration_tests/conftest.py | 50 +-
tests/integration_tests/core_tests.py | 30 +-
tests/integration_tests/css_templates/api_tests.py | 2 +-
tests/integration_tests/csv_upload_tests.py | 7 +-
.../dashboards/filter_state/api_tests.py | 2 +-
tests/integration_tests/databases/api_tests.py | 2 +-
.../integration_tests/databases/commands_tests.py | 3 +-
tests/integration_tests/datasets/api_tests.py | 8 +-
tests/integration_tests/datasets/commands_tests.py | 3 +-
tests/integration_tests/datasource_tests.py | 3 +-
.../db_engine_specs/base_engine_spec_tests.py | 2 +-
.../db_engine_specs/trino_tests.py | 93 +
.../integration_tests/dict_import_export_tests.py | 2 +-
.../v1 => integration_tests/explore}/__init__.py | 0
.../explore/form_data}/__init__.py | 0
.../explore/form_data/api_tests.py | 217 +
.../fixtures/birth_names_dashboard.py | 55 +-
tests/integration_tests/fixtures/datasource.py | 3 +-
.../integration_tests/fixtures/energy_dashboard.py | 3 +-
.../fixtures/unicode_dashboard.py | 3 +-
.../fixtures/world_bank_dashboard.py | 3 +-
tests/integration_tests/import_export_tests.py | 3 +-
.../importexport/commands_tests.py | 2 +-
tests/integration_tests/jinja_context_tests.py | 27 +-
tests/integration_tests/model_tests.py | 2 +-
.../pandas_postprocessing_tests.py | 67 +
tests/integration_tests/queries/api_tests.py | 2 +-
.../queries/saved_queries/api_tests.py | 2 +-
.../queries/saved_queries/commands_tests.py | 2 +-
tests/integration_tests/reports/api_tests.py | 2 +-
tests/integration_tests/reports/commands_tests.py | 2 +-
tests/integration_tests/security_tests.py | 2 +-
tests/integration_tests/sql_validator_tests.py | 2 +-
tests/integration_tests/sqla_models_tests.py | 2 +-
tests/integration_tests/sqllab_tests.py | 3 +-
tests/integration_tests/strategy_tests.py | 2 +-
tests/integration_tests/utils_tests.py | 2 +-
.../commands/importers/v1 => explore}/__init__.py | 0
.../importers/v1 => explore/form_data}/__init__.py | 0
tests/unit_tests/explore/form_data/utils_test.py | 157 +
272 files changed, 35652 insertions(+), 11459 deletions(-)
create mode 100644 docs/src/pages/docs/Contributing/creating-viz-plugins.mdx
delete mode 100644 docs/src/pages/docs/installation/building-viz-plugins.mdx
create mode 100644 superset-frontend/packages/generator-superset/generators/plugin-chart/templates/gitignore.erb
create mode 100644 superset-frontend/packages/generator-superset/generators/plugin-chart/templates/package-lock.erb
rename superset-frontend/packages/superset-ui-demo/storybook/stories/superset-ui-color/{ColorPallettesStories.jsx => ColorPallettesStories.tsx} (100%)
rename superset-frontend/packages/superset-ui-demo/storybook/stories/superset-ui-color/{RenderPalettes.jsx => RenderPalettes.tsx} (100%)
rename superset-frontend/packages/superset-ui-demo/storybook/stories/superset-ui-number-format/{BigNumberStories.jsx => BigNumberStories.tsx} (75%)
copy superset-frontend/packages/superset-ui-demo/storybook/stories/superset-ui-style/{ThemeStories.jsx => ThemeStories.tsx} (100%)
rename superset-frontend/packages/superset-ui-demo/storybook/stories/superset-ui-time-format/{TimeFormatStories.jsx => TimeFormatStories.tsx} (77%)
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/cyprus.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/jordan.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/kenya.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/kuwait.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/lithuania.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/nigeria.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/oman.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/pakistan.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/philippines.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/qatar.geojson
create mode 100644 superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/united_arab_emirates.geojson
rename superset-frontend/src/components/Checkbox/{Checkbox.stories.jsx => Checkbox.stories.tsx} (90%)
rename superset-frontend/{packages/superset-ui-demo/storybook/stories/superset-ui-style/ThemeStories.jsx => src/explore/components/RowCountLabel.stories.tsx} (55%)
rename superset-frontend/src/explore/components/{RowCountLabel.jsx => RowCountLabel.tsx} (79%)
delete mode 100755 superset/cli.py
copy {tests/unit_tests/datasets/commands/importers/v1 => superset/cli}/__init__.py (100%)
create mode 100755 superset/cli/celery.py
create mode 100755 superset/cli/examples.py
create mode 100755 superset/cli/importexport.py
create mode 100755 superset/cli/lib.py
create mode 100755 superset/cli/main.py
create mode 100755 superset/cli/test.py
create mode 100755 superset/cli/thumbnails.py
create mode 100755 superset/cli/update.py
copy superset/examples/{__init__.py => data_loading.py} (50%)
copy {tests/unit_tests/datasets/commands/importers/v1 => superset/explore}/__init__.py (100%)
copy {tests/unit_tests/datasets/commands/importers/v1 => superset/explore/form_data}/__init__.py (100%)
create mode 100644 superset/explore/form_data/api.py
copy {tests/unit_tests/datasets/commands/importers/v1 => superset/explore/form_data/commands}/__init__.py (100%)
copy superset/{key_value => explore/form_data}/commands/create.py (56%)
copy superset/{key_value => explore/form_data}/commands/delete.py (51%)
copy superset/{key_value => explore/form_data}/commands/get.py (54%)
copy superset/{dashboards/filter_state/commands/entry.py => explore/form_data/commands/parameters.py} (73%)
copy superset/{dashboards/filter_state/commands/entry.py => explore/form_data/commands/state.py} (86%)
create mode 100644 superset/explore/form_data/commands/update.py
copy superset/{dashboards/filter_state/commands/get.py => explore/form_data/schemas.py} (52%)
create mode 100644 superset/explore/form_data/utils.py
copy superset/{dashboards/filter_state => key_value}/commands/entry.py (100%)
rename superset/{dashboards/filter_state/commands/entry.py => key_value/commands/parameters.py} (72%)
create mode 100644 superset/migrations/versions/5fd49410a97a_add_columns_for_external_management.py
create mode 100644 superset/utils/database.py
create mode 100644 tests/conftest.py
copy tests/{common/example_data_generator/tests => consts}/__init__.py (68%)
copy tests/{common/example_data_generator/tests/__init__.py => consts/birth_names.py} (68%)
rename tests/{common/example_data_generator/birth_names/__init__.py => consts/us_states.py} (75%)
copy tests/{common/example_data_generator/tests => example_data}/__init__.py (68%)
copy tests/{common/example_data_generator/tests => example_data/data_generator}/__init__.py (100%)
copy tests/{common/example_data_generator => example_data/data_generator}/base_generator.py (72%)
copy tests/{common/example_data_generator/tests => example_data/data_generator/birth_names}/__init__.py (68%)
rename tests/{common/example_data_generator => example_data/data_generator}/birth_names/birth_names_generator.py (55%)
rename tests/{common/example_data_generator => example_data/data_generator}/birth_names/birth_names_generator_factory.py (78%)
rename tests/{common/example_data_generator => example_data/data_generator}/consts.py (100%)
rename tests/{common/example_data_generator => example_data/data_generator}/string_generator.py (78%)
rename tests/{common/example_data_generator => example_data/data_generator}/string_generator_factory.py (95%)
copy tests/{common/example_data_generator => example_data/data_generator/tests}/__init__.py (100%)
rename tests/{common/example_data_generator => example_data/data_generator}/tests/test_string_generator.py (85%)
copy tests/{common/example_data_generator/tests => example_data/data_loading}/__init__.py (68%)
copy tests/{common/example_data_generator/tests/__init__.py => example_data/data_loading/base_data_loader.py} (66%)
copy tests/{common/example_data_generator/tests => example_data/data_loading/data_definitions}/__init__.py (68%)
create mode 100644 tests/example_data/data_loading/data_definitions/birth_names.py
rename tests/{common/example_data_generator/base_generator.py => example_data/data_loading/data_definitions/types.py} (68%)
rename tests/{common/example_data_generator/tests => example_data/data_loading/pandas}/__init__.py (68%)
create mode 100644 tests/example_data/data_loading/pandas/pandas_data_loader.py
create mode 100644 tests/example_data/data_loading/pandas/pands_data_loading_conf.py
create mode 100644 tests/example_data/data_loading/pandas/table_df_convertor.py
rename tests/{common/example_data_generator => fixtures}/__init__.py (68%)
create mode 100644 tests/fixtures/birth_names.py
copy tests/{unit_tests/datasets/commands/importers/v1 => integration_tests/explore}/__init__.py (100%)
copy tests/{unit_tests/datasets/commands/importers/v1 => integration_tests/explore/form_data}/__init__.py (100%)
create mode 100644 tests/integration_tests/explore/form_data/api_tests.py
copy tests/unit_tests/{datasets/commands/importers/v1 => explore}/__init__.py (100%)
copy tests/unit_tests/{datasets/commands/importers/v1 => explore/form_data}/__init__.py (100%)
create mode 100644 tests/unit_tests/explore/form_data/utils_test.py