-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: embeddable hog function configuration #28671
Changes from all commits
7ee0a6d
b991d5e
931c312
e94e054
ea20950
cf431aa
babeb9e
6564358
9d8f209
244fc26
fb39f4b
761ee04
6869953
621e055
eb8720c
86eef8b
904b945
551adf0
447c7c2
1bac184
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
"label": "Slack workspace", | ||
"requiredScopes": "channels:read groups:read chat:write chat:write.customize", | ||
"secret": False, | ||
"hidden": False, | ||
"required": True, | ||
}, | ||
{ | ||
|
@@ -48,6 +49,7 @@ | |
"label": "Channel to post to", | ||
"description": "Select the channel to post to (e.g. #general). The PostHog app must be installed in the workspace.", | ||
"secret": False, | ||
"hidden": False, | ||
"required": True, | ||
}, | ||
{ | ||
|
@@ -57,6 +59,7 @@ | |
"default": ":hedgehog:", | ||
"required": False, | ||
"secret": False, | ||
"hidden": False, | ||
}, | ||
{ | ||
"key": "username", | ||
|
@@ -65,6 +68,7 @@ | |
"default": "PostHog", | ||
"required": False, | ||
"secret": False, | ||
"hidden": False, | ||
}, | ||
{ | ||
"key": "blocks", | ||
|
@@ -97,6 +101,7 @@ | |
], | ||
"secret": False, | ||
"required": False, | ||
"hidden": False, | ||
}, | ||
{ | ||
"key": "text", | ||
|
@@ -106,6 +111,7 @@ | |
"default": "*{person.name}* triggered event: '{event.event}'", | ||
"secret": False, | ||
"required": False, | ||
"hidden": False, | ||
}, | ||
], | ||
sub_templates=[ | ||
|
@@ -201,5 +207,30 @@ | |
}, | ||
}, | ||
), | ||
HogFunctionSubTemplate( | ||
id="error-tracking-issue-created", | ||
name="Post to Slack on issue created", | ||
description="", | ||
filters={"events": [{"id": "$error_tracking_issue_created", "type": "events"}]}, | ||
type="internal_destination", | ||
input_schema_overrides={ | ||
"blocks": { | ||
"default": [ | ||
{ | ||
"text": { | ||
"text": "*{person.properties.email}* {event.properties.activity} {event.properties.scope} {event.properties.item_id} ", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: The message format reuses activity log properties but error tracking events may have different property names. Verify that event.properties.activity, scope, and item_id exist for $error_tracking_issue_created events. |
||
"type": "mrkdwn", | ||
}, | ||
"type": "section", | ||
} | ||
], | ||
"hidden": True, | ||
}, | ||
"text": { | ||
"default": "*{person.properties.email}* {event.properties.activity} {event.properties.scope} {event.properties.item_id}", | ||
"hidden": True, | ||
}, | ||
}, | ||
), | ||
], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing - we have this in the plugin-server as well. It's not a biggy but would be cool to add it to the types there as well so we dont forget about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do. I left it out specifically because it was more of a frontend concern but happy to add it