Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Sep 2012 at 13:42 UTC
Updated:
29 Jul 2014 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tayzlor commentedComment #2
alexpottDoes this need to be brought over from a d7 during upgrade?
Comment #3
tayzlor commentedNew patch with the hook_update_N() to shift the variable to state system.
Comment #4
alexpottNo need to set if node_access_needs_rebuild is false.
Need to also do an update_variable_del() too?
Comment #5
tayzlor commentedComment #6
alexpottTested... works as expected.
Reviewers: note that node_access_rebuild is only ever set to TRUE - otherwise it is deleted. That's why in the update_N function the variable is only deleted if it is set to TRUE.
Comment #7
alexpottoh... and @tayzlor thanks for the work!
Comment #8
alexpottWe've decided to namespace the key value names so we need to change the variable name from
node_access_needs_rebuildto something else. Perhapsnode.node_access_needs_rebuildComment #9
albert volkman commentedNamespaced. I chose to go with node.access_needs_rebuilt to remove the redundancy.
Comment #10
alexpottNot sure about node.access_needs_rebuild as node_access is the table that is being rebuilt!... that's why I plumped for node.node_access_needs_rebuild...
Bikeshed anyone? :)
Comment #11
albert volkman commentedNo, definitely no bikeshed. Just thought that was the way it was supposed to be. Here it is with your suggested name.
Comment #12
alexpottWe have a new function for updating variables to state...
update_variables_to_state()Have a look at
system_update_8026()for how to use this.Also @sun and I have agreed that all state upgrades should just be documented with the same group as config. So...
Change to @ingroup config_upgrade
Comment #13
albert volkman commentedAh, I had been watching #1798732: Convert install_task, install_time and install_current_batch to use the state system but didn't realize that it had landed. Been traveling in Ireland (on a train now from Cork to Dublin, actually). Patch updated.
Comment #14
alexpottCan you add to the test in Drupal\system\Tests\Upgrade\StateSystemUpgradePathTest?
You will need to set the value to TRUE using drupal-7.state.system.database.php
And then add something like this to the test:
Otherwise looks good!
Comment #15
albert volkman commentedComment #17
berdir#15: node_access_needs_rebuild-1798804-15.patch queued for re-testing.
Comment #19
alexpottBumped node_update_N so patch works and moved tests to the state test class so that they work too.
Comment #20
berdirTests passed, re-roll looks good to me.
Comment #21
webchickCommitted and pushed to 8.x. Thanks!