From 757e5247a7c78d485438d4827af2346f33059f5c Mon Sep 17 00:00:00 2001 From: mariacha Date: Wed, 23 Oct 2024 08:03:57 -0700 Subject: [PATCH 1/2] Issue #325 adding two new modules to be available to IOs for logging. --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index cd9a9253b..4214e9be3 100644 --- a/composer.json +++ b/composer.json @@ -139,6 +139,7 @@ "drupal/core-composer-scaffold": "^10.3", "drupal/core-recommended": "^10.3", "drupal/ctools": "^4.0", + "drupal/dblog_persistent": "^2.1", "drupal/diff": "^1.0", "drupal/ds": "^3.0", "drupal/editor_advanced_link": "^2.2", @@ -160,6 +161,7 @@ "drupal/layout_builder_st": "^1.0@alpha", "drupal/layout_custom_section_classes": "^2.0", "drupal/link_attributes": "^2.1", + "drupal/logging_alerts": "^2.0", "drupal/media_library_edit": "^3.0", "drupal/media_responsive_thumbnail": "^1.2", "drupal/menu_admin_per_menu": "*", From 3cfcf871295d435b25fc002c3b13665edb8ba16f Mon Sep 17 00:00:00 2001 From: mariacha Date: Wed, 23 Oct 2024 08:15:22 -0700 Subject: [PATCH 2/2] Issue #325 setting up solr schema and installing module. --- .../dblog_persistent.channel.solr_schema_problems.yml | 8 ++++++++ modules/wri_admin/wri_admin.info.yml | 1 + modules/wri_admin/wri_admin.install | 11 +++++++++++ 3 files changed, 20 insertions(+) create mode 100644 modules/wri_admin/config/install/dblog_persistent.channel.solr_schema_problems.yml diff --git a/modules/wri_admin/config/install/dblog_persistent.channel.solr_schema_problems.yml b/modules/wri_admin/config/install/dblog_persistent.channel.solr_schema_problems.yml new file mode 100644 index 000000000..bd920f3bc --- /dev/null +++ b/modules/wri_admin/config/install/dblog_persistent.channel.solr_schema_problems.yml @@ -0,0 +1,8 @@ +status: true +dependencies: { } +id: solr_schema_problems +label: 'Solr schema problems' +types: + search_api: search_api +levels: { } +message: DOCS_AND_FREQS_AND_POSITIONS diff --git a/modules/wri_admin/wri_admin.info.yml b/modules/wri_admin/wri_admin.info.yml index 8e2116b2a..133d2a704 100644 --- a/modules/wri_admin/wri_admin.info.yml +++ b/modules/wri_admin/wri_admin.info.yml @@ -23,6 +23,7 @@ dependencies: - ctools_views - diff - dblog + - dblog_persistent - ds - ds_extras - editor diff --git a/modules/wri_admin/wri_admin.install b/modules/wri_admin/wri_admin.install index 21e68f4fc..b367d864c 100644 --- a/modules/wri_admin/wri_admin.install +++ b/modules/wri_admin/wri_admin.install @@ -49,3 +49,14 @@ function wri_admin_update_10301() { $role1->revokePermission('administer blocks'); $role1->save(); } + +/** + * Enable the module dblog_persistent and pulls config. + */ +function wri_admin_update_10302() { + $moduleHandler = \Drupal::service('module_handler'); + if (!$moduleHandler->moduleExists('dblog_persistent')) { + \Drupal::service('module_installer')->install(['dblog_persistent'], TRUE); + } + \Drupal::service('distro_helper.updates')->installConfig('dblog_persistent.channel.solr_schema_problems', 'wri_admin', 'install'); +}