Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Oct 2016 at 23:49 UTC
Updated:
10 May 2021 at 08:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sam152 commentedComment #5
berdirJust found this as well, this is fun.
I suspect we're not seing that very often because in 99% (rough estimate ;) of the cases, the arguments are coming from the URL.
Added a workaround for now in my project, but will try to provide a patch, should be easy enough.
Comment #6
wim leersComment #7
berdirStrange, buildBasicRenderable() is used by Rest/Feed/Page controllers/displays and lots of tests, don't really understand why we have those two different approaches.
I just copied the existing logic from that up into buildRenderable(), lets see if any tests are failing because of this.
Comment #9
sam152 commentedI'm not sure why both methods exist either, but fwiw the patch looks good to me. There is already a flag to allow you to opt out of render caching, so I suppose that's useful if the arguments are a high cardinality?
I think this title is probably a bit more discoverable for others who might be having this issue.
Comment #10
dawehnerI don't remember it anymore either. I guess buildRenderable existed before we realized that we need something like buildBasicRenderable + a render element to support true render caching.
Reading the code I'm wondering whether we could replace buildRenderable by buildBasicRenderable
Comment #13
nvakenBounced into this one as well. Cost me a few hours of debugging, finally found out that adding unique keys to the `keys` element in `#cache` fixed my issue. I'd be in for this patch.
Comment #18
danflanagan8Here's a fail test (hopefully).
Comment #19
danflanagan8Comment #20
danflanagan8Try that again.
Comment #22
danflanagan8That failure was exactly what I wanted. Now I'll add the fix from #7 and we'll see if it passes.
Comment #23
danflanagan8Comment #24
sam152 commentedElegant test and fix. Looks good to me.
Comment #25
danflanagan8Thanks for reviewing! Adding the Bug Smash tag because that's how I got here.
Comment #28
larowlanCommitted 10fc602 and pushed to 9.2.x. Thanks!
As the risk of disruption here is low, backported this to 9.1.x
Thanks all