-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Major issue: Segment with filter incorrectly deletes leads if a new lead with a lower "leadid" qualifies for segment. #2461
Comments
Hi, I'm a little worried nobody has picked this up or tested this. Without addressing this, many(maybe all) automatic segments are just broken. |
Would you be able to send a pull request with your solution? |
I think we need to fix the intention rather than just removing it. Otherwise the script may very well find itself stuck in a loop. I thought that "newer" leads should be filtered out by
Have you been able to reproduce this and confirming the fix by manipulating the code? I'll try to reproduce. |
To duplicate the error:
|
To be clear @alanhartless the 'newer' leads being filtered as you point out in that line would only work if the leads qualify for a segment in the same order that the leads were identified/created. That line would not leave out leads that qualify after the count but are 'older' than the date listed when the count ran, that is one of the problems, albeit a minor one. |
Any update on this bug? Can I provide any further info on this? |
@fcatanzaro Please test against #2716. Thanks! |
What type of report is this:
Description:
On line 320 of LeadListRepository.php the code is adding $batchLimiters['maxId'] to the segement selection filter in an attempt to "Only leads that existed at the time of count" like the code comment states.
This a fundamentally FLAWED way of doing things and creates 2 HUGE problems:
If a bug:
Steps to reproduce:
Log errors:
See above.
The text was updated successfully, but these errors were encountered: