From 4a32ce7acc27845fcf88bd2f6cf20aebc3af2d8f Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Fri, 13 Dec 2024 14:32:11 +0100 Subject: [PATCH 1/3] Ensure queue is in installed upon upgrade --- os2web_audit.install | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 os2web_audit.install diff --git a/os2web_audit.install b/os2web_audit.install new file mode 100644 index 0000000..aa0fa93 --- /dev/null +++ b/os2web_audit.install @@ -0,0 +1,18 @@ +getPath('os2web_audit') . '/config/install/' . $config_id .'.yml'; + $data = \Symfony\Component\Yaml\Yaml::parseFile($config_path); + \Drupal::configFactory()->getEditable($config_id)->setData($data)->save(TRUE); +} From c0fcf7557f354b322ad72e498d31edfdc7582f84 Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Fri, 13 Dec 2024 14:42:24 +0100 Subject: [PATCH 2/3] Fixed release numbers --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4848b8e..0a7e73e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.2.0] - 2024-12-13 +## [0.1.3] - 2024-12-13 - Added queue logic to enhance performance. @@ -40,8 +40,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - First version of the module - Added submodule to log user CUD events. -[Unreleased]: https://github.com/OS2web/os2web_audit/compare/0.2.0...HEAD -[0.2.0]: https://github.com/OS2web/os2web_audit/compare/0.1.2...0.2.0 +[Unreleased]: https://github.com/OS2web/os2web_audit/compare/0.1.3...HEAD +[0.1.3]: https://github.com/OS2web/os2web_audit/compare/0.1.2...0.1.3 [0.1.2]: https://github.com/OS2web/os2web_audit/compare/0.1.1...0.1.2 [0.1.1]: https://github.com/OS2web/os2web_audit/compare/0.1.0...0.1.1 [0.1.0]: https://github.com/OS2web/os2web_audit/compare/0.0.3...0.1.0 From 51c4df3b65569ad39704bc5489e7cbd2ecd14c1a Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Fri, 13 Dec 2024 14:45:34 +0100 Subject: [PATCH 3/3] Cleanup --- os2web_audit.install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/os2web_audit.install b/os2web_audit.install index aa0fa93..feb68e4 100644 --- a/os2web_audit.install +++ b/os2web_audit.install @@ -5,14 +5,16 @@ * Install file for OS2Web Audit module. */ +use Symfony\Component\Yaml\Yaml; + /** * Implements hook_update_N(). * * Ensure queue config is installed. */ -function os2web_audit_update_103001() { +function os2web_audit_update_103001(): void { $config_id = 'advancedqueue.advancedqueue_queue.os2web_audit'; - $config_path = \Drupal::service('extension.list.module')->getPath('os2web_audit') . '/config/install/' . $config_id .'.yml'; - $data = \Symfony\Component\Yaml\Yaml::parseFile($config_path); + $config_path = \Drupal::service('extension.list.module')->getPath('os2web_audit') . '/config/install/' . $config_id . '.yml'; + $data = Yaml::parseFile($config_path); \Drupal::configFactory()->getEditable($config_id)->setData($data)->save(TRUE); }