Skip to content

feat(analytics): identify the user so feature flags can target by email#620

Open
gewenyu99 wants to merge 1 commit into
experiment/orchestrator-06-agent-loaderfrom
experiment/orchestrator-email-targeting
Open

feat(analytics): identify the user so feature flags can target by email#620
gewenyu99 wants to merge 1 commit into
experiment/orchestrator-06-agent-loaderfrom
experiment/orchestrator-email-targeting

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Identifies the authenticated user (distinct id, email, name) before flags are evaluated, and sends those person properties with the flag request, so wizard-orchestrator can target individual users instead of just $app_name. Identifying also drops the cached flag snapshot. The intro screen evaluates flags before login, and that anonymous result must not stick to the run.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci error-tracking-upload-source-maps
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci error-tracking-upload-source-maps/android
  • /wizard-ci error-tracking-upload-source-maps/flutter
  • /wizard-ci error-tracking-upload-source-maps/ios
  • /wizard-ci error-tracking-upload-source-maps/next
  • /wizard-ci error-tracking-upload-source-maps/next-no-posthog
  • /wizard-ci error-tracking-upload-source-maps/node-raw
  • /wizard-ci error-tracking-upload-source-maps/node-rollup
  • /wizard-ci error-tracking-upload-source-maps/node-rollup-typescript-plugin
  • /wizard-ci error-tracking-upload-source-maps/node-webpack
  • /wizard-ci error-tracking-upload-source-maps/nuxt-3-6
  • /wizard-ci error-tracking-upload-source-maps/nuxt-4-3
  • /wizard-ci error-tracking-upload-source-maps/react-native
  • /wizard-ci error-tracking-upload-source-maps/react-vite
  • /wizard-ci error-tracking-upload-source-maps/rust
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@gewenyu99 gewenyu99 changed the base branch from experiment/orchestrator-07-walking-skeleton to graphite-base/620 June 10, 2026 14:43
@gewenyu99 gewenyu99 force-pushed the graphite-base/620 branch from b2da91d to f181850 Compare June 10, 2026 14:44
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch from 80c0d9b to 04abbdc Compare June 10, 2026 14:44
@gewenyu99 gewenyu99 changed the base branch from graphite-base/620 to experiment/orchestrator-07-walking-skeleton June 10, 2026 14:44
@gewenyu99 gewenyu99 changed the base branch from experiment/orchestrator-07-walking-skeleton to graphite-base/620 June 10, 2026 15:36
@gewenyu99 gewenyu99 force-pushed the graphite-base/620 branch from f181850 to e3fbb21 Compare June 10, 2026 15:36
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch from 04abbdc to 55cfc48 Compare June 10, 2026 15:36
@gewenyu99 gewenyu99 changed the base branch from graphite-base/620 to experiment/orchestrator-07-walking-skeleton June 10, 2026 15:36
@gewenyu99 gewenyu99 changed the base branch from experiment/orchestrator-07-walking-skeleton to graphite-base/620 June 10, 2026 16:00
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch 2 times, most recently from 03636cf to 0b9ed66 Compare June 10, 2026 16:09
@gewenyu99 gewenyu99 changed the base branch from graphite-base/620 to experiment/orchestrator-05-executor-framework June 10, 2026 16:10
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-05-executor-framework branch from 3edb2a9 to bd9b756 Compare June 10, 2026 16:10
@gewenyu99 gewenyu99 changed the base branch from experiment/orchestrator-05-executor-framework to graphite-base/620 June 10, 2026 16:32
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch from 0b9ed66 to 5fa9874 Compare June 10, 2026 16:32
@gewenyu99 gewenyu99 force-pushed the graphite-base/620 branch from bd9b756 to fa90573 Compare June 10, 2026 16:32
@gewenyu99 gewenyu99 changed the base branch from graphite-base/620 to experiment/orchestrator-05-executor-framework June 10, 2026 16:32
@gewenyu99 gewenyu99 changed the base branch from experiment/orchestrator-05-executor-framework to graphite-base/620 June 10, 2026 16:35
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch from 5fa9874 to a9047c6 Compare June 10, 2026 16:35
@gewenyu99 gewenyu99 changed the base branch from graphite-base/620 to experiment/orchestrator-06-agent-loader June 10, 2026 16:35
@gewenyu99 gewenyu99 marked this pull request as ready for review June 10, 2026 16:35
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch 2 times, most recently from bb984de to 2804e98 Compare June 10, 2026 18:34
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch from 2804e98 to 52f3310 Compare June 10, 2026 20:04
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-06-agent-loader branch from d4d2633 to 1fb8a70 Compare June 10, 2026 20:04
identifyUser sets the distinct id and person properties (email, name) before flag evaluation, and getFeatureFlag/getAllFlagsForWizard now send them. Previously the wizard sent only $app_name, so email-targeted flags never matched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant