Comments

Status: Needs review » Needs work

The last submitted patch, google_analytics-custom_variable_name_tokens.patch, failed testing.

jlapp’s picture

Status: Needs work » Needs review
StatusFileSize
new4.93 KB

Updating patch with correct file paths.

hass’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev
Status: Needs review » Needs work

Patch does not contain tests. What tokens are you using for the name? D7 need to be done first, too.

jlapp’s picture

Status: Needs work » Needs review
StatusFileSize
new5.29 KB

Adding a patch against 7.x-1.x-dev which also contains a test case. If the D7 patch is accepted, I will update my previous D6 patch to include tests as well.

Hass, the same tokens can be used in the name field as the value field. I used the existing validation function so that personally identifying information cannot be added in the name field either.

hass’s picture

Since #1783870: Update 64 byte variable name limit to 128 per API changes we have a lot more chars now and can get this in. Nevertheless shouldn't we cut off the name somewhere? I still have no good idea what tokens you'd like to use in the name field. Can you share some examples, please?

hass’s picture

Status: Needs review » Needs work
hass’s picture

These tests are not testing Custom Variables and setup requires token or Tokens are also not tested.

hass’s picture

Status: Needs work » Needs review
StatusFileSize
new9.33 KB

Patch attached.

Status: Needs review » Needs work

The last submitted patch, 1595176_Allow tokens in custom variable names2.patch, failed testing.

hass’s picture

Status: Needs work » Needs review
StatusFileSize
new10.14 KB

Fixed a bug with form error message.

Status: Needs review » Needs work

The last submitted patch, 1595176_Allow tokens in custom variable names3.patch, failed testing.

hass’s picture

Status: Needs work » Needs review
StatusFileSize
new10.14 KB

Filename without spaces

Status: Needs review » Needs work

The last submitted patch, 1595176_Allow_tokens_in_custom_variable_names3.patch, failed testing.

hass’s picture

Status: Needs work » Needs review
StatusFileSize
new10.21 KB

Token?

Status: Needs review » Needs work

The last submitted patch, 1595176_Allow_tokens_in_custom_variable_names4.patch, failed testing.

hass’s picture

Status: Needs work » Needs review
StatusFileSize
new10.18 KB

test

hass’s picture

Commited this patch.

hass’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)
hass’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new10.66 KB

D6 patch with all tests.

hass’s picture

Missed one form validation.

Status: Needs review » Needs work

The last submitted patch, 1595176_Allow_tokens_in_custom_variable_names6-D6.patch, failed testing.

hass’s picture

Status: Needs work » Needs review
StatusFileSize
new11.79 KB
hass’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev
StatusFileSize
new1.04 KB

D7 Test fix

hass’s picture

Status: Needs review » Fixed

Committed all patches to D6 and D7.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.