Skip to content

Commit 611f2b9

Browse files
authored
Merge branch 'develop' into f/OS-115_dawa_address
2 parents 555eb3c + 07d7aa2 commit 611f2b9

File tree

67 files changed

+2029
-401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2029
-401
lines changed

CHANGELOG.md

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,89 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1111

1212
## [Unreleased]
1313

14-
- [OS-115] Skipping empty maktrikula objects
14+
## [4.0.0] 2025-03-06
15+
16+
- This is an alias for for 3.22.2. Major change is the module removal, which can lead to lack of backward support.
17+
See full release note here:
18+
https://github.com/OS2Forms/os2forms_docs/blob/master/docs/releases/2024-Q4-Release-notes.md
19+
20+
## [3.22.2] 2025-02-28
21+
22+
- Updated `os2web_audit`.
23+
24+
## [3.22.1] 2025-02-10
25+
26+
- Updated `os2forms_fbs_handler` to include and correct set phone number [#161](https://github.com/OS2Forms/os2forms/pull/161)
27+
28+
## [3.22.0] 2025-02-03
29+
30+
- Removed modules ldap_auth, logging_alerts, maillog [#151](https://github.com/OS2Forms/os2forms/pull/151)
31+
- Removed module image_widget_crop [#OS-143](https://github.com/OS2Forms/os2forms/pull/159)
32+
33+
## [3.21.2] 2025-01-07
34+
35+
- Adds missing `http-message-util` requirement and use statement.
36+
- Runs code-analysis on `os2forms_fbs_handler` module.
37+
38+
## [3.21.1] 2025-01-06
39+
40+
- Updated Maestro notification handler assignment message format.
41+
- Updated `os2forms_fbs_handler` to use latest endpoints and operations.
42+
43+
## [3.21.0] 2024-12-17
44+
45+
- Updated `os2web_audit`.
46+
- Added patch to get `hook_webform_post_load_data` in webform submissions.
47+
48+
## [3.20.1] 2024-12-10
49+
50+
- Avoided accessing non-initialized property when logging in `os2forms_nemid`.
51+
52+
## [3.20.0] 2024-12-09
53+
54+
- Added webform ID to digital post audit logging messages.
55+
- Added audit logging to `os2forms_fasit`
56+
- Added audit logging to `os2forms_fbs_handler`
57+
58+
## [3.19.0] 2024-12-06
59+
60+
- Ensured installation of `os2web_audit`
61+
- `os2web_audit` has default logging through `watchdog`
62+
- Adds audit logging to `os2forms_digital_post`
63+
- Adds audit logging to `os2forms_nemid`
64+
65+
## [3.18.0] 2024-12-05
66+
67+
- Added `os2forms_fasit` module.
68+
69+
## [3.17.0] 2024-11-21
70+
71+
- Updated `os2web/os2web_audit` version
72+
- Updated `os2web/os2web_datalookup` version
73+
74+
## [3.16.2] 2024-10-31
75+
76+
- Applied coding standards
77+
- [#192](https://github.com/OS2Forms/os2forms/pull/129)
78+
Added audit logging module from os2web
79+
- Remove dependency on webform migration module
80+
- [#100](https://github.com/OS2Forms/os2forms/pull/100)
81+
Removed unused `tecnickcom/tcpdf` package.
82+
83+
## [3.16.1] 2024-09-20
84+
85+
- [#133](https://github.com/OS2Forms/os2forms/pull/133)
86+
[OS-119] Keeping value of CPR clean, not adding address protection text
87+
88+
## [3.16.0-beta1] 2024-08-27
1589

1690
## [3.16.0] 2024-08-27
1791

92+
f/OS-115_dawa_address
93+
- [OS-115] Skipping empty maktrikula objects
94+
95+
96+
1897
[#110](https://github.com/OS2Forms/os2forms/pull/110)
1998

2099
- Obsolete module removing - os2forms_consent
@@ -280,7 +359,21 @@ before starting to add changes. Use example [placed in the end of the page](#exa
280359
- Security in case of vulnerabilities.
281360
```
282361

283-
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.15.8...HEAD
362+
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.22.2...HEAD
363+
[3.22.2]: https://github.com/OS2Forms/os2forms/compare/3.22.1...3.22.2
364+
[3.22.1]: https://github.com/OS2Forms/os2forms/compare/3.22.0...3.22.1
365+
[3.22.0]: https://github.com/OS2Forms/os2forms/compare/3.21.2...3.22.0
366+
[3.21.2]: https://github.com/OS2Forms/os2forms/compare/3.21.1...3.21.2
367+
[3.21.1]: https://github.com/OS2Forms/os2forms/compare/3.21.0...3.21.1
368+
[3.21.0]: https://github.com/OS2Forms/os2forms/compare/3.20.1...3.21.0
369+
[3.20.1]: https://github.com/OS2Forms/os2forms/compare/3.20.0...3.20.1
370+
[3.20.0]: https://github.com/OS2Forms/os2forms/compare/3.19.0...3.20.0
371+
[3.19.0]: https://github.com/OS2Forms/os2forms/compare/3.18.0...3.19.0
372+
[3.18.0]: https://github.com/OS2Forms/os2forms/compare/3.17.0...3.18.0
373+
[3.17.0]: https://github.com/OS2Forms/os2forms/compare/3.16.2...3.17.0
374+
[3.16.2]: https://github.com/OS2Forms/os2forms/compare/3.16.1...3.16.2
375+
[3.16.1]: https://github.com/OS2Forms/os2forms/compare/3.16.0-beta1...3.16.1
376+
[3.16.0-beta1]: https://github.com/OS2Forms/os2forms/compare/3.15.8...3.16.0-beta1
284377
[3.15.8]: https://github.com/OS2Forms/os2forms/compare/3.15.7...3.15.8
285378
[3.15.7]: https://github.com/OS2Forms/os2forms/compare/3.15.6...3.15.7
286379
[3.15.6]: https://github.com/OS2Forms/os2forms/compare/3.15.5...3.15.6

composer.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"dompdf/dompdf": "^2.0",
2424
"drupal/admin_toolbar": "^3.0",
2525
"drupal/advancedqueue": "^1.0",
26+
"drupal/cache_control_override": "^1.1|^2.0",
2627
"drupal/clientside_validation": "^4.0",
2728
"drupal/coc_forms_auto_export": "^2.0@alpha",
2829
"drupal/config_entity_revisions": "dev-2.0.x",
@@ -31,14 +32,12 @@
3132
"drupal/entity_print": "^2.1",
3233
"drupal/eu_cookie_compliance": "^1.8",
3334
"drupal/events_logging": "^2.0@beta",
35+
"drupal/gin": "^3.0-rc",
3436
"drupal/honeypot": "^2.0",
35-
"drupal/image_widget_crop": "^2.3",
3637
"drupal/ldap": "^4.2",
37-
"drupal/ldap_auth": "^1.17",
3838
"drupal/leaflet": "^10.0",
3939
"drupal/leaflet_layers": "^1.1",
4040
"drupal/libraries": "^4.0",
41-
"drupal/logging_alerts": "^2.0",
4241
"drupal/maestro": "^3.1",
4342
"drupal/mailsystem": "^4.1",
4443
"drupal/masquerade": "^2.0@RC",
@@ -58,23 +57,24 @@
5857
"drupal/webform": "^6.1",
5958
"drupal/webform_composite": "^1.0@RC",
6059
"drupal/webform_encrypt": "^2.0@alpha",
61-
"drupal/webform_migrate": "^2.0@alpha",
6260
"drupal/webform_node_element": "^1.2",
6361
"drupal/webform_remote_handlers": "^3.0",
6462
"drupal/webform_remote_select": "^1.0.6",
6563
"drupal/webform_rest": "^4.0.0-beta2",
6664
"drupal/webform_validation": "^2.0",
6765
"drupal/webform_views": "^5.0@alpha",
6866
"drupal/workflow_participants": "^3.0@RC",
67+
"fig/http-message-util": "^1.1",
6968
"http-interop/http-factory-guzzle": "^1.0.0",
7069
"itk-dev/beskedfordeler-drupal": "^1.0",
7170
"itk-dev/serviceplatformen": "^1.5",
72-
"os2web/os2web_datalookup": "^1.5",
71+
"os2web/os2web_audit": "^1.0",
72+
"os2web/os2web_datalookup": "^2.0",
7373
"os2web/os2web_nemlogin": "^1.0",
74+
"os2web/os2web_simplesaml": "dev-master",
7475
"php-http/guzzle7-adapter": "^1.0",
7576
"phpoffice/phpword": "^0.18.2",
7677
"symfony/options-resolver": "^5.4 || ^6.0",
77-
"tecnickcom/tcpdf": "~6",
7878
"webmozart/path-util": "^2.3",
7979
"wsdltophp/packagebase": "^5.0",
8080
"zaporylie/composer-drupal-optimizations": "^1.2",
@@ -83,7 +83,6 @@
8383
"require-dev": {
8484
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
8585
"drupal/coder": "^8.3",
86-
"drupal/maillog": "^1.0",
8786
"mglaman/phpstan-drupal": "^1.1",
8887
"phpstan/extension-installer": "^1.3",
8988
"phpstan/phpstan-deprecation-rules": "^1.1",
@@ -99,7 +98,9 @@
9998
},
10099
"drupal/webform": {
101100
"Unlock possibility of using Entity print module export to Word": "https://www.drupal.org/files/issues/2020-02-29/3096552-6.patch",
102-
"Webform computed element post save alter": "https://www.drupal.org/files/issues/2024-06-25/webform_computed_post_save_field_alter.patch"
101+
"Webform computed element post save alter": "https://www.drupal.org/files/issues/2024-06-25/webform_computed_post_save_field_alter.patch",
102+
"Add custom hook (hook_webform_post_load_data) for audit logging": "https://gist.githubusercontent.com/cableman/d26898fc8f65ee0a31001bf391583b59/raw/6189dc4c2ceaabb19d25cc4b98b0b3028a6b0e1e/gistfile1.txt"
103+
103104
},
104105
"drupal/coc_forms_auto_export": {
105106
"3240592 - Problem with phpseclib requirement in 2.x (https://www.drupal.org/project/coc_forms_auto_export/issues/3240592)": "https://www.drupal.org/files/issues/2021-10-04/requirement-namespace-3240592-1.patch",
@@ -149,7 +150,8 @@
149150
"phpstan/extension-installer": true,
150151
"simplesamlphp/composer-module-installer": true,
151152
"vaimo/composer-patches": true,
152-
"zaporylie/composer-drupal-optimizations": true
153+
"zaporylie/composer-drupal-optimizations": true,
154+
"mglaman/composer-drupal-lenient": true
153155
}
154156
}
155157
}

modules/os2forms_autocomplete/src/Plugin/WebformElement/AutocompleteElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function defineDefaultProperties() {
3838
/**
3939
* {@inheritdoc}
4040
*/
41-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
41+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
4242
parent::prepare($element, $webform_submission);
4343

4444
if (isset($element['#webform_key'])) {

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getDefaultProperties() {
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
34+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
3535
parent::prepare($element, $webform_submission);
3636

3737
$element['#autocomplete_route_parameters']['remove_place_name'] = $element['#remove_place_name'] ?? FALSE;

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementAddressMatrikula.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getDefaultProperties() {
3636
/**
3737
* {@inheritdoc}
3838
*/
39-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
39+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
4040
parent::prepare($element, $webform_submission);
4141

4242
$element['#webform_composite_elements']['address']['#remove_place_name'] = TRUE;

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getDefaultProperties() {
2525
/**
2626
* {@inheritdoc}
2727
*/
28-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
28+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
2929
parent::prepare($element, $webform_submission);
3030

3131
$element['#autocomplete_route_name'] = 'os2forms_dawa.element.autocomplete';

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getDefaultProperties() {
3030
/**
3131
* {@inheritdoc}
3232
*/
33-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
33+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
3434
parent::prepare($element, $webform_submission);
3535

3636
$element['#autocomplete_route_parameters']['remove_code'] = $element['#remove_code'] ?? FALSE;

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementMatrikula.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getDefaultProperties() {
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
34+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
3535
parent::prepare($element, $webform_submission);
3636

3737
$element['#autocomplete_route_parameters']['remove_code'] = $element['#remove_code'] ?? FALSE;

modules/os2forms_dawa/src/Plugin/os2web/DataLookup/DatafordelerDataLookup.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Drupal\Core\Form\FormStateInterface;
77
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
88
use Drupal\os2forms_dawa\Entity\DatafordelerMatrikula;
9+
use Drupal\os2web_audit\Service\Logger;
910
use Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupBase;
1011
use GuzzleHttp\ClientInterface;
1112
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -30,9 +31,15 @@ class DatafordelerDataLookup extends DataLookupBase implements DatafordelerDataL
3031
/**
3132
* {@inheritdoc}
3233
*/
33-
public function __construct(array $configuration, $plugin_id, $plugin_definition, ClientInterface $httpClient) {
34+
public function __construct(
35+
array $configuration,
36+
$plugin_id,
37+
$plugin_definition,
38+
ClientInterface $httpClient,
39+
Logger $auditLogger,
40+
) {
3441
$this->httpClient = $httpClient;
35-
parent::__construct($configuration, $plugin_id, $plugin_definition);
42+
parent::__construct($configuration, $plugin_id, $plugin_definition, $auditLogger);
3643
}
3744

3845
/**
@@ -44,6 +51,7 @@ public static function create(ContainerInterface $container, array $configuratio
4451
$plugin_id,
4552
$plugin_definition,
4653
$container->get('http_client'),
54+
$container->get('os2web_audit.logger'),
4755
);
4856
}
4957

@@ -107,7 +115,7 @@ public function getMatrikulaEntries(string $matrikulaId) : array {
107115
/**
108116
* {@inheritdoc}
109117
*/
110-
public function defaultConfiguration() {
118+
public function defaultConfiguration(): array {
111119
return [
112120
'username' => '',
113121
'password' => '',

modules/os2forms_dawa/src/Plugin/os2web/DataLookup/DawaDataLookup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getMatrikulaAutocompletePath() {
4646
/**
4747
* {@inheritdoc}
4848
*/
49-
public function defaultConfiguration() {
49+
public function defaultConfiguration(): array {
5050
return [
5151
'address_autocomplete_path' => 'https://dawa.aws.dk/adresser/autocomplete',
5252
'address_api_path' => 'https://dawa.aws.dk/adresser',

0 commit comments

Comments
 (0)