Comments

cameron tod’s picture

Title: Convert variable drupal_stale_file_threshold to state system » Convert variable drupal_stale_file_threshold to CMI system
cameron tod’s picture

Status: Active » Needs review
Issue tags: +State system
StatusFileSize
new1.47 KB

Candidate patch attached. Couple of things:

- New state name is `system.stale_file_threshold`, but I'm not sure this is the best name. It might be better to put it in the file namespace, maybe?
- I've added a general purpose update hook to convert variables to the state system. I'm not sure if this is within the scope of the patch, but at the least it will convert any saved `drupal_stale_file_threshold` values to state.

cameron tod’s picture

StatusFileSize
new441 bytes
new1.47 KB

Woops, had a bad name on the update hook.

berdir’s picture

Status: Needs review » Needs work

Should use the new helper function for the upgrade now.

cameron tod’s picture

Status: Needs work » Needs review
StatusFileSize
new1.36 KB

New patch with variable as config instead of state.

cameron tod’s picture

StatusFileSize
new506 bytes
new1.36 KB

Duh, wrong config key.

berdir’s picture

Status: Needs review » Reviewed & tested by the community

RTBC if it passes the tests.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.