-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(messaging): providers & broadcasts #25719
Conversation
📸 UI snapshots have been updated4 snapshot changes in total. 0 added, 4 modified, 0 deleted:
Triggered by this commit. |
Size Change: +372 B (+0.03%) Total Size: 1.15 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
All code here has been moved into 4 smaller PRs. Three of them have been merged. I'll close this and move the other notes into a new issue/epic. |
Problem
We can't send e-mails and other messages to users directly from PostHog
Changes
send_email(inputs.email); posthogCapture('sent')
)Next steps
Going to split it up into these chunks:
type
to theHogFunction
model. Type will be set todestination
for all existing functions.destination
functions on events, but also loadsemail
functions (shared provider code) into memory.destination
import
bytecode/files/code/functions in Hogprovider/email
, which exportssendEmail()
(runs the team's email provider's bytecode)Future work not yet in this PR:
export fun sendEmail(){}
syntax instead of the currentreturn { 'sendEmail': sendEmail }
The work above sets the groundwork for workflows (totally out of scope right now):
import('fun/{id}')
)sleep(60sec); importAndRun1()
, what we import can change within the 60 seconds, and we'll still take the latest version when runningimportAndRun1()
, howeverimportAndRun1(); sleep(60); importAndRun1()
will only import the code once, and reuse it a second time.