File tree 4 files changed +14
-2
lines changed
src/sentry/workflow_engine/endpoints
tests/sentry/workflow_engine/endpoints
4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ class SentryAppContext(TypedDict):
52
52
installationId : str
53
53
status : int
54
54
settings : NotRequired [dict [str , Any ]]
55
+ title : NotRequired [str ]
55
56
56
57
57
58
class ActionHandlerSerializerResponse (TypedDict ):
@@ -102,14 +103,17 @@ def serialize(
102
103
sentry_app_context = kwargs .get ("sentry_app_context" )
103
104
if sentry_app_context :
104
105
installation = sentry_app_context .installation
106
+ component = sentry_app_context .component
105
107
sentry_app : SentryAppContext = {
106
108
"id" : str (installation .sentry_app .id ),
107
109
"name" : installation .sentry_app .name ,
108
110
"installationId" : str (installation .id ),
109
111
"status" : installation .sentry_app .status ,
110
112
}
111
- if sentry_app_context .component :
112
- sentry_app ["settings" ] = sentry_app_context .component .app_schema .get ("settings" , {})
113
+ if component :
114
+ sentry_app ["settings" ] = component .app_schema .get ("settings" , {})
115
+ if component .app_schema .get ("title" ):
116
+ sentry_app ["title" ] = component .app_schema .get ("title" )
113
117
result ["sentryApp" ] = sentry_app
114
118
115
119
services = kwargs .get ("services" )
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ export type FeatureDisabledHooks = {
239
239
'feature-disabled:discover2-page' : FeatureDisabledHook ;
240
240
'feature-disabled:discover2-sidebar-item' : FeatureDisabledHook ;
241
241
'feature-disabled:grid-editable-actions' : FeatureDisabledHook ;
242
+ 'feature-disabled:issue-views' : FeatureDisabledHook ;
242
243
'feature-disabled:open-discover' : FeatureDisabledHook ;
243
244
'feature-disabled:open-in-discover' : FeatureDisabledHook ;
244
245
'feature-disabled:performance-new-project' : FeatureDisabledHook ;
Original file line number Diff line number Diff line change @@ -350,6 +350,11 @@ const GETSENTRY_HOOKS: Partial<Hooks> = {
350
350
</ PowerFeatureHovercard >
351
351
) ,
352
352
'feature-disabled:open-in-discover' : p => < OpenInDiscoverBtn { ...p } /> ,
353
+ 'feature-disabled:issue-views' : p => (
354
+ < PowerFeatureHovercard features = { [ 'organizations:issue-views' ] } id = "issue-views" >
355
+ { typeof p . children === 'function' ? p . children ( p ) : p . children }
356
+ </ PowerFeatureHovercard >
357
+ ) ,
353
358
354
359
/**
355
360
* Augment integration installation modals with feature grouping based on
Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ def test_sentry_apps(self):
355
355
"installationId" : str (self .sentry_app_installation .id ),
356
356
"status" : SentryAppStatus .as_str (self .sentry_app .status ),
357
357
"settings" : ANY ,
358
+ "title" : ANY ,
358
359
},
359
360
},
360
361
{
@@ -458,6 +459,7 @@ class PluginActionHandler(ActionHandler):
458
459
"installationId" : str (self .sentry_app_installation .id ),
459
460
"status" : SentryAppStatus .as_str (self .sentry_app .status ),
460
461
"settings" : ANY ,
462
+ "title" : ANY ,
461
463
},
462
464
},
463
465
{
You can’t perform that action at this time.
0 commit comments