Skip to content

Commit

Permalink
chore(features) Mark features used in fronted with api_expose (#74521)
Browse files Browse the repository at this point in the history
Mark all of the features that I could find referenced in the frontend
code with `api_expose=True`. This is currently a no-op change as the
default value for `api_expose` is also `True` but I'm preparing for a
future change in the default value.

Refs HC-1197
  • Loading branch information
markstory authored Jul 19, 2024
1 parent 9fcd76e commit 3deaf1b
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 83 deletions.
18 changes: 15 additions & 3 deletions src/sentry/features/permanent.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,27 @@ def register_permanent_features(manager: FeatureManager):

for org_feature, default in permanent_organization_features.items():
manager.add(
org_feature, OrganizationFeature, FeatureHandlerStrategy.INTERNAL, default=default
org_feature,
OrganizationFeature,
FeatureHandlerStrategy.INTERNAL,
default=default,
api_expose=True,
)

for project_feature, default in permanent_project_features.items():
manager.add(
project_feature, ProjectFeature, FeatureHandlerStrategy.INTERNAL, default=default
project_feature,
ProjectFeature,
FeatureHandlerStrategy.INTERNAL,
default=default,
api_expose=True,
)

# Enable support for multiple regions, and org slug subdomains (customer-domains).
manager.add(
"system:multi-region", SystemFeature, FeatureHandlerStrategy.INTERNAL, default=False
"system:multi-region",
SystemFeature,
FeatureHandlerStrategy.INTERNAL,
default=False,
api_expose=False,
)
Loading

0 comments on commit 3deaf1b

Please sign in to comment.