Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2014 at 18:15 UTC
Updated:
22 Nov 2014 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerExtracting that logic out into a separate service is a good idea in general. Whether the block storage is the right place is not clear for me.
Comment #2
tim.plunkettI am also not 100% sure this should be on storage, but it might be okay. For now, just tweaking some things and fixing the tests.
Comment #3
fabianx commentedI think this is a good abstraction, RTBC + 1 from me.
Comment #4
tim.plunkettThis feels much cleaner to me. We have a simple service that combines storage and access in a specific and needed method. It can be swapped out independently of the storage, and is actually then easier to test.
Comment #5
fabianx commentedRTBC!!! - Very nice idea!
Does this still need further tests as stated in issue summary or is this ready?
Comment #6
tim.plunkettYes, it has tests now, and the old ones are restored.
I'd considering this RTBC, and I ran it by @EclipseGc
Comment #7
tim.plunkettComment #8
fabianx commentedRTBC then
Comment #9
tim.plunkett@dawehner pointed out that theme negotiator is being misused here.
Comment #10
fabianx commentedStill RTBC
Comment #12
tim.plunkettOh, that returns an object instead of a string.
Comment #13
tim.plunkett#10 covered the intent of my change, I just did it wrong, so setting back to RTBC.
Comment #14
fabianx commentedAgree with RTBC
Comment #15
alexpottReclassifying this as a bug since having the
FullPageVariantdirectly accessing block and checking access is the presentation layer reaching through the business logic layer and directly into the storage layer. This is a bad idea and as the issue summary points out more efficient storages would have to replace the FullPageVariant.Comment #16
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Also this change makes life easier for contrib and to improve the performance of loading blocks per region. Committed ec7b056 and pushed to 8.0.x. Thanks!