-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Using v2.0.0 from #18
Here's my flag config, it has no explicit constraints:
This is represented in the JSON like this:
"allocations": [
{
"key": "allocation-19715",
"startAt": "2025-02-26T14:25:07.046Z",
"endAt": "9999-12-31T00:00:00.000Z",
"splits": [
{
"variationKey": "v14",
"shards": []
}
],
"doLog": true
}
]
(This is the real JSON I got from our production eppo endpoint)
After it gets parsed, I debug into evalflags.cpp and I enter this code:
// Check time constraints
if (allocation.startAt.has_value() && now < allocation.startAt.value()) {
details.allocationEvaluationCode = AllocationEvaluationCode::BEFORE_START_TIME;
return details;
}
if (allocation.endAt.has_value() && now > allocation.endAt.value()) {
details.allocationEvaluationCode = AllocationEvaluationCode::AFTER_END_TIME;
return details;
}
nowis{__d_={__rep_=1764088767721261 } }allocation.startAthas a value and its{__d_={__rep_=1740579907046000 } }allocation.endAtalso has a value and its{__d_={__rep_=0 } }nowis therefore higher thanallocation.endAtand this allocation is skipped withAllocationEvaluationCode::AFTER_END_TIME
This makes every assignment error out.
Metadata
Metadata
Assignees
Labels
No labels