chore: Deprecates FilterBox (#23784)

This commit is contained in:
Michael S. Molina 2023-04-24 13:54:31 -03:00 committed by GitHub
parent f7810b6020
commit 90e2b839a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 3 deletions

View File

@ -76,7 +76,6 @@ These features flags are **safe for production**. They have been tested and will
- ALLOW_ADHOC_SUBQUERY
- DASHBOARD_CROSS_FILTERS
- DASHBOARD_RBAC [(docs)](https://superset.apache.org/docs/creating-charts-dashboards/first-dashboard#manage-access-to-dashboards)
- DASHBOARD_NATIVE_FILTERS
- DATAPANEL_CLOSED_BY_DEFAULT
- DISABLE_LEGACY_DATASOURCE_EDITOR
- 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"
- DASHBOARD_NATIVE_FILTERS
- GENERIC_CHART_AXES

View File

@ -64,7 +64,7 @@ test('renders the appropriate dropdown in Message Content section', async () =>
expect(await screen.findByRole('radio', { name: /chart/i })).toBeChecked();
expect(
screen.getByRole('radio', {
await screen.findByRole('radio', {
name: /dashboard/i,
}),
).not.toBeChecked();

View File

@ -122,6 +122,9 @@ const StyledFilterContainer = styled.div`
`}
`;
/**
* @deprecated in version 3.0.
*/
class FilterBox extends React.PureComponent {
constructor(props) {
super(props);

View File

@ -25,7 +25,7 @@ import controlPanel from './controlPanel';
const metadata = new ChartMetadata({
category: t('Tools'),
name: t('Filter box'),
name: t('Filter box (deprecated)'),
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.
@ -33,8 +33,12 @@ const metadata = new ChartMetadata({
exampleGallery: [{ url: example1 }, { url: example2 }],
thumbnail,
useLegacyApi: true,
tags: [t('Legacy'), t('Deprecated')],
});
/**
* @deprecated in version 3.0.
*/
export default class FilterBoxChartPlugin extends ChartPlugin {
constructor() {
super({

View File

@ -50,6 +50,7 @@ import pandas as pd
import polyline
import simplejson as json
from dateutil import relativedelta as rdelta
from deprecation import deprecated
from flask import request
from flask_babel import gettext as __, lazy_gettext as _
from geopy.point import Point
@ -2134,6 +2135,7 @@ class WorldMapViz(BaseViz):
return data
@deprecated(deprecated_in="3.0")
class FilterBoxViz(BaseViz):
"""A multi filter, multi-choice filter box to make dashboards interactive"""