mirror of https://github.com/apache/superset.git
chore: Deprecates FilterBox (#23784)
This commit is contained in:
parent
f7810b6020
commit
90e2b839a3
|
@ -76,7 +76,6 @@ These features flags are **safe for production**. They have been tested and will
|
||||||
- ALLOW_ADHOC_SUBQUERY
|
- ALLOW_ADHOC_SUBQUERY
|
||||||
- DASHBOARD_CROSS_FILTERS
|
- DASHBOARD_CROSS_FILTERS
|
||||||
- DASHBOARD_RBAC [(docs)](https://superset.apache.org/docs/creating-charts-dashboards/first-dashboard#manage-access-to-dashboards)
|
- DASHBOARD_RBAC [(docs)](https://superset.apache.org/docs/creating-charts-dashboards/first-dashboard#manage-access-to-dashboards)
|
||||||
- DASHBOARD_NATIVE_FILTERS
|
|
||||||
- DATAPANEL_CLOSED_BY_DEFAULT
|
- DATAPANEL_CLOSED_BY_DEFAULT
|
||||||
- DISABLE_LEGACY_DATASOURCE_EDITOR
|
- DISABLE_LEGACY_DATASOURCE_EDITOR
|
||||||
- DRUID_JOINS
|
- DRUID_JOINS
|
||||||
|
@ -98,4 +97,5 @@ These features flags currently default to True and **will be removed in a future
|
||||||
|
|
||||||
[//]: # "PLEASE KEEP THE LIST SORTED ALPHABETICALLY"
|
[//]: # "PLEASE KEEP THE LIST SORTED ALPHABETICALLY"
|
||||||
|
|
||||||
|
- DASHBOARD_NATIVE_FILTERS
|
||||||
- GENERIC_CHART_AXES
|
- GENERIC_CHART_AXES
|
||||||
|
|
|
@ -64,7 +64,7 @@ test('renders the appropriate dropdown in Message Content section', async () =>
|
||||||
|
|
||||||
expect(await screen.findByRole('radio', { name: /chart/i })).toBeChecked();
|
expect(await screen.findByRole('radio', { name: /chart/i })).toBeChecked();
|
||||||
expect(
|
expect(
|
||||||
screen.getByRole('radio', {
|
await screen.findByRole('radio', {
|
||||||
name: /dashboard/i,
|
name: /dashboard/i,
|
||||||
}),
|
}),
|
||||||
).not.toBeChecked();
|
).not.toBeChecked();
|
||||||
|
|
|
@ -122,6 +122,9 @@ const StyledFilterContainer = styled.div`
|
||||||
`}
|
`}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated in version 3.0.
|
||||||
|
*/
|
||||||
class FilterBox extends React.PureComponent {
|
class FilterBox extends React.PureComponent {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -25,7 +25,7 @@ import controlPanel from './controlPanel';
|
||||||
|
|
||||||
const metadata = new ChartMetadata({
|
const metadata = new ChartMetadata({
|
||||||
category: t('Tools'),
|
category: t('Tools'),
|
||||||
name: t('Filter box'),
|
name: t('Filter box (deprecated)'),
|
||||||
description:
|
description:
|
||||||
t(`Chart component that lets you add a custom filter UI in your dashboard. When added to dashboard, a filter box lets users specify specific values or ranges to filter charts by. The charts that each filter box is applied to can be fine tuned as well in the dashboard view.
|
t(`Chart component that lets you add a custom filter UI in your dashboard. When added to dashboard, a filter box lets users specify specific values or ranges to filter charts by. The charts that each filter box is applied to can be fine tuned as well in the dashboard view.
|
||||||
|
|
||||||
|
@ -33,8 +33,12 @@ const metadata = new ChartMetadata({
|
||||||
exampleGallery: [{ url: example1 }, { url: example2 }],
|
exampleGallery: [{ url: example1 }, { url: example2 }],
|
||||||
thumbnail,
|
thumbnail,
|
||||||
useLegacyApi: true,
|
useLegacyApi: true,
|
||||||
|
tags: [t('Legacy'), t('Deprecated')],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated in version 3.0.
|
||||||
|
*/
|
||||||
export default class FilterBoxChartPlugin extends ChartPlugin {
|
export default class FilterBoxChartPlugin extends ChartPlugin {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
|
|
|
@ -50,6 +50,7 @@ import pandas as pd
|
||||||
import polyline
|
import polyline
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
from dateutil import relativedelta as rdelta
|
from dateutil import relativedelta as rdelta
|
||||||
|
from deprecation import deprecated
|
||||||
from flask import request
|
from flask import request
|
||||||
from flask_babel import gettext as __, lazy_gettext as _
|
from flask_babel import gettext as __, lazy_gettext as _
|
||||||
from geopy.point import Point
|
from geopy.point import Point
|
||||||
|
@ -2134,6 +2135,7 @@ class WorldMapViz(BaseViz):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
@deprecated(deprecated_in="3.0")
|
||||||
class FilterBoxViz(BaseViz):
|
class FilterBoxViz(BaseViz):
|
||||||
|
|
||||||
"""A multi filter, multi-choice filter box to make dashboards interactive"""
|
"""A multi filter, multi-choice filter box to make dashboards interactive"""
|
||||||
|
|
Loading…
Reference in New Issue