Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
node.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Nov 2012 at 05:50 UTC
Updated:
29 Jul 2014 at 21:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerThe patch is looking great in general.
Adapted the comment, as we don't render it directly anymore.
That's a great idea!
Comment #2
xjmThanks @dawehner! (This is what happens when I roll patches after midnight!)
Comment #3
xjmThe comments and assertion messages were also a bit misleading, so attached fixes that.
Comment #4
dawehnerOh this much better explains what's going on.
Couldn't we check that the actual length is not longer then 200 chars as well?
Comment #6
xjmAh yeah, might as well since we already have the render array.
Comment #7
xjmOh, but actually, it will not be exactly 200 or 600 characters... just less than those, based on the trim algorithm. So I think this is okay as is. Ish.
Comment #8
xjmThe test failure is a bot issue; it's in the process of retesting already.
Comment #9
lars toomre commentedIs there a test to check that the teaser is not longer than X characters? Presumably there is and that would catch that the teaser is no more than 200 characters. If such a check of functionality does not exist, it should be added in the correct place.
Comment #10
xjm@Lars Toomre, did you read the patch or the test it modifies? That is what the test does implicitly, because the specific string that it's checking for is more than 200 characters into the summary.
Anyway, this patch is not intended to add test coverage for this feature, just to decouple the test from the node frontpage.
Comment #11
xjmThis might be a bit less fragile.
Comment #13
xjmBot issue.
Comment #14
webchickCommitted and pushed to 8.x. Thanks!