Closed (fixed)
Project:
Salesforce Web-to-Lead Webform Data Integration
Version:
8.x-5.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2017 at 20:36 UTC
Updated:
7 Nov 2018 at 19:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bighappyface commentedAttached is a patch refactoring
SalesforceWebToLeadPostWebformHandlerto get things working with the latest version of webform (as of this post) make better use of the superclassRemotePostWebformHandlerand the functionality it provides.I will follow-up with some tests to satisfy the second item listed in the description.
Comment #3
bighappyface commentedAttached is a fresh patch with the introduction of protected method
setStateUrland new kernel test `SalesforceWebToLeadPostWebformHandlerTest`.The `getRequestData` and `setStateUrl` methods are tested and we have a path for testing other methods in the future.
Note: these changes fix related issues #2896481: Error with latest Webform version (5.0 Beta 15) and #2923161: TypeError: Argument 7 passed to ... debug() must implement interface as the annotation namespaces are updated and the
debugmethod type error issue is resolved by removing the call and deferring toRemotePostWebformHandler::remotePost.Comment #4
WidgetsBurritos commentedThis all looks good, but minor nitpicks:
constructor*
token*
This is inconsistent with the namespace style used above. I'd check all of these below.
Comment #5
bighappyface commentedAttached is a cleaned up patch with PHPCS violations addressed along with the feedback from @widgetsburritos.
Comment #6
WidgetsBurritos commented+1 RTBC
Comment #7
john cook commentedI've had a look at the patch from @bighappyface and it looks good.
I've made a slight tweak in
SalesforceWebToLeadPostWebformHandler::getRequestData(). Ascount($salesforce_mapping)cannot be greater thancount($data), I've swapped the loop so it goes though the smaller number of elements.Comment #8
bighappyface commented+1 for #7
Tests are still good and the functionality is unaffected. Good adjustment, @john-cook!
Comment #10
aaronbaumanCommitted - thanks for the patch.
Will push an alpha release soon.
Comment #11
bighappyface commentedThanks, @aaronbauman. I am happy to help with reviews on other tasks.
Comment #12
aaronbaumanCool thanks for the offer.
In case you didn't see, i updated this issue #2878133: 8.x release with links to two others (for now) that should get addressed before a 5.0 stable.