Projet

Général

Profil

0001-dataviz-hide-filters-cell-behind-feature-flag-60915.patch

Valentin Deniaud, 24 janvier 2022 11:18

Télécharger (1,61 ko)

Voir les différences:

Subject: [PATCH] dataviz: hide filters cell behind feature flag (#60915)

 combo/apps/dataviz/models.py | 2 +-
 combo/settings.py            | 1 +
 tests/settings.py            | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
combo/apps/dataviz/models.py
691 691

  
692 692
    @classmethod
693 693
    def is_enabled(cls):
694
        return settings.STATISTICS_PROVIDERS
694
        return settings.CHART_FILTERS_CELL_ENABLED and settings.STATISTICS_PROVIDERS
695 695

  
696 696
    def get_cell_extra_context(self, context):
697 697
        from .forms import ChartFiltersForm
combo/settings.py
362 362
BOOKING_CALENDAR_CELL_ENABLED = False
363 363
LEGACY_CHART_CELL_ENABLED = False
364 364
PUBLIK_FAMILY_CELL_ENABLED = False
365
CHART_FILTERS_CELL_ENABLED = False
365 366

  
366 367

  
367 368
def debug_show_toolbar(request):
tests/settings.py
89 89
BOOKING_CALENDAR_CELL_ENABLED = True
90 90
LEGACY_CHART_CELL_ENABLED = True
91 91
PUBLIK_FAMILY_CELL_ENABLED = True
92
CHART_FILTERS_CELL_ENABLED = True
92 93

  
93 94
USER_PROFILE_CONFIG = {
94 95
    'fields': [
95
-