Problem/Motivation
This is a followup issue for #1535868: Convert all blocks into plugins.
- #1535868: Convert all blocks into plugins removes the feature that allows individual users to configure whether or not certain blocks are displayed.
- The feature probably does not need to be in core, since it's not that commonly used and can be easily implemented in contrib.
- However, for sites that do make use of this feature, Drupal 8 will have a regression. If an existing site has (over)used this feature to allow users to pick a small subset of blocks to display from a long list, and they're suddenly all displayed on upgrade, the site might appear "broken".
Proposed resolution
Decide whether to restore this feature, or to let contrib provide it.
Comments
Comment #1
xjmComment #2
xjmComment #3
xjmComment #4
gábor hojtsyPer-user visibility JS was still in block.js, see #1882252: Regression: Block visibility summaries are broken
Comment #5
sunWoah - this was removed??
The two visibility/access limiters, roles and paths, are actually the top-most used ones on all of my Drupal sites. I almost have a 100% hit rate on those, for every site, regardless of its scale or size. I have no idea why roles were removed. This is a major regression IMHO.
Comment #6
gábor hojtsy@sun: per *user* was removed, not per *role*, see OP.
Comment #7
sunOoooh! I see :) Yeah, that's fine. Useless feature. :-D Sorry for the noise.
Comment #8
Bojhan commentedAgreed, per-user seems introduced in the "personalization" phase of the interwebs, where everything had to be per-user customizable. Perfectly fine to be done in contrib.
Comment #9
xjmComment #10
hosef commentedShouldn't the issue status be "closed (won't fix)"? I have overheard several people say this was a done deal.
Comment #11
xjm@hosef, overheard where, and whom? This is a feature regression from D7, and there is no contrib solution. If we are going to permanently remove the feature, it needs core maintainer signoff, documented in this issue, and a change notice attached to the origininal BAP patch.
Comment #12
xjmAt a minimum we need to do this.
Comment #13
benjy commented+1 for removing it. If we get a core maintainer to agree i'll write the contrib module before release.
Comment #14
alexpottDiscussed with @catch and we both agree that this feature does not need to be in Drupal 8. So @benjy go ahead and work on a contrib module - obviously bearing in mind blocks are currently undergoing some API work.
Also we need to update the change notice as per @xjm in #11.
Comment #15
benjy commentedModule created in contrib: https://drupal.org/project/per_user_block
We also need to remove some unused constants related to the per user block functionality which was removed: #2078675: Remove unused constants in block.module
Comment #16
catch#2083415: [META] Write up all outstanding change notices before release.
Comment #16.0
catchRemoving myself from the author field to unfollow the issue. --xjm
Comment #17
star-szrI'll try to write a change notice for this.
Comment #18
star-szrPer-user block visibility customization functionality removed
Issues:
#1535868: Convert all blocks into plugins
#1871854: Decide whether to restore per-user block visibility or provide it in contrib
The feature to provide users with the ability to hide and show blocks from their user configuration page has been removed from Drupal core. This functionality is being built in the Per User Block contributed module.
The per-user customization feature shouldn't be confused with the ability for administrators to customize block visibility based on user roles that is still possible in Drupal 8 core.
Affects:
Comment #19
xjmLooks great.
Comment #20
xjmComment #21
star-szrThanks @xjm!
Change notice:
https://drupal.org/node/2152107