Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
25 Oct 2012 at 19:22 UTC
Updated:
29 Jul 2014 at 21:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
albert volkman commentedComment #2
aspilicious commentedGroup this in a block key. Like block.max_list_count and block.seconds_online
Comment #3
asaal commentedComment #4
asaal commentedThe patch doesn't work on root system of drupal.
I checked out a new branch and apply the following line in command shell:
'git apply -v user_block_cmi.patch'
dlamp@dlamp-vm-server:~/workspace/drupal/drupal-8x-dev/htdocs$ git apply -v user_block_cmi.patch
Checking patch core/modules/user/config/user.settings.yml...
warning: core/modules/user/config/user.settings.yml has type 100755, expected 100644
error: while searching for:
register_pending_approval: '1'
register: visitors
signatures: '0'
error: patch failed: core/modules/user/config/user.settings.yml:12
error: core/modules/user/config/user.settings.yml: patch does not apply
Checking patch core/modules/user/user.module...
Hunk #1 succeeded at 722 (offset -41 lines).
Hunk #2 succeeded at 740 (offset -41 lines).
Hunk #3 succeeded at 805 (offset -41 lines).
Hunk #4 succeeded at 821 (offset -41 lines).
Hunk #5 succeeded at 835 (offset -41 lines).
but it doesn't work and the patch was not applied.
I make change manually from patch above and create new one.
Comment #5
asaal commentedIt is fixed and needs review.
Comment #6
asaal commentedComment #7
penyaskitoNeeds an upgrade path. See http://drupal.org/node/1667896#upgrade
Comment #8
penyaskitoTagging accordingly.
Comment #9
asaal commentedI have add a upgrade path and new yml file for separate the user_block_* settings.
Comment #10
Hanspolo commentedThis patch works fine for me.
Variables are stored in config and the blocks work as they did before.
Comment #11
Hanspolo commentedThis patch works fine for me.
Variables are stored in config and the blocks work as they did before.
Comment #12
longwaveMinor nitpick, these should probably use a common
$config = config('user.block');as in user_block_save().Also, do we need tests for the upgrade path?
Comment #13
asaal commentedAdded the minor nitpick. ;-)
Comment #14
Hanspolo commentedThe new patch works as well as #9.
The points of #12 are fixed.
I think that tests are not needed, because the functionality doesn't change.
Comment #15
webflo commentedReverted the changed file permissions from the patch in #13. I found one variable_get in the test and converted this to cmi.
Comment #16
webflo commentedOoops. Uploaded the wrong patch.
Comment #17
webflo commentedComment #19
webflo commented#17: user-convert_user_block_variables_to_cmi-1823348-17.patch queued for re-testing.
Comment #21
webflo commented#17: user-convert_user_block_variables_to_cmi-1823348-17.patch queued for re-testing.
Comment #22
asaal commentedHi @webflo thanks for reviewing and changing the test case.
Comment #23
aspilicious commenteddone!
Comment #24
catchCommitted/pushed to 8.x, thanks!
Comment #25
sdboyer commentedfyi, this patch was kinda pointless, as this is all getting refactored: #1535868: Convert all blocks into plugins
oh well, no big.