Просмотр исходного кода

chore(stats): Add feature flag for project stats view (#40005)

This PR adds the feature flag to enable viewing the org stats page with
the global project selector.
Leander Rodrigues 2 лет назад
Родитель
Сommit
ebc86800b4
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      src/sentry/conf/server.py
  2. 1 0
      src/sentry/features/__init__.py

+ 2 - 0
src/sentry/conf/server.py

@@ -1113,6 +1113,8 @@ SENTRY_FEATURES = {
     # Prefix host with organization ID when giving users DSNs (can be
     # customized with SENTRY_ORG_SUBDOMAIN_TEMPLATE)
     "organizations:org-subdomains": False,
+    # Enable project selection on the stats page
+    "organizations:project-stats": False,
     # Enable views for ops breakdown
     "organizations:performance-ops-breakdown": False,
     # Enable interpolation of null data points in charts instead of zerofilling in performance

+ 1 - 0
src/sentry/features/__init__.py

@@ -133,6 +133,7 @@ default_manager.add("organizations:performance-use-metrics", OrganizationFeature
 default_manager.add("organizations:performance-vitals-inp", OrganizationFeature, True)
 default_manager.add("organizations:profiling", OrganizationFeature)
 default_manager.add("organizations:project-event-date-limit", OrganizationFeature, True)
+default_manager.add("organizations:project-stats", OrganizationFeature, True)
 default_manager.add("organizations:related-events", OrganizationFeature)
 default_manager.add("organizations:release-committer-assignees", OrganizationFeature, True)
 default_manager.add("organizations:release-comparison-performance", OrganizationFeature, True)