Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views_ui.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
25 Sep 2015 at 23:14 UTC
Updated:
24 Feb 2016 at 02:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
toniteof commentedI am working on it.
Comment #3
toniteof commentedURL path was changed.
Comment #5
toniteof commentedUpdated FieldWebTest
Comment #6
dawehnerThis would break cacheablity of pagers inside views blocks. I'd suggest to maybe check for the views preview instead?
Comment #7
toniteof commentedIf I understood correctly
Comment #8
dawehnerIMHO you should use
$view->live_previewComment #9
toniteof commentedthx for help
Something like this?
Comment #10
dawehner+1 and maybe even better put a quick line of documentation there, why we are doing that.
Comment #11
toniteof commentedComment #12
dawehnerSorry, but this is not WHY, this line of documentation explains what the next line of code is doing.
Removing the regression tag because its pointless. A bug is a bug and stays a bug. All bugs are regressions relative to the expected behaviour. Almost
Comment #13
toniteof commentedSo as for the why
Comment #14
dawehnerI would go with the following which explains both:
// For the actual site we want to not render full URLs, because this would make pagers cacheable per URL, which is problematic in blocks, for example. For the actual live preview though the javascript relies on properly working URLs.Comment #15
toniteof commented-
Comment #16
thenchev commentedThanks @toniteof
Tested it, works great for me.
@dawehner
Do you have anything to add or can we RTBC?
Comment #17
dawehnerNot not really ...
I'll set this to RTBC because this part of the preview can just be tested properly with some JS, I believe.
Comment #18
alexpottCan we at least test the URLs in the output?
Comment #19
dawehnerMH, I guess we can. We don't even necessarily need to fake up the ajax request.
Comment #20
toniteof commentedAdd tests.
Comment #21
dawehnerThe test looks great in general.
Let's add public there.
Let's remove the whitespace.
Comment #22
toniteof commentedThanks @dawehner.
Comment #23
thenchev commentedI have nothing to add. Great job. I guess we can put it back to RTBC.
Comment #26
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!