Problem/Motivation
This is a follow-up to #3576172: Allow "/" as delimiter for view display arguments to synchronize with the views preview. Where we introduced support to devide view display arguments via /.
The problem with this is, when inside the view contextual filter:
Allow multiple arguments divided by "," or "+"
is set, the old argument seperation inside entity extra field (dividing by ",") clashs with this notation.
Steps to reproduce
Proposed resolution
- Remove support for dividing view display arguments by ",".
- Create an update hook to update old notations using "," to the new "/" notation.
- Verify whether we need any other processing to allow "+" (AND) and "," (OR).
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork entity_extra_field-3576486
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
nickolajPatch removes "," as a view display argument delimiter (now only "/" is used), updates the form description to mention "+" and "," as views multiple argument notation, and adds update hook 9202 to convert existing configs from "," to "/" delimiter.
Comment #6
anybodyThanks @nickolaj I left some final comments and improved + unified the description using the same text as the Views UI does.
Would you like to take the final steps?
Please also test that + and , work as expected for multiple arguments.
If possible it would of course be best to have tests, but I guess that will be hard...
Comment #7
anybodyI think this is very much related and should also be solved then: #3408058: Handling Multiple Token Values in View Arguments
Comment #8
anybodyComment #9
grevil commentedAlright adjusted accordingly. I am using referenced taxonomies now, which makes more sense in this context.
"argumentsAnd" doesn't make too much sense here, since node id 1 AND node id 2 doesn't make much sense, so we could only do:
But that test wouldn't be very meaningful.
Please review!
Comment #10
anybodyWe need to remove the array_filter() because it should exactly behave like in Views UI and empty arguments are allowed!
Comment #11
anybodyGREAT!!
Comment #13
anybody