Skip to content

Commit bd2cdf0

Browse files
authored
Merge pull request #131 from OS2Forms/develop
3.16.0 - Drupal 10 deploy
2 parents bbfb1a5 + f72c8b4 commit bd2cdf0

File tree

107 files changed

+135
-5675
lines changed

Some content is hidden

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

107 files changed

+135
-5675
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
restore-keys: ${{ runner.os }}-composer-
4747
- name: Validate composer files
4848
run: |
49+
composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
4950
composer validate --strict composer.json
5051
# Check that dependencies resolve.
5152
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
@@ -77,6 +78,7 @@ jobs:
7778
restore-keys: ${{ runner.os }}-composer-
7879
- name: Install Dependencies
7980
run: |
81+
composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
8082
composer install --no-interaction --no-progress
8183
- name: PHPCS
8284
run: |

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1111

1212
## [Unreleased]
1313

14+
- [OS-119] Keeping value of CPR clean, not adding address protection text
15+
- Applied coding standards
16+
17+
## [3.16.0-beta1] 2024-08-27
18+
19+
[#110](https://github.com/OS2Forms/os2forms/pull/110)
20+
21+
- Obsolete module removing - os2forms_consent
22+
- Obsolete module removing - webform_embed
23+
- Obsolete module removing - field_color
24+
- Obsolete patch removing - dynamic_entity_reference
25+
- Obsolete patch removing - user_default_page
26+
- Reduntand dependency removing - linkit
27+
- Reduntand dependency removing - chosen
28+
- Reduntand dependency removing - queue_ui
29+
- Reduntand dependency removing - simple_ldap
30+
- Reduntand dependency removing - webform_scheduled_tasks
31+
- Drupal 10 compability fixes
32+
1433
## [3.15.8] 2024-08-26
1534

1635
- [#127](https://github.com/OS2Forms/os2forms/pull/127)
@@ -262,7 +281,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa
262281
- Security in case of vulnerabilities.
263282
```
264283

265-
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.15.8...HEAD
284+
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.16.0-beta1...HEAD
285+
[3.16.0-beta1]: https://github.com/OS2Forms/os2forms/compare/3.15.8...3.16.0-beta1
266286
[3.15.8]: https://github.com/OS2Forms/os2forms/compare/3.15.7...3.15.8
267287
[3.15.7]: https://github.com/OS2Forms/os2forms/compare/3.15.6...3.15.7
268288
[3.15.6]: https://github.com/OS2Forms/os2forms/compare/3.15.5...3.15.6

composer.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,68 +23,62 @@
2323
"dompdf/dompdf": "^2.0",
2424
"drupal/admin_toolbar": "^3.0",
2525
"drupal/advancedqueue": "^1.0",
26-
"drupal/chosen": "^2.10",
27-
"drupal/ckeditor_a11ychecker": "^2.0@alpha",
28-
"drupal/clientside_validation": "^3.0",
26+
"drupal/clientside_validation": "^4.0",
2927
"drupal/coc_forms_auto_export": "^2.0@alpha",
30-
"drupal/config_entity_revisions": "^1.7.0",
28+
"drupal/config_entity_revisions": "dev-2.0.x",
3129
"drupal/diff": "^1.0",
3230
"drupal/embed": "^1.4",
3331
"drupal/entity_print": "^2.1",
3432
"drupal/eu_cookie_compliance": "^1.8",
35-
"drupal/events_logging": "^1.5",
36-
"drupal/header_and_footer_scripts": "^3.0",
33+
"drupal/events_logging": "^2.0@beta",
3734
"drupal/honeypot": "^2.0",
3835
"drupal/image_widget_crop": "^2.3",
3936
"drupal/ldap": "^4.2",
4037
"drupal/ldap_auth": "^1.17",
4138
"drupal/leaflet": "^10.0",
4239
"drupal/leaflet_layers": "^1.1",
43-
"drupal/libraries": "^3.0@beta",
44-
"drupal/linkit": "^5.0",
40+
"drupal/libraries": "^4.0",
4541
"drupal/logging_alerts": "^2.0",
4642
"drupal/maestro": "^3.1",
4743
"drupal/mailsystem": "^4.1",
4844
"drupal/masquerade": "^2.0@RC",
4945
"drupal/pathauto": "^1.5",
5046
"drupal/permissions_by_term": "^3.1 || ^2.25",
5147
"drupal/queue_mail": "^1.4",
52-
"drupal/queue_ui": "^2.1",
5348
"drupal/r4032login": "^2.1",
5449
"drupal/redirect": "^1.4",
55-
"drupal/simple_ldap": "^1.0@alpha",
56-
"drupal/simplesamlphp_auth": "^3.2",
50+
"drupal/simplesamlphp_auth": "^4.0",
5751
"drupal/smtp": "^1.0@beta",
5852
"drupal/sodium": "^2.4",
5953
"drupal/switch_page_theme": "^4.0",
6054
"drupal/telephone_validation": "^2.2",
6155
"drupal/token": "^1.5",
6256
"drupal/ultimate_cron": "^2.0.0",
63-
"drupal/user_default_page": "^2.1",
57+
"drupal/user_default_page": "^9.0",
6458
"drupal/webform": "^6.1",
6559
"drupal/webform_composite": "^1.0@RC",
6660
"drupal/webform_encrypt": "^2.0@alpha",
67-
"drupal/webform_migrate": "^1.1",
61+
"drupal/webform_migrate": "^2.0@alpha",
6862
"drupal/webform_node_element": "^1.2",
69-
"drupal/webform_remote_handlers": "^1.6.0",
63+
"drupal/webform_remote_handlers": "^3.0",
7064
"drupal/webform_remote_select": "^1.0.6",
7165
"drupal/webform_rest": "^4.0.0-beta2",
72-
"drupal/webform_scheduled_tasks": "^2.0",
7366
"drupal/webform_validation": "^2.0",
7467
"drupal/webform_views": "^5.0@alpha",
75-
"drupal/workflow_participants": "^2.4",
68+
"drupal/workflow_participants": "^3.0@RC",
7669
"http-interop/http-factory-guzzle": "^1.0.0",
7770
"itk-dev/beskedfordeler-drupal": "^1.0",
78-
"itk-dev/serviceplatformen": "dev-feature/guzzle6-adapter as 1.5",
71+
"itk-dev/serviceplatformen": "^1.5",
7972
"os2web/os2web_datalookup": "^1.5",
8073
"os2web/os2web_nemlogin": "^1.0",
81-
"php-http/guzzle6-adapter": "^2.0",
74+
"php-http/guzzle7-adapter": "^1.0",
8275
"phpoffice/phpword": "^0.18.2",
8376
"symfony/options-resolver": "^5.4 || ^6.0",
8477
"tecnickcom/tcpdf": "~6",
8578
"webmozart/path-util": "^2.3",
8679
"wsdltophp/packagebase": "^5.0",
87-
"zaporylie/composer-drupal-optimizations": "^1.2"
80+
"zaporylie/composer-drupal-optimizations": "^1.2",
81+
"mglaman/composer-drupal-lenient": "^1.0"
8882
},
8983
"require-dev": {
9084
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
@@ -107,19 +101,24 @@
107101
"Unlock possibility of using Entity print module export to Word": "https://www.drupal.org/files/issues/2020-02-29/3096552-6.patch",
108102
"Webform computed element post save alter": "https://www.drupal.org/files/issues/2024-06-25/webform_computed_post_save_field_alter.patch"
109103
},
110-
"drupal/user_default_page": {
111-
"Warning: in_array() expects parameter 2 to be array, null given in user_default_page_user_logout() (https://www.drupal.org/node/3246986)": "https://www.drupal.org/files/issues/2021-11-01/user_default_page-3246986-2.patch"
112-
},
113104
"drupal/coc_forms_auto_export": {
114-
"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"
105+
"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",
106+
"3286562 - Automated Drupal 10 compatibility fixes" : "https://www.drupal.org/files/issues/2022-06-15/coc_forms_auto_export.2.0.x-dev.rector.patch",
107+
"3259009 - PHP Warnings/Notices on Download Page" : "https://git.drupalcode.org/project/coc_forms_auto_export/-/merge_requests/1.diff"
115108
},
116-
"drupal/dynamic_entity_reference": {
117-
"entityQuery reference JOINs should specify target_type (https://www.drupal.org/project/dynamic_entity_reference/issues/3120952#comment-14141038)": "https://www.drupal.org/files/issues/2021-06-22/entityquery-reference-joins-should-specify-target_type-3120952-24.patch"
109+
"drupal/webform_node_element": {
110+
"3290637 - Automated Drupal 10 compatibility fixes": "https://www.drupal.org/files/issues/2023-05-12/webform_node_element_d10-3290637-11.patch"
118111
},
119112
"drupal/webform_encrypt": {
120113
"Ensure data is base64 encoded (https://www.drupal.org/project/webform_encrypt/issues/3399414)": "https://git.drupalcode.org/project/webform_encrypt/-/merge_requests/4.patch",
121114
"PHP Warning if unserialize fails (https://www.drupal.org/project/webform_encrypt/issues/3292305)": "https://www.drupal.org/files/issues/2022-06-23/unserialize-php-notice.patch"
122115
}
116+
},
117+
"drupal-lenient": {
118+
"allowed-list": [
119+
"drupal/coc_forms_auto_export",
120+
"drupal/webform_node_element"
121+
]
123122
}
124123
},
125124
"scripts": {
@@ -150,7 +149,8 @@
150149
"phpstan/extension-installer": true,
151150
"simplesamlphp/composer-module-installer": true,
152151
"vaimo/composer-patches": true,
153-
"zaporylie/composer-drupal-optimizations": true
152+
"zaporylie/composer-drupal-optimizations": true,
153+
"mglaman/composer-drupal-lenient": true
154154
}
155155
}
156156
}

modules/os2forms_attachment/os2forms_attachment.info.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: 'OS2forms Attachment'
22
type: module
33
description: 'Provides OS2forms attachment field'
44
package: OS2Forms
5-
core: 8.x
6-
core_version_requirement: ^8 || ^9
5+
core_version_requirement: ^9 || ^10
76

87
dependencies:
98
- 'drupal:os2forms'

modules/os2forms_attachment/src/Form/AttachmentComponentForm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public function save(array $form, FormStateInterface $form_state) {
133133
public function exists($id) {
134134
$entity = $this->entityTypeManager->getStorage('os2forms_attachment_component')
135135
->getQuery()
136+
->accessCheck(FALSE)
136137
->condition('id', $id)
137138
->execute();
138139
return (bool) $entity;

modules/os2forms_autocomplete/os2forms_autocomplete.info.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: 'OS2forms Autocomplete'
22
type: module
33
description: 'Provides autocomplete field'
44
package: OS2Forms
5-
core: 8.x
6-
core_version_requirement: ^8 || ^9
5+
core_version_requirement: ^9 || ^10
76

87
dependencies:
98
- 'drupal:os2forms'

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_consent/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

modules/os2forms_consent/os2forms_consent.info.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

modules/os2forms_consent/os2forms_consent.module

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)