Skip to content

Commit

Permalink
Merge pull request #207 from UN-OCHA/berliner/HPC-9466
Browse files Browse the repository at this point in the history
berliner/HPC 9466
  • Loading branch information
berliner authored May 15, 2024
2 parents e184ac3 + 30518f5 commit 8052bfd
Show file tree
Hide file tree
Showing 136 changed files with 4,004 additions and 1,723 deletions.
20 changes: 18 additions & 2 deletions .docksal/commands/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# $DOCROOT - name of the docroot folder
# $DOCKER_RUNNING - (string) "true" or "false"

args="$@"
path="/var/www"
phpunit_xml_path="$PROJECT_ROOT/phpunit.xml"

Expand All @@ -27,4 +26,21 @@ if [[ ! -f "$phpunit_path" ]]; then
exit 1
fi

fin exec "php $path/${phpunit_path} -c $path ${args} $path/$DOCROOT/modules/custom"

COVERAGE=false
args=""
while [ "$1" != "" ]; do
case $1 in
--open-coverage ) COVERAGE=true
;;
*) args="$args $1"
;;
esac
shift
done

fin exec "XDEBUG_MODE=coverage $path/${phpunit_path} -c $path ${args} $path/$DOCROOT/modules/custom --coverage-html $path/$DOCROOT/sites/simpletest/test-coverage"

if $COVERAGE; then
fin utils/open-link "http://ghi-site.docksal.site/sites/simpletest/test-coverage/dashboard.html"
fi
3 changes: 3 additions & 0 deletions .docksal/commands/post-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ if $IMPORT_BACKUP; then
fi
fi

# Make sure that the code base is up to date.
composer install

echo "Set maintenance mode to on"
drush sset system.maintenance_mode 1 -y

Expand Down
2 changes: 2 additions & 0 deletions .docksal/docksal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- HID_CLIENT_SECRET
- GRAPHQL_KEY
- COMPOSER_MEMORY_LIMIT=-1
- XDEBUG_ENABLED=1
- XDEBUG_MODE=off

browser:
hostname: browser
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@
"drupal/core-recommended": "^10",
"drupal/csp": "^1.16",
"drupal/ctools": "^4.0",
"drupal/custom_field": "^2.0@RC",
"drupal/custom_field": "^3",
"drupal/diff": "^1.1",
"drupal/double_field": "^4.0",
"drupal/editor_advanced_link": "^2.0",
"drupal/entity_browser": "^2.9",
"drupal/entity_browser_table": "^1.4",
"drupal/entity_usage": "^2.0@beta",
"drupal/field_config_cardinality": "^3.0",
"drupal/field_group": "^3.4",
"drupal/gin": "^3.0@RC",
"drupal/google_tag": "^1.4",
Expand Down
97 changes: 86 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions composer.patches.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"patches": {
"drupal/core": {
"https://www.drupal.org/project/drupal/issues/2544110": "./patches/2544110-2024-02-15.patch",
"Issue #2544110: XSS attribute filtering is inconsistent and strips valid attributes": "./patches/2544110-2024-02-15.patch",
"Issue #2329253: Allow the ChangedItem to skip updating the entity's changed timestamp when synchronizing (f.e. when migrating)": "https://www.drupal.org/files/issues/2024-04-18/2329253-127-10.2.5.patch",
"Issue #3392572: strnatcasecmp(): Passing null to parameter #2 in LayoutPluginManager": "https://www.drupal.org/files/issues/2023-10-25/drupal-strnatcasecmp_string_only-3392572-10.patch",
"Issue #3413079: Cannot read properties of null (reading 'nodeType') on node.page.body": "https://www.drupal.org/files/issues/2024-01-08/3413079-9.patch",
"Issue #3274635: [upstream] Use CKEditor 5's native <ol type> and <ul type> UX": "https://www.drupal.org/files/issues/2024-03-20/ckeditor5_custom_patch_file.patch",
Expand All @@ -25,14 +26,18 @@
"drupal/gin": {
"Issue #3342513: Ajax behaviour on entity edit form action buttons can break": "https://www.drupal.org/files/issues/2024-02-02/3342513-entity-edit-form-update-ajax-ids-12.patch"
},
"drupal/layout_paragraphs": {
"Issue #3265794: Modal form actions broken if subform has validation errors or certain AJAX callbacks": "https://git.drupalcode.org/project/layout_paragraphs/-/commit/9e6ce29756e7a44d1644f77a9606d3b598f67b5d.patch",
"Issue #3442062: Make selector less greedy, only look at the form actions": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/160.patch"
},
"drupal/maintenance200": {
"Issue #3288424: Automated Drupal 10 compatibility fixes": "./patches/maintenance200-drupal-10-compatibility.patch"
},
"drupal/paragraphs_viewmode": {
"Issue #3345123: entityViewModeAlter throws an exception in php 8.2": "https://www.drupal.org/files/issues/2023-03-01/paragraphs_viewmode-remove-context-parameter-3345123-2.patch"
},
"drupal/user_expire": {
"Allow the notification email to be customised": "https://git.drupalcode.org/project/user_expire/-/merge_requests/5.patch",
"Issue #2836514: Disable or customize expiration email": "https://git.drupalcode.org/project/user_expire/-/merge_requests/5.patch",
"Issue #2855005: Reset expiration when user is reactivated": "https://www.drupal.org/files/issues/2022-11-22/2855005-13.patch"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,98 @@ dependencies:
- field.field.paragraph.achievement_list.field_text
- paragraphs.paragraphs_type.achievement_list
module:
- field_group
- paragraphs
- text
third_party_settings:
field_group:
group_tabs:
children:
- group_achievements
- group_caption
label: Tabs
region: content
parent_name: ''
weight: 0
format_type: tabs
format_settings:
classes: ''
show_empty_fields: false
id: ''
direction: horizontal
width_breakpoint: 640
group_achievements:
children:
- field_achievements
label: Achievements
region: content
parent_name: group_tabs
weight: 6
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: open
description: ''
required_fields: true
group_caption:
children:
- field_text
label: Caption
region: content
parent_name: group_tabs
weight: 7
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
id: paragraph.achievement_list.default
targetEntityType: paragraph
bundle: achievement_list
mode: default
content:
field_achievements:
type: entity_reference_paragraphs
weight: 0
type: paragraphs
weight: 1
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: ''
default_paragraph_type: achievement
features:
add_above: '0'
collapse_edit_all: collapse_edit_all
convert: '0'
duplicate: duplicate
third_party_settings: { }
field_text:
type: text_textarea
weight: 1
weight: 2
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 2
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
translation:
weight: 3
weight: 4
region: content
settings: { }
third_party_settings: { }
Expand Down
Loading

0 comments on commit 8052bfd

Please sign in to comment.