You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by di...@apache.org on 2025/01/21 08:18:27 UTC
(superset) branch geido/refactor/antd5-upgrade-menu updated (4066b7b3e1 -> 52407863f5)
This is an automated email from the ASF dual-hosted git repository.
diegopucci pushed a change to branch geido/refactor/antd5-upgrade-menu
in repository https://gitbox.apache.org/repos/asf/superset.git
omit 4066b7b3e1 Merge branch 'master' of https://github.com/apache/superset into geido/refactor/antd5-upgrade-menu
new 52407863f5 Merge branch 'master' of https://github.com/apache/superset into geido/refactor/antd5-upgrade-menu
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (4066b7b3e1)
\
N -- N -- N refs/heads/geido/refactor/antd5-upgrade-menu (52407863f5)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/dashboard/components/SliceHeaderControls/index.tsx | 6 +-----
.../src/dashboard/components/menu/ShareMenuItems/index.tsx | 1 -
2 files changed, 1 insertion(+), 6 deletions(-)
(superset) 01/01: Merge branch 'master' of https://github.com/apache/superset into geido/refactor/antd5-upgrade-menu
Posted by di...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
diegopucci pushed a commit to branch geido/refactor/antd5-upgrade-menu
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 52407863f50a420043ba97cf2298de78b20eae56
Merge: 77f513890c 63843c5682
Author: Diego Pucci <di...@gmail.com>
AuthorDate: Tue Jan 21 07:51:55 2025 +0100
Merge branch 'master' of https://github.com/apache/superset into geido/refactor/antd5-upgrade-menu
.asf.yaml | 1 +
.github/actions/setup-backend/action.yml | 8 +-
.github/workflows/pre-commit.yml | 4 +-
.../workflows/superset-python-integrationtest.yml | 2 +-
.github/workflows/superset-python-unittest.yml | 2 +-
.pre-commit-config.yaml | 8 +
Dockerfile | 2 +-
RESOURCES/FEATURE_FLAGS.md | 1 +
UPDATING.md | 5 +
docker-compose.yml | 6 +
docker/docker-bootstrap.sh | 8 +-
.../docker-entrypoint-initdb.d/cypress-init.sh | 22 +-
docker/docker-frontend.sh | 4 +-
docker/docker-init.sh | 20 +-
docker/pythonpath_dev/superset_config.py | 13 +
docs/docs/configuration/networking-settings.mdx | 6 +-
docs/docs/contributing/development.mdx | 76 +-
docs/docs/contributing/howtos.mdx | 46 +-
pyproject.toml | 15 +-
requirements/base.in | 5 -
requirements/base.txt | 57 +-
requirements/development.txt | 57 +-
scripts/cypress_run.py | 8 +-
superset-frontend/.eslintrc.js | 6 +
superset-frontend/cypress-base/cypress.config.ts | 7 +-
.../cypress/e2e/chart_list/list.test.ts | 14 +-
.../cypress/e2e/dashboard/editmode.test.ts | 4 +-
.../cypress/e2e/dashboard_list/list.test.ts | 6 +-
.../cypress-base/cypress/e2e/explore/utils.ts | 9 +-
.../cypress-base/cypress/support/e2e.ts | 20 +-
superset-frontend/cypress-base/package-lock.json | 103 +-
superset-frontend/cypress-base/package.json | 5 +-
superset-frontend/package-lock.json | 1831 +++-----------------
superset-frontend/package.json | 8 +-
.../superset-ui-core/src/utils/featureFlags.ts | 1 -
.../src/layers/common.test.ts | 145 ++
.../src/layers/common.tsx | 44 +-
.../src/utils/sandbox.ts | 2 +
superset-frontend/src/GlobalStyles.tsx | 5 +-
superset-frontend/src/SqlLab/actions/sqlLab.js | 24 +-
.../components/ScheduleQueryButton/index.tsx | 7 +-
.../ShareSqlLabQuery/ShareSqlLabQuery.test.tsx | 76 +-
.../SqlLab/components/ShareSqlLabQuery/index.tsx | 82 +-
.../TabbedSqlEditors/TabbedSqlEditors.test.tsx | 48 +-
.../SqlLab/components/TabbedSqlEditors/index.tsx | 10 +-
.../src/components/Icons/Icons.stories.tsx | 57 +-
.../components/SliceHeaderControls/index.tsx | 6 +-
.../components/menu/ShareMenuItems/index.tsx | 7 +-
.../ZoomConfigControl/ZoomConfigsChart.tsx | 4 +-
.../controls/ZoomConfigControl/zoomUtil.ts | 6 +-
.../src/features/home/EmptyState.test.tsx | 18 +-
.../ReportModal/HeaderReportDropdown/index.tsx | 38 +-
.../src/features/tags/BulkTagModal.test.tsx | 114 ++
.../src/features/tags/BulkTagModal.tsx | 2 +-
superset-frontend/webpack.config.js | 29 +-
superset-frontend/webpack.proxy-config.js | 6 +-
superset/commands/dashboard/export.py | 2 +-
superset/commands/database/update.py | 2 +-
superset/commands/report/alert.py | 19 +-
superset/commands/report/execute.py | 4 +-
.../commands/sql_lab/permalink/__init__.py | 14 -
.../commands/sql_lab/permalink/base.py | 29 +-
superset/commands/sql_lab/permalink/create.py | 49 +
superset/commands/sql_lab/permalink/get.py | 71 +
superset/commands/tag/create.py | 37 +-
superset/config.py | 28 +-
superset/connectors/sqla/models.py | 1 +
superset/dashboards/api.py | 24 +-
superset/db_engine_specs/bigquery.py | 34 +-
superset/db_engine_specs/hive.py | 2 +-
superset/db_engine_specs/ocient.py | 4 +-
superset/db_engine_specs/presto.py | 6 +-
superset/db_engine_specs/redshift.py | 2 +-
superset/db_engine_specs/trino.py | 2 +-
superset/extensions/metadb.py | 2 +-
superset/initialization/__init__.py | 11 +-
superset/key_value/types.py | 2 +
superset/models/core.py | 4 +-
superset/models/helpers.py | 2 +-
superset/result_set.py | 4 +-
.../base.in => superset/sql/dialects/__init__.py | 14 +-
superset/sql/dialects/firebolt.py | 192 ++
superset/sql/parse.py | 5 +-
.../sqllab/permalink/__init__.py | 14 -
superset/sqllab/permalink/api.py | 144 ++
.../sqllab/permalink/exceptions.py | 25 +-
superset/sqllab/permalink/schemas.py | 46 +
.../base.in => superset/sqllab/permalink/types.py | 20 +-
superset/utils/date_parser.py | 197 ++-
superset/utils/excel.py | 2 +-
superset/utils/mock_data.py | 7 +-
superset/utils/pandas_postprocessing/compare.py | 2 +-
superset/utils/pandas_postprocessing/geography.py | 4 +-
superset/utils/pandas_postprocessing/histogram.py | 2 +-
superset/utils/webdriver.py | 48 +-
superset/views/base_api.py | 24 +
superset/views/key_value.py | 67 -
superset/views/sqllab.py | 4 +-
superset/viz.py | 2 +
tests/integration_tests/cache_tests.py | 74 +-
tests/integration_tests/charts/api_tests.py | 10 +-
tests/integration_tests/core_tests.py | 352 +---
tests/integration_tests/dashboards/api_tests.py | 84 +-
.../db_engine_specs/presto_tests.py | 6 +-
.../integration_tests/dict_import_export_tests.py | 5 +-
tests/integration_tests/import_export_tests.py | 4 +-
tests/integration_tests/reports/alert_tests.py | 121 +-
.../sql_lab/permalink/__init__.py | 14 -
.../sql_lab/permalink/api_tests.py | 102 ++
tests/integration_tests/superset_test_config.py | 3 +-
.../superset_test_config_thumbnails.py | 2 -
tests/integration_tests/tags/api_tests.py | 13 +-
tests/integration_tests/utils_tests.py | 5 +-
tests/unit_tests/commands/databases/update_test.py | 48 +
tests/unit_tests/models/core_test.py | 1 +
tests/unit_tests/sql/parse_tests.py | 57 +-
tests/unit_tests/sql_parse_tests.py | 6 +-
tests/unit_tests/utils/date_parser_tests.py | 40 +
118 files changed, 2576 insertions(+), 2665 deletions(-)
diff --cc superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx
index fb827f92af,af8cbd739b..1f6d2deb50
--- a/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx
+++ b/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx
@@@ -578,11 -428,11 +578,7 @@@ const SliceHeaderControls =
)}
{props.supersetCanCSV && (
-- <Menu.SubMenu
-- title={t('Download')}
-- key={MenuKeys.Download}
-- onTitleMouseEnter={() => setOpenKeys(undefined)}
-- >
++ <Menu.SubMenu title={t('Download')} key={MenuKeys.Download}>
<Menu.Item
key={MenuKeys.ExportCsv}
icon={<Icons.FileOutlined css={dropdownIconsStyles} />}
diff --cc superset-frontend/src/dashboard/components/menu/ShareMenuItems/index.tsx
index 021fdceb97,0d7211ba8e..6c5468da24
--- a/superset-frontend/src/dashboard/components/menu/ShareMenuItems/index.tsx
+++ b/superset-frontend/src/dashboard/components/menu/ShareMenuItems/index.tsx
@@@ -52,9 -49,10 +52,8 @@@ const ShareMenuItems = (props: ShareMen
addSuccessToast,
dashboardId,
dashboardComponentId,
- setOpenKeys,
- copyMenuItemRef,
- shareByEmailMenuItemRef,
- selectedKeys,
- ...rest
+ key,
+ title,
} = props;
const { dataMask, activeTabs } = useSelector(
(state: RootState) => ({
@@@ -97,18 -95,28 +96,14 @@@
}
return (
- <Menu.SubMenu
- title={title}
- key={key}
- onTitleMouseEnter={() => setOpenKeys?.(undefined)}
- <Menu
- selectable={false}
- selectedKeys={selectedKeys}
- onClick={e =>
- e.key === MenuKeys.CopyLink ? onCopyLink() : onShareByEmail()
- }
-- >
- <Menu.Item key={MenuKeys.CopyLink} ref={copyMenuItemRef} {...rest}>
- <div role="button" tabIndex={0}>
- {copyMenuItemTitle}
- </div>
++ <Menu.SubMenu title={title} key={key}>
+ <Menu.Item key={MenuKeys.CopyLink} onClick={() => onCopyLink()}>
+ {copyMenuItemTitle}
</Menu.Item>
- <Menu.Item
- key={MenuKeys.ShareByEmail}
- ref={shareByEmailMenuItemRef}
- {...rest}
- >
- <div role="button" tabIndex={0}>
- {emailMenuItemTitle}
- </div>
+ <Menu.Item key={MenuKeys.ShareByEmail} onClick={() => onShareByEmail()}>
+ {emailMenuItemTitle}
</Menu.Item>
- </Menu>
+ </Menu.SubMenu>
);
};
export default ShareMenuItems;
diff --cc superset-frontend/src/features/reports/ReportModal/HeaderReportDropdown/index.tsx
index ae2d8fa397,aedf477442..66a8195f1f
--- a/superset-frontend/src/features/reports/ReportModal/HeaderReportDropdown/index.tsx
+++ b/superset-frontend/src/features/reports/ReportModal/HeaderReportDropdown/index.tsx
@@@ -235,25 -235,25 +235,23 @@@ export default function HeaderReportDro
<Menu.Divider />
</Menu>
) : (
-- isDropdownVisible && (
-- <Menu selectable={false} css={{ border: 'none' }}>
-- <Menu.Item
-- css={onMenuItemHover}
-- onClick={() => toggleActiveKey(report, !isReportActive)}
-- >
-- <MenuItemWithCheckboxContainer>
-- <Checkbox checked={isReportActive} onChange={noOp} />
-- {t('Email reports active')}
-- </MenuItemWithCheckboxContainer>
-- </Menu.Item>
-- <Menu.Item css={onMenuItemHover} onClick={handleShowMenu}>
-- {t('Edit email report')}
-- </Menu.Item>
-- <Menu.Item css={onMenuItemHover} onClick={handleDeleteMenuClick}>
-- {t('Delete email report')}
-- </Menu.Item>
-- </Menu>
-- )
++ <Menu selectable={false} css={{ border: 'none' }}>
++ <Menu.Item
++ css={onMenuItemHover}
++ onClick={() => toggleActiveKey(report, !isReportActive)}
++ >
++ <MenuItemWithCheckboxContainer>
++ <Checkbox checked={isReportActive} onChange={noOp} />
++ {t('Email reports active')}
++ </MenuItemWithCheckboxContainer>
++ </Menu.Item>
++ <Menu.Item css={onMenuItemHover} onClick={handleShowMenu}>
++ {t('Edit email report')}
++ </Menu.Item>
++ <Menu.Item css={onMenuItemHover} onClick={handleDeleteMenuClick}>
++ {t('Delete email report')}
++ </Menu.Item>
++ </Menu>
);
const menu = () => (
<Menu selectable={false} css={{ width: '200px' }}>
@@@ -326,7 -326,7 +324,7 @@@
dashboardId ? CreationMethod.Dashboards : CreationMethod.Charts
}
/>
-- {useTextMenu ? textMenu() : iconMenu()}
++ {isDropdownVisible ? (useTextMenu ? textMenu() : iconMenu()) : null}
{currentReportDeleting && (
<DeleteModal
description={t(