Closed (fixed)
Project:
Multivariate
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2012 at 22:57 UTC
Updated:
14 Oct 2013 at 22:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
pivica commentedWe have wildcard support for path mutation and path redirection mutation plugins. No support for wildcard in path success plugin - but it should not be a problem to add.
Comment #2
nonsieAnd here's a possible solution how to allow wildcards and
<front>in path success pluginComment #3
miro_dietikerLooks fine, although not tested yet.
There's still no test coverage possible for all this?
Comment #4
nonsieNo tests so far - still need to be sure if Simpletest supports cookies or not. It seems it's possible now (and it definitely looks doable in D8). Need to spend some time at least attempting to write tests.
Comment #5
miro_dietikerIn D8, all the different internal (wildcard) cases will be tested through well defined APIs with unit tests and possibly only one simpletest case can be enough to test if the plugin generally works as a composite.
I can be wrong, but i didn't see tests yet in D8 that test different user sessions in parallel.
Comment #6
pivica commentedHi nonsie,
I tested your patch and it is fine, but while doing this I got an idea why we wouldn't use standard textarea form for entering multiple paths (separated by new line) and then do just simple drupal_match_path() as you proposed (similar like block display is defined per urls). Users should be more use to this UI and also entering multiple success urls is easier.
While testing I also catch one performance bug - in the begging of multivariate_path_sc_boot() when defining current urls if current path does not have alias then drupal_get_path_alias() would return same current system path and we would get double paths in $urls array. This should be fixed now also.
@nonsie can you please check attached patch and do some testing?
Comment #7
nonsieI'm all for making the path matching more in line how core is handling it.
Also re-rolled against current dev and fixed some minor formatting issues
Comment #8
pivica commentedAdded with 8f7312e commit.