Add Notion workspace name resolver
Notion was the only wired access-review connector without a name resolver, so the source kept the generic "Notion" placeholder. Fetch the workspace name from /v1/users/me (bot.workspace_name) following the same pattern as the other resolvers, and refresh the stale scope comment now that Notion participates in name resolution. Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -277,6 +277,8 @@ func (h *sourceNameHandler) buildResolver(
|
||||
return drivers.NewSupabaseNameResolver(supabaseSettings.OrganizationSlug)
|
||||
case coredata.ConnectorProviderIntercom:
|
||||
return drivers.NewIntercomNameResolver(httpClient)
|
||||
case coredata.ConnectorProviderNotion:
|
||||
return drivers.NewNotionNameResolver(httpClient)
|
||||
case coredata.ConnectorProviderResend:
|
||||
return drivers.NewResendNameResolver()
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user