Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 May 2013 at 22:06 UTC
Updated:
29 Jul 2014 at 22:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
moshe weitzman commentedWould be cool IMO to paste the view yaml into the bug report so we can skip creating the view. Hope we get there one day.
Comment #2
Anonymous (not verified) commentedIt looks like the value used in the call to entity_load is an array when it should be a simple value. Additionally, if the value couldn't be found, entity_load returns FALSE, so the call to ->label() was failing in those cases.
Comment #3
tstoecklerThe patch makes it return a boolean, though. I think the code should be something like
Comment #4
Anonymous (not verified) commentedGood catch! Rerolled.
Comment #5
Anonymous (not verified) commentedChanged last return value for clarity.
Comment #7
tim.plunkett#5: drupal-1995868-05-Role-Contextual-Filter-WSOD.patch queued for re-testing.
Comment #8
tstoecklerLooks good to me, but I don't know Views enough to RTBC myself.
Comment #9
andymartha commentedOn a standard download of Drupal 8, the steps outlined in the issue summary by xjm produced a white screen of death for me. See screenshot.
After applying patch drupal-1995868-05-Role-Contextual-Filter-WSOD.patch from #5 by JoshuaRogers to a fresh Drupal 8 install, the path correctly gave me the view in Drupal instead of the WSOD. See screenshot with no perceived detriment in functionality. Good job!
Comment #10
alexpottWe need a test for this...
Comment #11
dawehnerLet's phpunit that!
Comment #12
dawehnerComment #13
katbailey commentedJust a couple of comments about the test as I was chatting with dawehner in irc about it...
I'd prefer a comment here about what we're actually doing, rather than about how PHPUnit behaves, e.g. "Create a stub role storage controller that replaces the attachLoad method."
Why is this needed? I thought our PHPUnit tests could be a container-free zone. Wah.
Comment #14
dawehnerSadly not at the moment but I think there is no reason to not inject it all the time?
Comment #15
tim.plunkettNice!
Missing @var
{@inheritdoc
Where are these used?
Comment #16
dawehnerUps.
Comment #17
dawehnerComment #18
tim.plunkettThanks, looks great!
Comment #19
xjmReroll plus some comment cleanup. I also filed a followup: #2015535: Improve instantiation of entity classes and entity controllers.
Comment #20
xjmJust realized there was never a test-only patch uploaded here. Attached should expose the coverage.
Comment #21
alexpottCommitted 5bf482f and pushed to 8.x. Thanks!
Comment #22
ParisLiakos commentedfollowup #2017449: Drupal\Tests\user\Views\Argument\RolesRidTest is in the wrong place