← 输入框|github.com|刷新
Skip to content

[FSSDK-11017] update: experiment_id and variation_id added to payloads - #447

Merged
Farhan Anjum (FarhanAnjum-opti) merged 11 commits into
masterfrom
farhan-anjum/FSSDK-11017-add-id-in-notiflistener-payload
May 16, 2025
Merged

Farhan Anjum (FarhanAnjum-opti) merged 11 commits into
masterfrom
farhan-anjum/FSSDK-11017-add-id-in-notiflistener-payload

Conversation

@FarhanAnjum-opti

Copy link
Copy Markdown
Contributor

Summary

  • Added experiment_id and variation_id to the decision notification listener payload in the Python SDK.
  • Ensured that these IDs are included in all decision notifications sent via the notification center.
  • Updated unit tests to validate the presence of experiment_id and variation_id in the payload.

Why

To support data warehouse-native customers who rely on SDK notification listeners to send experiment data to their data warehouse, we need to include experiment_id and variation_id in the payload. This ensures that the stats engine can correctly compute experiment results based on warehouse data.

Test Plan

  • Modify existing or add unit tests to check for the presence of experiment_id and variation_id in the notification payload.
  • Run all tests to confirm that the changes do not introduce regressions.

Issues

…om legacy apis.

optimizely/project_config.py -> Enhanced comments for clarity.
tests/test_user_context.py -> Updated test assertions for experiments.
@FarhanAnjum-opti
Farhan Anjum (FarhanAnjum-opti) force-pushed the farhan-anjum/FSSDK-11017-add-id-in-notiflistener-payload branch from 23ca0d4 to ef0b082 Compare April 11, 2025 23:32
@FarhanAnjum-opti Farhan Anjum (FarhanAnjum-opti) changed the title experiment_id and variation_id added to payloads [FSSDK-11017] update: experiment_id and variation_id added to payloads Apr 16, 2025

@jaeopt Jae Kim (jaeopt) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FarhanAnjum-opti
Farhan Anjum (FarhanAnjum-opti) marked this pull request as ready for review April 18, 2025 14:45
@FarhanAnjum-opti
Farhan Anjum (FarhanAnjum-opti) deleted the farhan-anjum/FSSDK-11017-add-id-in-notiflistener-payload branch May 16, 2025 14:39
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.

2 participants