mirror of https://github.com/apache/superset.git
refactor: Removes the deprecated DISABLE_DATASET_SOURCE_EDIT feature flag (#26331)
This commit is contained in:
parent
8b047a521b
commit
b2ad74f94f
|
@ -91,7 +91,6 @@ These features flags currently default to True and **will be removed in a future
|
||||||
- DASHBOARD_FILTERS_EXPERIMENTAL
|
- DASHBOARD_FILTERS_EXPERIMENTAL
|
||||||
- DASHBOARD_NATIVE_FILTERS
|
- DASHBOARD_NATIVE_FILTERS
|
||||||
- DASHBOARD_NATIVE_FILTERS_SET
|
- DASHBOARD_NATIVE_FILTERS_SET
|
||||||
- DISABLE_DATASET_SOURCE_EDIT
|
|
||||||
- ENABLE_EXPLORE_DRAG_AND_DROP
|
- ENABLE_EXPLORE_DRAG_AND_DROP
|
||||||
- ENABLE_EXPLORE_JSON_CSRF_PROTECTION
|
- ENABLE_EXPLORE_JSON_CSRF_PROTECTION
|
||||||
- ENABLE_TEMPLATE_REMOVE_FILTERS
|
- ENABLE_TEMPLATE_REMOVE_FILTERS
|
||||||
|
|
|
@ -29,6 +29,8 @@ assists people when migrating to a new version.
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
||||||
|
- [26331](https://github.com/apache/superset/issues/26331): Removes the deprecated `DISABLE_DATASET_SOURCE_EDIT` feature flag. The previous value of the feature flag was `False` and now the feature is permanently removed.
|
||||||
|
|
||||||
### Potential Downtime
|
### Potential Downtime
|
||||||
|
|
||||||
- [26416](https://github.com/apache/superset/pull/26416): adds 2 database indexes to report_execution_log and 1 to report_recipient to improve performance, this may cause downtime on large deployments.
|
- [26416](https://github.com/apache/superset/pull/26416): adds 2 database indexes to report_execution_log and 1 to report_recipient to improve performance, this may cause downtime on large deployments.
|
||||||
|
|
|
@ -34,7 +34,6 @@ export enum FeatureFlag {
|
||||||
DASHBOARD_VIRTUALIZATION = 'DASHBOARD_VIRTUALIZATION',
|
DASHBOARD_VIRTUALIZATION = 'DASHBOARD_VIRTUALIZATION',
|
||||||
DASHBOARD_RBAC = 'DASHBOARD_RBAC',
|
DASHBOARD_RBAC = 'DASHBOARD_RBAC',
|
||||||
DATAPANEL_CLOSED_BY_DEFAULT = 'DATAPANEL_CLOSED_BY_DEFAULT',
|
DATAPANEL_CLOSED_BY_DEFAULT = 'DATAPANEL_CLOSED_BY_DEFAULT',
|
||||||
DISABLE_DATASET_SOURCE_EDIT = 'DISABLE_DATASET_SOURCE_EDIT',
|
|
||||||
DISABLE_LEGACY_DATASOURCE_EDITOR = 'DISABLE_LEGACY_DATASOURCE_EDITOR',
|
DISABLE_LEGACY_DATASOURCE_EDITOR = 'DISABLE_LEGACY_DATASOURCE_EDITOR',
|
||||||
DRILL_TO_DETAIL = 'DRILL_TO_DETAIL',
|
DRILL_TO_DETAIL = 'DRILL_TO_DETAIL',
|
||||||
DRILL_BY = 'DRILL_BY',
|
DRILL_BY = 'DRILL_BY',
|
||||||
|
|
|
@ -629,9 +629,6 @@ class DatasourceEditor extends React.PureComponent {
|
||||||
this.setColumns = this.setColumns.bind(this);
|
this.setColumns = this.setColumns.bind(this);
|
||||||
this.validateAndChange = this.validateAndChange.bind(this);
|
this.validateAndChange = this.validateAndChange.bind(this);
|
||||||
this.handleTabSelect = this.handleTabSelect.bind(this);
|
this.handleTabSelect = this.handleTabSelect.bind(this);
|
||||||
this.allowEditSource = !isFeatureEnabled(
|
|
||||||
FeatureFlag.DISABLE_DATASET_SOURCE_EDIT,
|
|
||||||
);
|
|
||||||
this.currencies = ensureIsArray(props.currencies).map(currencyCode => ({
|
this.currencies = ensureIsArray(props.currencies).map(currencyCode => ({
|
||||||
value: currencyCode,
|
value: currencyCode,
|
||||||
label: `${getCurrencySymbol({
|
label: `${getCurrencySymbol({
|
||||||
|
@ -1050,7 +1047,6 @@ class DatasourceEditor extends React.PureComponent {
|
||||||
const { datasource } = this.state;
|
const { datasource } = this.state;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{this.allowEditSource && (
|
|
||||||
<EditLockContainer>
|
<EditLockContainer>
|
||||||
<span role="button" tabIndex={0} onClick={this.onChangeEditMode}>
|
<span role="button" tabIndex={0} onClick={this.onChangeEditMode}>
|
||||||
{this.state.isEditMode ? (
|
{this.state.isEditMode ? (
|
||||||
|
@ -1066,7 +1062,6 @@ class DatasourceEditor extends React.PureComponent {
|
||||||
<div>{t('Click the lock to prevent further changes.')}</div>
|
<div>{t('Click the lock to prevent further changes.')}</div>
|
||||||
)}
|
)}
|
||||||
</EditLockContainer>
|
</EditLockContainer>
|
||||||
)}
|
|
||||||
<div className="m-l-10 m-t-20 m-b-10">
|
<div className="m-l-10 m-t-20 m-b-10">
|
||||||
{DATASOURCE_TYPES_ARR.map(type => (
|
{DATASOURCE_TYPES_ARR.map(type => (
|
||||||
<Radio
|
<Radio
|
||||||
|
|
|
@ -190,22 +190,6 @@ describe('DatasourceEditor', () => {
|
||||||
expect(virtualRadioBtn).toBeDisabled();
|
expect(virtualRadioBtn).toBeDisabled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('render editor with feature flag false', () => {
|
|
||||||
beforeAll(() => {
|
|
||||||
isFeatureEnabledMock = jest
|
|
||||||
.spyOn(uiCore, 'isFeatureEnabled')
|
|
||||||
.mockImplementation(() => true);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('disable edit Source tab', async () => {
|
|
||||||
await asyncRender(props);
|
|
||||||
expect(
|
|
||||||
screen.queryByRole('img', { name: /lock-locked/i }),
|
|
||||||
).not.toBeInTheDocument();
|
|
||||||
isFeatureEnabledMock.mockRestore();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('DatasourceEditor RTL', () => {
|
describe('DatasourceEditor RTL', () => {
|
||||||
|
|
|
@ -404,7 +404,6 @@ CURRENCIES = ["USD", "EUR", "GBP", "INR", "MXN", "JPY", "CNY"]
|
||||||
DEFAULT_FEATURE_FLAGS: dict[str, bool] = {
|
DEFAULT_FEATURE_FLAGS: dict[str, bool] = {
|
||||||
# Experimental feature introducing a client (browser) cache
|
# Experimental feature introducing a client (browser) cache
|
||||||
"CLIENT_CACHE": False, # deprecated
|
"CLIENT_CACHE": False, # deprecated
|
||||||
"DISABLE_DATASET_SOURCE_EDIT": False, # deprecated
|
|
||||||
# When using a recent version of Druid that supports JOINs turn this on
|
# When using a recent version of Druid that supports JOINs turn this on
|
||||||
"DRUID_JOINS": False,
|
"DRUID_JOINS": False,
|
||||||
"DYNAMIC_PLUGINS": False,
|
"DYNAMIC_PLUGINS": False,
|
||||||
|
|
|
@ -88,7 +88,6 @@ FRONTEND_CONF_KEYS = (
|
||||||
"SUPERSET_DASHBOARD_POSITION_DATA_LIMIT",
|
"SUPERSET_DASHBOARD_POSITION_DATA_LIMIT",
|
||||||
"SUPERSET_DASHBOARD_PERIODICAL_REFRESH_LIMIT",
|
"SUPERSET_DASHBOARD_PERIODICAL_REFRESH_LIMIT",
|
||||||
"SUPERSET_DASHBOARD_PERIODICAL_REFRESH_WARNING_MESSAGE",
|
"SUPERSET_DASHBOARD_PERIODICAL_REFRESH_WARNING_MESSAGE",
|
||||||
"DISABLE_DATASET_SOURCE_EDIT",
|
|
||||||
"ENABLE_JAVASCRIPT_CONTROLS",
|
"ENABLE_JAVASCRIPT_CONTROLS",
|
||||||
"DEFAULT_SQLLAB_LIMIT",
|
"DEFAULT_SQLLAB_LIMIT",
|
||||||
"DEFAULT_VIZ_TYPE",
|
"DEFAULT_VIZ_TYPE",
|
||||||
|
|
Loading…
Reference in New Issue