-
Notifications
You must be signed in to change notification settings - Fork 220
feat(flags): add $feature_flag_evaluated_at properties to $feature_flag_called events
#2603
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Size Change: +1.94 kB (+0.04%) Total Size: 5.1 MB
ℹ️ View Unchanged
|
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.
Additional Comments (3)
-
packages/browser/src/__tests__/featureflags.test.ts, line 1707-1817 (link)style: tests validate
requestIdbut missing tests for newevaluatedAtproperty. check that similar tests for$feature_flag_evaluated_atexist to match the pattern used for$feature_flag_request_id -
packages/node/src/__tests__/feature-flags.flags.spec.ts, line 165 (link)style: test validates
$feature_flag_request_idbut missing validation for new$feature_flag_evaluated_atproperty -
packages/core/src/__tests__/posthog.featureflags.spec.ts, line 619 (link)style: test validates
$feature_flag_request_idbut missing validation for new$feature_flag_evaluated_atproperty
6 files reviewed, 4 comments
| } | ||
| quotaLimited?: string[] | ||
| requestId?: string | ||
| evaluatedAt?: number // Unix timestamp in milliseconds |
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.
UTC i assume?
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.
yeah, since UTC epoch; I'll update the comment
Problem
See PostHog/posthog#41824 for context
Changes
All of the JS libraries that emit
$feature_flag_calledevents received this change.Release info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file