File tree 2 files changed +8
-2
lines changed
src/sentry/workflow_engine/endpoints
tests/sentry/workflow_engine/endpoints
2 files changed +8
-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 @@ -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