dataviz: hide filters cell behind feature flag (#60915)

This commit is contained in:
Valentin Deniaud 2022-01-24 11:16:19 +01:00
parent 21cbc7ee35
commit cecde41751
3 changed files with 3 additions and 1 deletions

View File

@ -691,7 +691,7 @@ class ChartFiltersCell(CellBase):
@classmethod
def is_enabled(cls):
return settings.STATISTICS_PROVIDERS
return settings.CHART_FILTERS_CELL_ENABLED and settings.STATISTICS_PROVIDERS
def get_cell_extra_context(self, context):
from .forms import ChartFiltersForm

View File

@ -362,6 +362,7 @@ PWA_NOTIFICATION_ICON_URL = None
BOOKING_CALENDAR_CELL_ENABLED = False
LEGACY_CHART_CELL_ENABLED = False
PUBLIK_FAMILY_CELL_ENABLED = False
CHART_FILTERS_CELL_ENABLED = False
def debug_show_toolbar(request):

View File

@ -89,6 +89,7 @@ if 'DISABLE_MIGRATIONS' in os.environ:
BOOKING_CALENDAR_CELL_ENABLED = True
LEGACY_CHART_CELL_ENABLED = True
PUBLIK_FAMILY_CELL_ENABLED = True
CHART_FILTERS_CELL_ENABLED = True
USER_PROFILE_CONFIG = {
'fields': [