-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Date condition on company field #7541
Date condition on company field #7541
Conversation
I'm a bit confused by the test instructions on this, particularly this part:
Why would setting the condition of the date to equal 5 days (my understanding of what this is doing) succeed if I selected any random date @escopecz ? |
@RCheesley are you asking why 5 days and not 4 nor 6? I don't think it matters. It's just an example. |
@escopecz coming back to this one as hoping to get it merged in 2.16.1. I still don't understand what I am looking for in order to show it is the bug you mention, and what to look for to show it is being fixed. I pick a date, say 1st January 2019 for the field company_date on Company A, for example. Create a campaign, use the USA segment as a source which includes a contact from company A. The rest of the description I don't understand - why would it go down the red route as a bug or the green route as a fixed bug based on the company_date value equalling 5 days? 1st January 2019 doesn't equal five days, so that would result in the 'no' route - which you'd suggested was incorrect and should be the green route. All puzzlement here, please enlighten me! |
@RCheesley I updated the steps if it makes sense now. Basically it should work the same way for contacts as for companies. The goal is to get true (green route) from the condition if the date value is NOW - 5 days (5 days ago in plain English) and false (red route) for other date values. Does it make sense? |
Yes, that makes complete sense now! Thanks for the explanation! |
I thought I saw another PR doing the same thing though. Let me take a look! |
#7788 is for segments. Different feature. |
Hi there! We now want to integrate your contribution in the Mautic 3 roadmap as 3.0.1 candidate. How to do?
Please report results by commenting on your PR to make us administration easier. In case your bugfix only apply to Mautic 2, we'll consider adding it in an extra Mautic 2 version. You can more information on how to do all of that on this blog post "Getting you PR ready for Mautic 3". |
Hello @escopecz could you please test mautic 3.0.0-beta2 and tell me if the issue is still existing?
Waiting for your feedback, i would very love to merge it in 3.0.1 if still relevant. Thanks ! |
Unable to rebase to trigger the code coverage report, @escopecz could you take a look please? Thank you! |
d18fd3d
to
0210dd5
Compare
@RCheesley rebased. Thanks for the ping. |
Codecov Report
@@ Coverage Diff @@
## staging #7541 +/- ##
=============================================
+ Coverage 35.24% 35.28% +0.03%
- Complexity 27884 27964 +80
=============================================
Files 1731 1731
Lines 96712 96898 +186
=============================================
+ Hits 34088 34190 +102
- Misses 62624 62708 +84
|
@escopecz seems like Scrutinizer encountered an error on the last run :/ |
I don't think that's a blocker. I cannot run the Scrutinizer task again. I've been lobbying to disable Scrutinizer as no one is looking at the results and suggestions anyway. But no one has access to that tool. |
Close & reopen for Scrutinizer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me 👍
In description should be set to -5 days in campaign condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed the bug and the resolution with this PR applied! 🚀
Please be sure you are submitting this against the staging branch.
Description:
Campaign conditions with date fields and date operators did not work on company fields. This PR fixes that.
Steps to reproduce the bug:
--Execute immediately
--Select the company date field
--Operator = date; Value = custom, # = 5, day(s)
The contact will go to the false (red) route of the campaign.
Steps to test this PR: