Skip to content

[WIP] Add support for experimentation segmentation by user attributes - #12

Closed
buildwithtalia with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-ecb7b435-415e-45d8-98ce-0cbff8d19780
Closed

[WIP] Add support for experimentation segmentation by user attributes#12
buildwithtalia with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-ecb7b435-415e-45d8-98ce-0cbff8d19780

Conversation

Copilot AI commented Sep 18, 2025

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original description:

Extend the Create a New Experiment API so that when creating an experiment, you can define segmentation rules (e.g. country=US, device=mobile). Only users matching the rules should be eligible to be bucketed into the experiment.

Update the experiment assignment logic to check these rules before assigning a variant.

Add validation so experiments without valid rules are rejected.

Generate unit tests covering both matching and non-matching users.

Update API documentation to show how to define segmentation rules when creating an experiment.

Assign the pull request to johnagan to review.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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