Closed (fixed)
Project:
Commerce Fraud
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 May 2020 at 03:56 UTC
Updated:
1 Jul 2020 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vishalghyv commentedFiring rules after the event of saving order doesn't seem to be right for now.
Please excuse if anything is wrong.
Comment #3
vishalghyv commentedAnd there is a change required in line 38 of the file commerce_fraud.rules_default.inc
For the rule Increase fraud score if order has x amount of products.
'operator' => '<', Should be changed to
'operator' => '>',
It worked in my system
Comment #4
vishalghyv commentedpo box rule is not firing even when the condition is negated, which doesn't make sense as if its not false should become true,
Maybe I am missing something
Comment #5
vishalghyv commentedhttps://www.drupal.org/project/commerce/issues/1976480
Could be a issue to help resolve po box problem (Also a self reminder)
Comment #6
vishalghyv commentedHave added the patch for po box in issue https://www.drupal.org/project/commerce_fraud/issues/2977626
Comment #7
vishalghyv commentedWrong Data Selector for commerce_fraud_last_order rule, Although using direct input option in rules does fix it
Comment #8
vishalghyv commentedAlso the condition to select completed orders should check for commerce_fraud_timestamp_from_minutes in the above rule
Comment #9
vishalghyv commentedComment #10
tr commentedI triggered a test of your patch.
Note that if you want to reference other issues like https://www.drupal.org/project/commerce/issues/1976480 you can use this syntax:
[ #1976480](I had to add a space before the # so this would display properly, but you should remove that)Comment #11
vishalghyv commentedComment #12
vishalghyv commentedIn this patch problems mentioned in #3 , #7 and #8 are fixed. Is there need to create different patches for them?
Or any changes....
#3 problems is fixed
#7 I have removed the array to select the order statuses if it is required then will find a way to bring it back
#8 Is working in my system but if any other thing is required I will fix it.
Comment #13
vishalghyv commentedComment #14
vishalghyv commentedComment #15
derekcresswell commentedThe changes here look ok to me. Though I must ask, is this achieving everything set out in the issue summary or do we need to create different issues.
In the summary :
This has not been done in the current patch. Is this going to be put in here or do we need to create a seperate patch / issue for this.
Marking as RTBC because it seems good in it's current state.
Comment #16
vishalghyv commentedThanks for the review,
About the documentation maybe after few things are committed probably be better,
But If it is required then I don't have any problem will add the patch.
And regarding PO box it is in #2781513: PO Box Regex
Comment #17
derekcresswell commentedRelated issues should be marked under the "Issue summary & relationships" section.
I think that something like that could warrant a separate issue. We just don't want one issue to deal with multiple problems at once (usually).
Comment #18
vishalghyv commentedSurely will add it in different issue.
Added relating issue
Comment #19
joshmillerNeeds tests and an issue summary rewrite. Please rewrite the summary and title of this issue to address the issues your patch is fixing. Also, please write tests that show these things are broken and need fixing.
Comment #20
vishalghyv commentedComment #22
joshmillerThanks @Vishalghyv :)