Skip to content

TargetFilter only returns positive group evaluation result #123

Closed
@yuanyi2121

Description

@yuanyi2121

There is an issue with this line:

if (IsTargeted(audienceContextId, groupRollout.RolloutPercentage))

it only returns true when a group evaluation returned true, otherwise it will use the default percentage.

Example:
Setting:
Default: 100%
Audience: GroupA = 100, GroupB = 0

Evaluate:
new TargetingContext
{ Groups = new List() { "GroupB " } }

The return will be true because GroupB always evaluate as false, hence the default percentage applied.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions