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

UHF-9488 Drupal 10.2 #671

Merged
merged 29 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8a5653d
Reroll patch for Drupal 10.2
hyrsky Dec 18, 2023
c72fe7a
Replace failing patch
hyrsky Dec 18, 2023
19d7939
Re-rolled drupal-2313309-render-admin-toolbar-with-admin-language.pat…
khalima Dec 18, 2023
bfa3431
Applied the drupal-2313309-render-admin-toolbar-with-admin-language.p…
khalima Dec 18, 2023
ad3b32d
Lock simple_sitemap module to 4.1.7 as the patch for solving this iss…
khalima Dec 18, 2023
bef6ef3
Fixed duplicated key in language.services.yml in drupal-2313309-rende…
khalima Dec 18, 2023
e6ff043
Applied fixed patch.
khalima Dec 18, 2023
e5414e7
Re-rolled drupal-2313309-render-admin-toolbar-with-admin-language.pat…
khalima Dec 18, 2023
7de675f
Applied the drupal-2313309-render-admin-toolbar-with-admin-language.p…
khalima Dec 18, 2023
d81cfab
Re-rolled the drupal-2313309-render-admin-toolbar-with-admin-language…
khalima Dec 18, 2023
3610e44
Applied the drupal-2313309-render-admin-toolbar-with-admin-language.p…
khalima Dec 18, 2023
1c66769
Fixed error pointed out by phpstan.
khalima Dec 18, 2023
1ed0e51
Added media_library and views as a dependency for the helfi_media_chart.
khalima Dec 18, 2023
354bea7
Updated views.view.media_library.yml to match D10.2 updates.
khalima Dec 18, 2023
0af0323
Updated variation cache module as the 1.3 version would break Dynamic…
khalima Dec 18, 2023
479c4e2
UHF-9488: Updated all views and entity view modes based on D10.2 upda…
khalima Dec 19, 2023
36c94fd
UHF-9488: Fixed Menu UI to work with unpublished links, fixed tests
tuutti Dec 21, 2023
918a16a
UHF-9488: Switched 2313309 issue patch to the one from comment #179.
khalima Dec 21, 2023
e079451
UHF-9488: Added background for the admin toolbar link.
khalima Dec 21, 2023
5b9d1b1
UHF-9488: Removed variationcache module as it is in use only in KYMP …
khalima Dec 21, 2023
5c1d9cf
UHF-9488: Merge branch 'main' of https://github.com/City-of-Helsinki/…
khalima Dec 21, 2023
48e310d
UHF-9488: Use UHF-9488_drupal-10.2 branch of drupal-helfi-platform.
khalima Dec 21, 2023
314b05d
UHF-9488: Apply patch from d.org (https://www.drupal.org/project/drup…
khalima Dec 21, 2023
d608e9b
UHF-9488: Added a patch to fix basefield definition translations whic…
khalima Jan 9, 2024
8a80570
UHF-9488: Applied the basefield definition translation issue patch.
khalima Jan 9, 2024
022e1c7
UHF-9488: Reverted patch for basefield definition preferred langcode …
khalima Jan 9, 2024
566b7bd
Revert the helfi_platform branch
khalima Jan 12, 2024
b259502
UHF-9488: Removed stale patch file.
khalima Jan 12, 2024
fd5aa82
UHF-9488: Merge branch 'UHF-9488_drupal-10.2' of https://github.com/C…
khalima Jan 12, 2024
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
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"drupal/scheduler": "^1.3",
"drupal/search_api": "^1.0",
"drupal/select2": "^1.12",
"drupal/simple_sitemap": "^4.1",
"drupal/simple_sitemap": "4.1.7",
"drupal/siteimprove": "^2.0",
"drupal/social_media": "^2.0",
"drupal/stomp": "^2.0",
Expand All @@ -62,7 +62,7 @@
"php": "^8.1"
},
"conflict": {
"drupal/core": "<10.1 || >=10.2",
"drupal/core": "<10.2",
"drupal/ctools": "<3.11 || ^4.0.1",
"drupal/helfi_media_map": "*",
"drupal/simple_sitemap": ">4.1.7",
Expand All @@ -75,12 +75,12 @@
"https://www.drupal.org/project/content_lock/issues/3343964": "https://www.drupal.org/files/issues/2023-05-22/3343964-5.patch"
},
"drupal/core": {
"[#UHF-181] Hide untranslated menu links (https://www.drupal.org/project/drupal/issues/3091246)": "https://www.drupal.org/files/issues/2023-10-02/3091246--allow-menu-tree-manipulators-alter--23.patch",
"[#UHF-181] Hide untranslated menu links (https://www.drupal.org/project/drupal/issues/3091246)": "https://www.drupal.org/files/issues/2023-12-18/3091246--allow-menu-tree-manipulators-alter--24.patch",
"[#UHF-3812] Ajax exposed filters not working for multiple instances of the same Views block placed on one page (https://www.drupal.org/project/drupal/issues/3163299)": "https://www.drupal.org/files/issues/2023-05-07/3163299-104-D10.patch",
"[#UHF-4325] Strip whitespaces from twig debug comments": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/b628bc051d82a1883768364050aa833824bd48c8/patches/drupal_core_strip_debug_mode_whitespaces_10.1.x.patch",
"[#UHF-7008] Core localization file download URL is wrong (https://www.drupal.org/project/drupal/issues/3022876)": "https://git.drupalcode.org/project/drupal/-/commit/40a96136b2dfe4322338508dffa636f6cb407900.patch",
"[#UHF-7008] Add multilingual support for caching basefield definitions (https://www.drupal.org/project/drupal/issues/3114824)": "https://www.drupal.org/files/issues/2020-02-20/3114824_2.patch",
"[#UHF-7008] Admin toolbar and contextual links should always be rendered in the admin language (https://www.drupal.org/project/drupal/issues/2313309)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/a42c905a162c8510348b17cdf60000a0a7f82037/patches/drupal-2313309-render-admin-toolbar-with-admin-language.patch",
"[#UHF-7008] Admin toolbar and contextual links should always be rendered in the admin language (https://www.drupal.org/project/drupal/issues/2313309)": "https://www.drupal.org/files/issues/2023-12-19/2313309-179.patch",
"[#UHF-9388] Process translation config files for custom modules (https://www.drupal.org/i/2845437)": "https://www.drupal.org/files/issues/2023-10-16/2845437-61.patch"
},
"drupal/default_content": {
Expand Down
1 change: 1 addition & 0 deletions helfi_platform_config.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ services:
arguments:
- '@entity_type.manager'
- '@language_manager'
- '@router.admin_context'
tags:
- { name: event_subscriber }

Expand Down
4 changes: 4 additions & 0 deletions modules/hdbt_admin_tools/assets/css/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
[dir="ltr"] .gin--horizontal-toolbar .toolbar .toolbar-bar .toolbar-menu-administration > .toolbar-menu > .menu-item > .toolbar-box > .toolbar-icon:not(.toolbar-handle) {
padding-right: 1em;
}

[dir="ltr"] .gin--horizontal-toolbar .toolbar .toolbar-bar .toolbar-menu-administration > .toolbar-menu > .menu-item > .toolbar-icon.is-active {
background-color: rgba(38,88,168,0.05);
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ settings:
- heading4
- heading5
- heading6
ckeditor5_list:
properties:
reversed: false
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags:
- '<dl>'
Expand All @@ -57,16 +62,13 @@ settings:
- '<h6 id>'
- '<figure tabindex>'
- '<figcaption>'
ckeditor5_list:
reversed: false
startIndex: true
linkit_extension:
linkit_enabled: true
linkit_profile: helfi
helfi_ckeditor_helfi_link:
helfi_link_attributes:
- '<a aria-label class data-design data-hds-icon-start data-is-external data-link-text data-protocol data-selected-icon data-hds-component data-hds-variant id rel role target="_blank" title>'
- '<span aria-hidden class role>'
linkit_extension:
linkit_enabled: true
linkit_profile: helfi
image_upload:
status: false
scheme: public
Expand Down
14 changes: 8 additions & 6 deletions modules/helfi_ckeditor/config/install/editor.editor.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,24 @@ settings:
- '|'
- sourceEditing
plugins:
ckeditor5_list:
properties:
reversed: false
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags:
- '<span role aria-* class>'
- '<ul type>'
- '<ol type>'
- '<a hreflang accesskey id rel target title data-design data-link-text data-selected-icon data-is-external data-protocol>'
ckeditor5_list:
reversed: false
startIndex: true
linkit_extension:
linkit_enabled: true
linkit_profile: helfi
helfi_ckeditor_helfi_link:
helfi_link_attributes:
- '<a aria-label class data-design data-hds-icon-start data-is-external data-link-text data-protocol data-selected-icon data-hds-component data-hds-variant id rel role target="_blank" title>'
- '<span aria-hidden class role>'
linkit_extension:
linkit_enabled: true
linkit_profile: helfi
image_upload:
status: false
scheme: public
Expand Down
78 changes: 39 additions & 39 deletions modules/helfi_ckeditor/config/install/filter.format.full_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,6 @@ name: HTML
format: full_html
weight: 0
filters:
filter_autop:
id: filter_autop
provider: filter
status: true
weight: -46
settings: { }
filter_html:
id: filter_html
provider: filter
status: true
weight: -50
settings:
allowed_html: '<br> <p data-helfi-quote-text> <h2> <h3> <h4> <h5> <h6> <blockquote role aria-* cite class data-helfi-quote> <div role aria-* class> <span role aria-* class dir> <ul type> <ol type start> <figure tabindex> <figcaption> <strong> <em> <s> <sub> <sup> <a href data-entity-type data-entity-uuid data-entity-substitution aria-label class data-design data-hds-icon-start data-is-external data-link-text data-protocol data-selected-icon data-hds-component data-hds-variant rel role target="_blank"> <li> <table> <tr> <td> <th> <thead> <tbody> <tfoot> <caption> <footer data-helfi-quote-author> <cite>'
filter_html_help: true
filter_html_nofollow: false
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: -45
settings: { }
filter_url:
id: filter_url
provider: filter
status: true
weight: -49
settings:
filter_url_length: 120
linkit:
id: linkit
provider: linkit
status: true
weight: -48
settings:
title: true
editor_file_reference:
id: editor_file_reference
provider: editor
Expand All @@ -56,12 +21,27 @@ filters:
status: false
weight: -42
settings: { }
filter_autop:
id: filter_autop
provider: filter
status: true
weight: -46
settings: { }
filter_caption:
id: filter_caption
provider: filter
status: false
weight: -41
settings: { }
filter_html:
id: filter_html
provider: filter
status: true
weight: -50
settings:
allowed_html: '<br> <p data-helfi-quote-text> <h2> <h3> <h4> <h5> <h6> <blockquote role aria-* cite class data-helfi-quote> <div role aria-* class> <span role aria-* class dir> <ul type> <ol type start> <figure tabindex> <figcaption> <strong> <em> <s> <sub> <sup> <a href data-entity-type data-entity-uuid data-entity-substitution aria-label class data-design data-hds-icon-start data-is-external data-link-text data-protocol data-selected-icon data-hds-component data-hds-variant rel role target="_blank"> <li> <table> <tr> <td> <th> <thead> <tbody> <tfoot> <caption> <footer data-helfi-quote-author> <cite>'
filter_html_help: true
filter_html_nofollow: false
filter_html_escape:
id: filter_html_escape
provider: filter
Expand All @@ -74,15 +54,35 @@ filters:
status: false
weight: -40
settings: { }
helfi_link_converter:
id: helfi_link_converter
provider: helfi_api_base
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: -10
weight: -45
settings: { }
filter_image_lazy_load:
id: filter_image_lazy_load
provider: filter
status: true
weight: -42
settings: { }
filter_url:
id: filter_url
provider: filter
status: true
weight: -49
settings:
filter_url_length: 120
helfi_link_converter:
id: helfi_link_converter
provider: helfi_api_base
status: true
weight: -10
settings: { }
linkit:
id: linkit
provider: linkit
status: true
weight: -48
settings:
title: true
36 changes: 18 additions & 18 deletions modules/helfi_ckeditor/config/install/filter.format.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ filters:
allowed_html: '<br> <p> <span role aria-* class lang dir> <ul type> <ol type start> <a hreflang accesskey id rel target title data-design data-link-text data-selected-icon data-is-external data-protocol href data-entity-type data-entity-uuid data-entity-substitution aria-label class data-hds-icon-start data-hds-component data-hds-variant role> <strong> <em> <li>'
filter_html_help: true
filter_html_nofollow: false
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: -40
settings: { }
filter_html_escape:
id: filter_html_escape
provider: filter
Expand All @@ -60,29 +54,35 @@ filters:
status: false
weight: -42
settings: { }
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: -40
settings: { }
filter_image_lazy_load:
id: filter_image_lazy_load
provider: filter
status: true
weight: -47
settings: { }
filter_url:
id: filter_url
provider: filter
status: true
weight: -46
settings:
filter_url_length: 120
linkit:
id: linkit
provider: linkit
status: true
weight: -44
settings:
title: true
helfi_link_converter:
id: helfi_link_converter
provider: helfi_api_base
status: true
weight: -10
settings: { }
filter_image_lazy_load:
id: filter_image_lazy_load
provider: filter
linkit:
id: linkit
provider: linkit
status: true
weight: -47
settings: { }
weight: -44
settings:
title: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ name: 'Plain text'
format: plain_text
weight: 10
filters:
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
filter_html_escape:
id: filter_html_escape
provider: filter
Expand All @@ -20,12 +26,6 @@ filters:
weight: 0
settings:
filter_url_length: 120
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
helfi_link_converter:
id: helfi_link_converter
provider: helfi_api_base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Defines CookieConsentController class.
*/
class CookieConsentController extends ControllerBase {
final class CookieConsentController extends ControllerBase {

/**
* Constructs a new instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ dependencies:
- media
id: media.image
label: Image
description: ''
targetEntityType: media
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,13 @@ display:
cache_metadata:
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'url.query_args:sort_by'
- user
- user.permissions
- 'languages:language_content'
tags: { }
page:
id: page
Expand Down Expand Up @@ -1116,7 +1116,6 @@ display:
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
Expand Down Expand Up @@ -1334,7 +1333,7 @@ display:
image_link: ''
image_style: media_library
image_loading:
attribute: lazy
attribute: eager
name:
id: name
table: media_field_data
Expand Down Expand Up @@ -1374,7 +1373,7 @@ display:
custom_date_format: ''
timezone: ''
tooltip:
date_format: ''
date_format: long
custom_date_format: ''
time_diff:
enabled: false
Expand Down Expand Up @@ -1407,7 +1406,6 @@ display:
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ dependencies:
- media
id: media.image_content_area
label: 'Image (content area)'
description: ''
targetEntityType: media
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ dependencies:
- node
id: node.card_teaser
label: 'Card Teaser'
description: ''
targetEntityType: node
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ dependencies:
- node
id: node.medium_teaser
label: 'Medium Teaser'
description: ''
targetEntityType: node
cache: true
Loading
Loading