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

OEL-2115: Update to PHP 8.1 #209

Merged
merged 27 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
385e8e3
OEL-2115: Drop lower dependencies tests, tests targeted core versions.
brummbar Feb 23, 2023
c2f3d88
OEL-2115: Raise dependencies and drop the ones added for lower depend…
brummbar Feb 23, 2023
834a030
OEL-2115: Develop on 8.1 by default.
brummbar Feb 23, 2023
78cc3ac
OEL-2115: Add missing dependencies.
brummbar Feb 23, 2023
6adc690
OEL-2115: Replace deprecated assertObjectNotHasAttribute().
drishu Mar 6, 2023
9e63e79
OEL-2115: Bump up oebt version.
drishu Mar 16, 2023
5575cd8
OEL-2115: Bump up oe_multilingual.
drishu Mar 22, 2023
4907a53
OEL-2115: Replace deprecated module_load_include.
drishu Mar 29, 2023
149c2d4
OEL-2115: Fix permission issue.
drishu Mar 29, 2023
f4b0e2a
OEL-2115: Adapt multilingual block test.
drishu Mar 30, 2023
9227f06
OEL-2267: Add new budget fields to config.
drishu Mar 22, 2023
9e452fa
OEL-2267: Add budget pseudo field.
drishu Mar 24, 2023
fddbeb1
OEL-2267: Add eu contribution pseudo field.
drishu Mar 24, 2023
a4e80ac
OEL-2267: Use new pseudo fields in project contributions section.
drishu Mar 24, 2023
1b37f37
OEL-2267: Add update path for the new budget decimal fields.
drishu Mar 24, 2023
630e9ed
OEL-2267: Remove new fields from banner and teaser displays.
drishu Mar 24, 2023
34170dd
OEL-2267: Move post_update into correct folder.
drishu Mar 25, 2023
2d22585
OEL-2267: Use config importer to sync teaser and banner displays.
drishu Mar 25, 2023
be3e818
OEL-2267: Add missing dependency.
drishu Mar 28, 2023
54fe190
OEL-2267: Update tests with new budget fields.
drishu Mar 28, 2023
a4fa206
OEL-2267: Test with values float fields couldn't handle.
drishu Apr 11, 2023
680cc83
OEL-2267: Implement base class for the budget fields.
drishu Apr 12, 2023
335dd69
OEL-2267: Merge redundant code.
drishu Apr 12, 2023
a551b6d
OEL-2267: Ignore outdated typed_link patch.
drishu Apr 12, 2023
38ee135
OEL-2267: Improve BudgetExtraFieldBase method names.
drishu Apr 17, 2023
63558fd
OEL-2115: Drop drupal-extension for drupal-dev.
drishu Apr 21, 2023
f1e5918
OEL-2115: Replace property_exists with attr().
drishu Apr 21, 2023
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
41 changes: 12 additions & 29 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,14 @@ pipeline:
- npm install --unsafe-perm
- NODE_ENV=production npm run production

composer-install-highest:
group: post-prepare
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
volumes:
- /cache:/cache
commands:
- composer self-update --2
- composer install --ansi --no-progress
when:
matrix:
COMPOSER_BOUNDARY: highest

composer-update-lowest:
group: post-prepare
composer-install:
group: prepare
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
volumes:
- /cache:/cache
- /cache/${DRONE_REPO_NAME}:/cache
commands:
- composer self-update --2
- composer update --prefer-lowest --prefer-stable --ansi --no-progress
when:
event:
exclude: tag
matrix:
COMPOSER_BOUNDARY: lowest
- composer require drupal/core:~${CORE_VERSION} drupal/core-composer-scaffold:~${CORE_VERSION} --update-with-all-dependencies --ansi --no-progress --no-interaction

site-install:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
Expand Down Expand Up @@ -112,8 +95,8 @@ pipeline:
when:
event: tag
matrix:
COMPOSER_BOUNDARY: highest
PHP_VERSION: 7.4
CORE_VERSION: "9.4.0"
PHP_VERSION: "8.0"

github-release:
image: registry.fpfis.eu/drone-plugins/github-release
Expand All @@ -124,13 +107,13 @@ pipeline:
when:
event: tag
matrix:
COMPOSER_BOUNDARY: highest
PHP_VERSION: 7.4
CORE_VERSION: "9.4.0"
PHP_VERSION: "8.0"

