-
Notifications
You must be signed in to change notification settings - Fork 138
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: better logging for surveys loaders #1663
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +6.8 kB (+0.21%) Total Size: 3.27 MB
ℹ️ View Unchanged
|
@@ -534,7 +538,11 @@ export const sendSurveyEvent = ( | |||
survey: Survey, | |||
posthog?: PostHog | |||
) => { | |||
if (!posthog) return | |||
// TODO: does it need readOnly like dismissedSurveyEvent? |
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.
@lucasheriques since you are working on the preview bits, do we need the readOnly here too? is the preview sending dismissed events?
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.
no the preview doesn't send and kind of events
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.
@lucasheriques so should we remove the checks from the other methods?
@@ -598,7 +598,7 @@ export class PostHog { | |||
this.sessionRecording?.onRemoteConfig(config) | |||
this.autocapture?.onRemoteConfig(config) | |||
this.heatmaps?.onRemoteConfig(config) | |||
this.surveys?.onRemoteConfig(config) | |||
this.surveys.onRemoteConfig(config) |
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.
surveys is created on the constructor, never undefined|null
@pauldambra just because you're the bundler master and I want to avoid something like https://posthog.slack.com/archives/C07QD3LT8U9/p1737472825108809 |
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.
Just a minor comment, but looks good with my limited know-how :)
you can always check #1663 (comment) once it's run (and it will update each time you push) to track the impact :) |
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.
didn't run it, but looks safe 👍
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.
looks good to me
good point, here it is #1679 |
Changes
It won't fix but It'll help figuring out https://posthoghelp.zendesk.com/agent/tickets/21804
Checklist