- Issue created by @omarlopesino
- Status changed to Needs review
about 1 year ago 11:40am 26 October 2023 - Open in Jenkins β Open on Drupal.org βCore: 9.5.x + Environment: PHP 8.0 & MySQL 5.7 (--ignore-platform-reqs)last update
about 1 year ago 79 pass - πͺπΈSpain omarlopesino
Created a branch in the issue fork and attached a patch. Please review, thanks!
- Open in Jenkins β Open on Drupal.org βCore: 9.5.x + Environment: PHP 8.0 & MySQL 5.7 (--ignore-platform-reqs)last update
about 1 year ago 79 pass - Open in Jenkins β Open on Drupal.org βCore: 9.5.x + Environment: PHP 8.0 & MySQL 5.7 (--ignore-platform-reqs)last update
about 1 year ago 79 pass - πͺπΈSpain omarlopesino
Updated patcch adding missing service config.factory.
- Open in Jenkins β Open on Drupal.org βCore: 9.5.x + Environment: PHP 8.0 & MySQL 5.7 (--ignore-platform-reqs)last update
about 1 year ago 79 pass - πΊπΈUnited States AaronBauman Philadelphia
I like the idea here. If you could please open a merge request, I have some feedback to help get this ready to go
- Status changed to Needs work
about 1 year ago 3:57pm 30 November 2023 - πΊπΈUnited States AaronBauman Philadelphia
The method \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\DrupalConstant::pullValue is nearly identical to the parent \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\PropertiesBase::pullValue
Would be much better to adjust this so we can inherit, rather than re-implement. May require changing \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\PropertiesBase::pullValue
For example, in \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\PropertiesBase:
public function pullValue(SObject $sf_object, EntityInterface $entity, SalesforceMappingInterface $mapping) { $field_selector = $this->config('drupal_field_value'); $pullValue = parent::pullValue($sf_object, $entity, $mapping); ...
could become
protected function getPullValue($sf_object, $entity, $mapping) { return parent::pullValue($sf_object, $entity, $mapping); } public function pullValue(SObject $sf_object, EntityInterface $entity, SalesforceMappingInterface $mapping) { $field_selector = $this->config('drupal_field_value'); $pullValue = $this->getPullValue($sf_object, $entity, $mapping); ...
Then in \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\DrupalConstant, instead of re-implementing
pullValue
, all we have to do is:protected function getPullValue($sf_object, $entity, $mapping) { return $this->config('drupal_constant'); }
Also, not sure what test coverage looks like for this right now, but i would want to see extended test coverage for this before committing.
- First commit to issue fork.
- πͺπΈSpain tunic Madrid
There were conflicts with main branch, I've tried to solve them.
Tests still required.
- πͺπΈSpain tunic Madrid
Instead of merging branch 5.x into this MR I've just rebased the MR, so the MR doesn't include itself changes already committed. This was if anyone (like me) wants to use the MR patch can do it without including a bunch of unrelated changes.
- Status changed to Needs review
11 months ago 10:34am 30 January 2024 - πͺπΈSpain omarlopesino
I've added 2 commits with corrections that already were present in thepatch. Now the MR is canonical, so the patch will be hidden to prevent confussions.
Now it is ready to review through the MR.
- Status changed to Needs work
11 months ago 4:22pm 31 January 2024 - πΊπΈUnited States AaronBauman Philadelphia
Great idea, I like the increased granularity of logging settings.
I'd be interested in adopting this more widely.
MR needs update after some other commits, and needs some more eyes on it before RTBC
- Status changed to Needs review
11 months ago 2:40pm 2 February 2024 - πͺπΈSpain omarlopesino
Thanks for the feedback.
MR has been updated and now is up to date with 5.0.
- Status changed to RTBC
11 months ago 9:25pm 15 February 2024 - πΊπΈUnited States AaronBauman Philadelphia
This is looking good to me, but is a big enough change I'd like to get some more eyes on it before merging.
-
omarlopesino β
committed e876ec23 on 5.1.x
Issue #3396890: Fix config usage
-
omarlopesino β
committed e876ec23 on 5.1.x
-
omarlopesino β
committed 78327ed4 on 5.1.x
Issue #3396890: Fix data tye of logger sanitize fields
-
omarlopesino β
committed 78327ed4 on 5.1.x
-
omarlopesino β
committed 6e55327c on 5.1.x
Issue #3396890: Fix config reading for salesforce logs
-
omarlopesino β
committed 6e55327c on 5.1.x
-
tunic β
committed 3edd1fc8 on 5.1.x authored by
omarlopesino β
Issue #3396890: Default Configuration + schema
-
tunic β
committed 3edd1fc8 on 5.1.x authored by
omarlopesino β
-
tunic β
committed 74a33135 on 5.1.x authored by
omarlopesino β
Issue #3396890: Allow logging push params and push success
-
tunic β
committed 74a33135 on 5.1.x authored by
omarlopesino β
- Status changed to Fixed
7 months ago 4:54pm 22 May 2024 - πΊπΈUnited States AaronBauman Philadelphia
Committed and released in 5.0.5 and 5.1.0
Thanks all
Automatically closed - issue fixed for 2 weeks with no activity.