Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VladimirAus created an issue. See original summary.

VladimirAus’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
220.03 KB
4.25 KB

To test:

  • Enable feeds
  • Create content type with google map field
  • Create feeds type to incorporate google map field (see screenshot)
  • Process CSV with latitude and longitude

scot.hubbard’s picture

I have added the patch to the latest dev version. One coding standards violation needed fixing:

FILE: /var/www/drupal8dev.local/web/modules/custom/google_map_field/src/Feeds/Target/GoogleMap.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
144 | WARNING | Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
-----------------------------------------------------------------------------------------------------------------------

Apart from that it all looks good. Once RTBC I'll merge into stable release.

VladimirAus’s picture

@scot.hubbard Which drupal standards are you running? I ran phpcs --standard=DrupalPractice,Drupal --extensions=php,module,inc,install,test,profile,theme and got

FILE: ...l/modules/custom/google_map_field/src/Feeds/Target/GoogleMap.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 47 | WARNING | Unused variable $config_id.
----------------------------------------------------------------------

Patch added.

scot.hubbard’s picture

@validimirAus - I was only running phpcs --standard=Drupal, but with both DrupalPractice and Drupal, I get:

phpcs --standard=DrupalPractice,Drupal .

FILE: /var/www/drupal8dev.local/web/modules/custom/google_map_field/src/Feeds/Target/GoogleMap.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------
47 | WARNING | Unused variable $config_id.
144 | WARNING | Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
-----------------------------------------------------------------------------------------------------------------------

Time: 1.76 secs; Memory: 14MB

Removing the single space from the start of the string you are translating removes the warning from line 144.

VladimirAus’s picture

Hm. I'm not getting the first one but I fixed both of those in #5.

scot.hubbard’s picture

Status: Needs review » Fixed
scot.hubbard’s picture

Status: Fixed » Closed (fixed)

Added in release 8.x-1.11

VladimirAus’s picture

@scot.hubbard did you add both patch 2 and then patch 5?
Because #5 had another bug fixed.

scot.hubbard’s picture

Thanks VladimirAus - I had not realised there was another fix made. The patch is now applied and released.