Closed KimballCai closed 1 year ago
please write a unit test for this corner case
I have looked into this problem and modified the Issue title to reflect the real problem.
The Cohort processor only process records of a user after she is born. The corner case is that birth event is not considered for age selection. This resulted in discrepancies for users that do not have subsequent records at the age 0 yet their birth event passes cohort selection
according to the current code logic, a user with only one record will never be classified into any cohort. Please fix it.