Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Oct 2015 at 05:26 UTC
Updated:
3 Dec 2015 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vincenzodb commentedBroken also in 8-rc1
Comment #3
vincenzodb commentedComment #4
morbus iffThis is broken in 8.x RC2 and ALSO affects the shipped "Archive" view:
1. Install Drupal 8.x RC2.
2. Make some nodes.
3. Enable the "Archive" view.
4. Go to /archive.
RESULT: White screen of death and the stated LogicException in the watchdog.
To fix the core view, one needs to uncheck the "Override number of items to display in contextual filter" in the filter.
Comment #5
catchThis might be critical, definitely RC target.
Comment #6
catchmeh.
Comment #7
dawehnerLooking at some test coverage for now.
Comment #8
dawehnerThere we go
Comment #10
alexpottLooks unintentional
Comment #11
dawehnerOh yeah, well the other test coverage already proves that something is going on wrong
Comment #12
dawehnerFor this particular usecase we already vary by URL due to the usage of the arguments/->url cache context.
Given that its save to not deal with cache keys/contexts in
ViewExecutable::setItemsPerPage()Maybe we want to add a parameter back which allows callers to not deal with cache keys?
Comment #13
geertvd commentedCan't we just do the same as
ViewExecutable::setCurrentPage()is doing, and check if the element is already pre rendered?Comment #15
fabianx commented#14 works for me. RTBC - looks great!
Comment #16
dawehnerShould we provide some unit test coverage for this behaviour? We would though need to apply the same fixes to setOffset and setCurrentPage
Comment #19
dawehnerThere we go.
Comment #20
dawehnerThere we go.
Comment #22
dawehnerSeriously, testbot, patches should be allowed to be treated as if they would be equal.
Comment #23
fabianx commentedBack to RTBC - Looks great to me!
Comment #27
catchThis could do with a comment - why do we need 5 of each? And why do they all have the same name/label?
Comment #28
dawehnerGood old numeric code:
($i * 5 + $j)Comment #29
catchs/node types/entity types but that's fixable on commit.
Comment #30
dawehnerIf you correct it, please use '/entity bundles/
Comment #31
catchdoh, yes.
Comment #32
catchCommitted/pushed to 8.0.x, thanks!