3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

22 commits

Author SHA1 Message Date
Michael Stenta
c0f02dfc0e Update all core_version_requirement to ^10. 2023-10-30 12:07:29 -04:00
Paul Weidner
351e0b0cc7 Correct hook_farm_update_exclude_config API docs #608 2022-11-28 16:41:13 -08:00
Michael Stenta
29a4ac3e89 Mark FarmUpdate as @internal. 2022-11-16 14:37:55 -05:00
Michael Stenta
df650caee5 Add extra.drush.services section to minimal composer.json files in modules that provide Drush commands.
This resolves the following complaints from Drush:

 [info] farm_migrate should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file.
 [info] farm_update should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file.

See https://github.com/drush-ops/drush/issues/5297
2022-11-12 10:25:35 -05:00
Michael Stenta
ff60b3164d Fix \Drupal calls should be avoided in classes, use dependency injection instead. 2022-09-13 10:12:45 -04:00
Michael Stenta
f3ab7df146 Do not translate logger error() and notice() messages.
Fixes error when running drush potx:

[error]  The first parameter to notice() should be a literal
string. There should be no variables, concatenation, constants
or other non-literal strings there.
2022-02-04 13:19:43 -05:00
Michael Stenta
092b6936d4 Clarify that farm_update only reverts configuration entities - not simple config. 2021-09-27 09:50:22 -04:00
paul121
3a46ccb60b Issue #3239191 by paul121: Change farm_update to ignore simple config 2021-09-27 09:50:10 -04:00
paul121
6646a31d37 Log the result after reverting config. #447 2021-09-24 10:03:19 -04:00
Michael Stenta
db40dc13a6 Exclude system.performance config from automatic updates. 2021-09-23 09:55:41 -04:00
Michael Stenta
b08c9ab1b5 Exclude user.role.anonymous and user.role.authenticated config from automatic updates. 2021-09-23 09:55:41 -04:00
Michael Stenta
d51176aef1 Automated tests of farmOS Update module. 2021-09-23 09:55:41 -04:00
Michael Stenta
f575b0039f Exclude farm_update.settings config from automatic updates, just to be safe. 2021-09-23 09:55:41 -04:00
Michael Stenta
f881bea2e3 Allow additional config exclusions to be defined in farm_update.settings. 2021-09-23 09:55:41 -04:00
Michael Stenta
a46c0923a0 Exclude core configuration items from automatic updates. 2021-09-23 09:55:41 -04:00
Michael Stenta
24d158341f Add a hook_farm_update_exclude_config() to allow modules to exclude config from automatic updates. 2021-09-23 09:55:41 -04:00
Michael Stenta
95702e5be4 Log when reverting config fails. 2021-09-23 09:55:41 -04:00
Michael Stenta
8d034c5186 Revert overridden configuration on rebuild().
Inspired by ConfigUpdateUiCliService.
2021-09-23 09:55:41 -04:00
Michael Stenta
59dd58a962 Provide a farm_update:rebuild Drush command. 2021-09-23 09:55:41 -04:00
Michael Stenta
039eb0fbf5 Run FarmUpdate::rebuild() via hook_rebuild(). 2021-09-23 09:55:41 -04:00
Michael Stenta
2dd6a268f8 Initial farm.update service with rebuild() method. 2021-09-23 09:55:41 -04:00
Michael Stenta
fbb589655d Initial farm_update module.
Installed with base modules.
2021-09-23 09:55:41 -04:00