matrix:
COMPOSER_BOUNDARY:
- lowest
- highest
CORE_VERSION:
- 9.4.0
- 9.5.0
PHP_VERSION:
- 7.4
- 8.0
- 8.1
43 changes: 18 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,43 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.4",
"php": ">=8.0",
"cweagans/composer-patches": "^1.7",
"drupal/core": "^9.3",
"drupal/core": "^9.4",
"drupal/daterange_compact": "^2.0",
"drupal/twig_field_value": "^2.0",
"openeuropa/composer-artifacts": "^1.0.0-alpha1",
"openeuropa/oe_bootstrap_theme": "^1.1.0"
"openeuropa/oe_bootstrap_theme": "^1.3.0"
},
"require-dev": {
"composer/installers": "^1.11",
"drupal/better_exposed_filters": "^5.0",
"drupal/composite_reference": "^2.1",
"drupal/config_devel": "~1.2",
"drupal/core-composer-scaffold": "^9.3",
"drupal/core-dev": "^9.3",
"drupal/ctools": "^3.7",
"drupal/core-composer-scaffold": "^9.4",
"drupal/core-dev": "^9.4",
"drupal/description_list_field": "^1.0@alpha",
"drupal/drupal-extension": "~4.1",
"drupal/entity_reference_revisions": "^1.9",
"drupal/extra_field": "^2.1",
"drupal/facets_form": "1.0.0-alpha3",
"drupal/field_group": "^3.2",
"drupal/inline_entity_form": "^1.0-rc12",
"drupal/search_api": "^1.21",
"drupal/search_api_autocomplete": "^1.5",
"drupal/token": "^1.10",
"drupal/typed_link": "^2.0",
"drush/drush": "^10.3",
"easyrdf/easyrdf": "1.0.0 as 0.9.1",
"league/csv": "^9.1",
"nikic/php-parser": "^4.13",
"drupal/typed_link": "^2.0.1",
"drush/drush": "^11.1",
"mikey179/vfsstream": "^1.6.10",
"openeuropa/code-review": "^2.0",
"openeuropa/oe_authentication": "^1.8",
"openeuropa/oe_contact_forms": "~1.5",
"openeuropa/oe_content": "^3.0.0-alpha4",
"openeuropa/oe_content_extra": "^1.0.0-beta2",
"openeuropa/oe_corporate_blocks": "^4.8",
"openeuropa/oe_list_pages": "^0.20",
"openeuropa/oe_multilingual": "^1.11",
"openeuropa/oe_multilingual": "^1.14",
"openeuropa/oe_paragraphs": "^1.17",
"openeuropa/oe_starter_content": "^1.0.0",
"openeuropa/task-runner-drupal-project-symlink": "^1.0-beta5",
"phpspec/prophecy-phpunit": "^2",
"symfony/dom-crawler": "^4.4.12"
"openeuropa/task-runner-drupal-project-symlink": "^1.0-beta6",
"phpspec/prophecy-phpunit": "^2"
},
"scripts": {
"post-install-cmd": "./vendor/bin/run drupal:site-setup",
Expand Down Expand Up @@ -92,18 +85,18 @@
"https://www.drupal.org/project/entity_reference_revisions/issues/2937835": "https://www.drupal.org/files/issues/2021-03-26/entity_reference_revisions-field_formatter_label-2937835-36.patch"
}
},
"patches-ignore": {
"openeuropa/oe_content": {
"drupal/typed_link": {
"Outdated": "https://www.drupal.org/files/issues/2022-02-09/typed_link_constraints-3263477-2.patch"
}
}
},
"drupal-scaffold": {
"locations": {
"web-root": "./build"
}
},
"_readme": [
"Explicit minimum version requirement of drupal/ctools module due to D9.3 compatibility.",
"Explicit requirement for league/csv due to PHP 8.0 compatibility",
"Explicit minimum version requirement for symfony/dom-crawler due to its lower versions using the deprecated function libxml_disable_entity_loader() in PHP8.",
"Explicit requirement of token module due to PHP 8 compatbility.",
"Explicit minimum version requirement of drupal/inline_entity_form due to failing patch in lower versions. To be removed once oe_media required the same minimum version."
],
"installer-paths": {
"build/core": [
"type:drupal-core"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
web:
image: fpfis/httpd-php-dev:8.0
image: fpfis/httpd-php-dev:8.1
working_dir: /var/www/html
ports:
- 8080:8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ dependencies:
- field.field.node.oe_project.oe_project_contact
- field.field.node.oe_project.oe_project_coordinators
- field.field.node.oe_project.oe_project_dates
- field.field.node.oe_project.oe_project_eu_budget
- field.field.node.oe_project.oe_project_eu_contrib
- field.field.node.oe_project.oe_project_funding_programme
- field.field.node.oe_project.oe_project_locations
- field.field.node.oe_project.oe_project_participants
Expand Down Expand Up @@ -65,13 +67,13 @@ third_party_settings:
label: Coordinators
parent_name: group_project_details
region: content
weight: 3
weight: 11
format_type: oe_whitelabel_helper_description_list_pattern
format_settings: { }
group_budget:
children:
- oe_project_budget
- oe_project_budget_eu
- extra_field_oe_whitelabel_extra_project_project_budget
- extra_field_oe_whitelabel_extra_project_eu_contrib
label: Budget
parent_name: ''
region: content
Expand All @@ -96,14 +98,24 @@ third_party_settings:
label: Website
parent_name: group_project_details
region: content
weight: 2
weight: 10
format_type: oe_whitelabel_helper_description_list_pattern
format_settings: { }
id: node.oe_project.full
targetEntityType: node
bundle: oe_project
mode: full
content:
extra_field_oe_whitelabel_extra_project_eu_contrib:
settings: { }
third_party_settings: { }
weight: 6
region: content
extra_field_oe_whitelabel_extra_project_project_budget:
settings: { }
third_party_settings: { }
weight: 5
region: content
oe_cx_achievements_and_milestone:
type: text_default
label: hidden
Expand Down Expand Up @@ -134,28 +146,6 @@ content:
third_party_settings: { }
weight: 4
region: content
oe_project_budget:
type: number_decimal
label: hidden
settings:
thousand_separator: .
decimal_separator: ','
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 2
region: content
oe_project_budget_eu:
type: number_decimal
label: hidden
settings:
thousand_separator: .
decimal_separator: ','
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 3
region: content
oe_project_coordinators:
type: entity_reference_revisions_label
label: hidden
Expand Down Expand Up @@ -209,7 +199,7 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
weight: 5
weight: 6
region: content
oe_summary:
type: text_default
Expand All @@ -230,10 +220,15 @@ hidden:
oe_departments: true
oe_documents: true
oe_featured_media: true
oe_project_budget: true
oe_project_budget_eu: true
oe_project_calls: true
oe_project_contact: true
oe_project_eu_budget: true
oe_project_eu_contrib: true
oe_project_locations: true
oe_project_result_files: true
oe_project_results: true
oe_subject: true
oe_teaser: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ dependencies:
- field.field.node.oe_project.oe_project_contact
- field.field.node.oe_project.oe_project_coordinators
- field.field.node.oe_project.oe_project_dates
- field.field.node.oe_project.oe_project_eu_budget
- field.field.node.oe_project.oe_project_eu_contrib
- field.field.node.oe_project.oe_project_funding_programme
- field.field.node.oe_project.oe_project_locations
- field.field.node.oe_project.oe_project_participants
Expand Down Expand Up @@ -55,6 +57,8 @@ content:
region: content
hidden:
body: true
extra_field_oe_whitelabel_extra_project_eu_contrib: true
extra_field_oe_whitelabel_extra_project_project_budget: true
langcode: true
links: true
oe_content_content_owner: true
Expand All @@ -75,6 +79,8 @@ hidden:
oe_project_contact: true
oe_project_coordinators: true
oe_project_dates: true
oe_project_eu_budget: true
oe_project_eu_contrib: true
oe_project_funding_programme: true
oe_project_locations: true
oe_project_participants: true
Expand All @@ -83,3 +89,4 @@ hidden:
oe_project_website: true
oe_reference_code: true
oe_summary: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ dependencies:
- field.field.node.oe_project.oe_project_contact
- field.field.node.oe_project.oe_project_coordinators
- field.field.node.oe_project.oe_project_dates
- field.field.node.oe_project.oe_project_eu_budget
- field.field.node.oe_project.oe_project_eu_contrib
- field.field.node.oe_project.oe_project_funding_programme
- field.field.node.oe_project.oe_project_locations
- field.field.node.oe_project.oe_project_participants
Expand All @@ -44,7 +46,7 @@ third_party_settings:
label: Stakeholders
parent_name: ''
region: hidden
weight: 30
weight: 35
format_type: html_element
format_settings:
classes: ''
Expand Down Expand Up @@ -96,6 +98,8 @@ content:
region: content
hidden:
body: true
extra_field_oe_whitelabel_extra_project_eu_contrib: true
extra_field_oe_whitelabel_extra_project_project_budget: true
langcode: true
links: true
oe_content_content_owner: true
Expand All @@ -114,6 +118,8 @@ hidden:
oe_project_calls: true
oe_project_contact: true
oe_project_coordinators: true
oe_project_eu_budget: true
oe_project_eu_contrib: true
oe_project_funding_programme: true
oe_project_locations: true
oe_project_participants: true
Expand All @@ -122,3 +128,4 @@ hidden:
oe_project_website: true
oe_reference_code: true
oe_summary: true
search_api_excerpt: true
Loading