Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ensure queue is installed #10

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions os2web_audit.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* @file
* 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(): void {
$config_id = 'advancedqueue.advancedqueue_queue.os2web_audit';
$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);
}
Loading