Part of #1696224: Remove system_settings_form()
The aggregator settings at admin/config/services/aggregator/settings need to be converted to use the new configuration system.
Tasks
Create a default config file and add it to the aggregator module.
Convert the admin UI in aggregator.admin.inc to read to/write from the appropriate config.
Convert any code that currently accesses the variables used to use the config system.
Write an upgrade path from D7 -> D8 to migrate existing data to the new system and drop the appropriate variables.
Comment | File | Size | Author |
---|---|---|---|
#24 | 1496654_24_aggregator_cmi.patch | 15.88 KB | alexpott |
#23 | 1496654_23_aggregator_cmi.patch | 15.88 KB | alexpott |
#21 | 1496654_20_aggregator_cmi.patch | 15.88 KB | tobiasb |
#16 | 1496654_16_aggregator_cmi.patch | 14.74 KB | tobiasb |
#14 | 1496654_14_aggregator_cmi.patch | 14.75 KB | tobiasb |
Comments
Comment #1
pcambraAdding tags
Comment #2
alexpottFirst stab at converting aggregator module to use CMI.
Issues remaining:
I think this should be (if we continue to use xml
Comment #3
alexpottBump to needs review...
Comment #5
alexpottFixing tags
Comment #6
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedThe patch still applies. Fixing the test failures doesn't look like a novice task to me.
Reviewing it: Maybe the update hook should be in the system module, in case the module is disabled (which it very well can be)?
Comment #7
gddIt is probably worth postponing this one until #1470824: XML encoder can only handle a small subset of PHP arrays, so switch to YAML lands, as that will clean up the config file significantly and probably simplify a few things.
Comment #8
alexpottNow that Yaml has landed here's an updated patch
Comment #10
alexpottAnd now for a patch that passes all the tests and has some nice tidy ups :)
Comment #12
alexpottBorken uninstall :(
Comment #13
gddThis needs to be modified so that names match the new naming conventions laid out at http://drupal.org/node/1667896
Comment #14
tobiasbUpdated agains HEAD
* new naming conventions
* included system_config_form().
Comment #16
tobiasbComment #18
tobiasb#16: 1496654_16_aggregator_cmi.patch queued for re-testing.
Comment #20
sunThanks for working on this!
aggregator.settings
(instead of ".admin"), please. The "admin" part of the function does not have any special meaning.For example:
Note:
clear
is renamed toitems.expire
, andsummary_items
renamed tosource.list_max
in the above.Of course, this is just a suggestion; feel free to improve the keys and sub-keys where you see fit.
Furthermore:
Typo in 'fetchter'.
aggregator_uninstall() can be removed entirely. All configuration objects of a module are deleted automatically upon uninstallation, based on their primary namespace (i.e.,
aggregator.
).1) update_variables_to_config() needs an explicit mapping from old variable names to new config object key names.
2) Bogus phpDoc comment formatting.
Comment #21
tobiasbOh thx sun ;-)
On my local machine the test case testAtomSample was not completely successfully. lets see what testbot say.
Comment #22.0
(not verified) CreditAttribution: commentedRemove duplicate title
Comment #23
alexpottFixed failing testby making the following change to #21:
FROM:
TO:
Comment #24
alexpottre sun's #20 - @tobiasb good work on doing all of this... my tidy ups have been really minor
1. Fixed
2. Done
3. Changed as suggested
4. update_variables_to_config map provided
5. The patch attached makes a final clean up of aggregrator_update_8000() of phpDoc comment formatting by removing a line.
Comment #25
tobiasbOh thats was the mistake. just a save ;-) Now the test works. But I#m wondering me why I dont see anything about db-updates for aggregator_update_8000(). Is there also something new?
Comment #27
tobiasb#24: 1496654_24_aggregator_cmi.patch queued for re-testing.
Comment #28
sunYAY, thanks folks! :)
Comment #29
Dries CreditAttribution: Dries commentedI like this patch, and committed it to 8.x.
Personally, I think the chaining is a unconventional in this case, as it seems completely unnecessary. Not a deal-breaker though.
Comment #30
sunI think @Dries meant to mark this fixed.
Also, these conversion issues should be tagged with API change, since they technically are API changes. (Doing so also sends announcements to @drupalchanges.)
Comment #31
neclimdulHead is broken because defaults for aggregator are missing. Looks like the CMI file added by this patch wasn't pushed up with the commit.
Comment #32
jhodgdonThe CMI file is now added to 8.x. Head may still be broken though...
Comment #33
BerdirNope, all good again, thanks!
Comment #34
aspilicious CreditAttribution: aspilicious commentedDon't we need
config_install_default_config('aggregator')?
Comment #35
aspilicious CreditAttribution: aspilicious commentednever mind
Sun quote from another cmi issue
Comment #37
ParisLiakos CreditAttribution: ParisLiakos commentedwrong update function name:P
#1958702: Aggregator variables to config update is never executed
Comment #37.0
ParisLiakos CreditAttribution: ParisLiakos commentedAdded a link to the summary issue