Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Jul 2013 at 23:35 UTC
Updated:
29 Jul 2014 at 22:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
les limLooks like token replacement isn't working on custom column classes, either.
Comment #2
markhalliwellHmm, indeed. That's unfortunate. Sigh... ok we'll probably need to implement something like: StylePluginBase::getRowClass
Comment #3
markhalliwellComment #4
markhalliwellWe need to extend the grid test to include this so we don't miss this again.
Comment #5
les limHere's a stab at it.
Comment #6
markhalliwellThis is an AMAZING "stab"!! Great patch! Test only patch fails like it should, complete passes!
@Les Lim++
One tiny code standards nitpick:
This should be a single summary line. @see: https://drupal.org/node/1354#drupal
No need to upload a new "test" only patch. Just the revised complete patch will do. After that new patch turns green, this is RTBC!
Comment #7
markhalliwellAlso, afterthought:
I would keep the same assertion label prefix so it's easier to read in the tests if they fail (ie: look at the test only results).
I would do something like:
ucfirst($alignment) . " $columns column grid: Custom column class token replaced."and
ucfirst($alignment) . " $columns column grid: Custom row class token replaced."Comment #8
les limNice! New patch attached.
Comment #9
les limdoh, that was the interdiff. This is the patch.
Comment #10
markhalliwellThe summary line still needs to be less than 80 characters long.
Comment #11
dawehnerIt is great that this also extends the test coverage of checking for the col and row classes. Here is some additional nickpicking.
The parameters and the return value should be documented.
Comment #12
les limThis summary line is already under 80 characters (78), including indentation.
New patch, now with @params/@return documented.
Comment #13
markhalliwellMy bad, guess my Dreditor styling is off.
Changes look good, will RTBC once patch comes back green.
Comment #14
les limYeah, that line in dreditor isn't 80 characters wide, it's 50.7em wide. For me, that's about 84 chararcters. :( YMMV.
Comment #16
markhalliwell#12: core-2048897-12-complete.patch queued for re-testing.
Comment #17
joelpittetNice work guys.
Comment #18
alexpottCommitted 0932270 and pushed to 8.x. Thanks!