Skip to content

Commit 34cea99

Browse files
authored
feat(issues): Add cache projects feature flag (#89110)
1 parent a3d9afa commit 34cea99

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/sentry/features/temporary.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def register_temporary_features(manager: FeatureManager):
6666
manager.add("organizations:auto-enable-codecov", OrganizationFeature, FeatureHandlerStrategy.INTERNAL, api_expose=False)
6767
# Enable GenAI features such as Autofix and Issue Summary
6868
manager.add("organizations:autofix-seer-preferences", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
69+
# Enable caching projects in browser to speed up ui bootstrap time
70+
manager.add("organizations:cache-projects-ui", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
6971
# Enables Chonk UI
7072
manager.add("organizations:chonk-ui", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
7173
# Enables Chonk UI Feedback button

src/sentry/web/client_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ def enabled_features(self) -> Iterable[str]:
223223
yield "relocation:enabled"
224224
if features.has("system:multi-region"):
225225
yield "system:multi-region"
226+
# last_org may not always be available
227+
if self.last_org and features.has(
228+
"organizations:cache-projects-ui", self.last_org, actor=self.user
229+
):
230+
yield "organizations:cache-projects-ui"
226231
# TODO @athena: remove this feature flag after development is done
227232
# this is a temporary hack to be able to used flagpole in a case where there's no organization
228233
# availble on the frontend

0 commit comments

Comments
 (0)