Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into YSP-559-update-npm-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dblanken-yale committed Aug 20, 2024
2 parents 6299e8a + 3637f71 commit 1af22bb
Show file tree
Hide file tree
Showing 165 changed files with 6,599 additions and 199 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_deploy_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build, deploy and test
on:
pull_request:
pull_request_target:
branches-ignore:
- master
defaults:
Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Set bash_env env var
run: echo BASH_ENV=${RUNNER_TEMP}/bash_env.txt >> $GITHUB_ENV
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Cache composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -137,6 +139,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
fetch-depth: 0

# Workaround for https://github.com/actions/runner/issues/2033
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From f046b109bdaa308f3063980026c0b63227469012 Mon Sep 17 00:00:00 2001
From: David Blankenship <[email protected]>
Date: Mon, 29 Jul 2024 11:15:16 -0400
Subject: [PATCH] apply saved

---
.../layout_builder/src/Form/ConfigureBlockFormBase.php | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php b/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php
index 8dd6333269..16b0a8cd70 100644
--- a/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php
+++ b/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php
@@ -365,7 +365,15 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
$block_content = $form['settings']['block_form']['#block'];
$block_content->setReusable();
$block_content->setInfo($block_info);
- $block_content->save();
+ $saved = $block_content->save();
+
+ // If it didn't save, it's probably because we're using the same cloned
+ // item somewhere else with different revisions. So, we'll create a new
+ // block_content item to make sure it's fresh and won't interfere.
+ if (!$saved) {
+ $block_content = $block_content->createDuplicate();
+ $block_content->save();
+ }

$block_label_display = $form_state->getValue('settings')['label_display'];
$this->block = $this->blockManager->createInstance('block_content:' . $block_content->uuid(), [
--
2.45.2

13 changes: 7 additions & 6 deletions web/profiles/custom/yalesites_profile/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"drupal/menu_breadcrumb": "2.0.0-alpha0",
"drupal/menu_item_extras": "3.0.2",
"drupal/metatag": "2.0.0",
"drupal/migrate_plus": "6.0.1",
"drupal/migrate_plus": "6.0.2",
"drupal/migrate_tools": "6.0.2",
"drupal/moderation_sidebar": "1.7",
"drupal/multiple_fields_remove_button": "2.2",
Expand All @@ -96,7 +96,7 @@
"drupal/selective_better_exposed_filters": "3.0.2",
"drupal/simple_sitemap": "4.1.6",
"drupal/single_content_sync": "1.4.4",
"drupal/smart_date": "4.0.3",
"drupal/smart_date": "4.1.4",
"drupal/twig_tweak": "3.2.1",
"drupal/typogrify": "1.2",
"drupal/upgrade_status": "4.0.0",
Expand All @@ -105,8 +105,8 @@
"jjj/chosen": "2.2.1",
"laminas/laminas-escaper": "2.12",
"northernco/ckeditor5-anchor-drupal": "0.4.0",
"yalesites-org/ai_engine": "1.1.4",
"yalesites-org/atomic": "1.31.0",
"yalesites-org/ai_engine": "1.2.3",
"yalesites-org/atomic": "1.34.1",
"yalesites-org/yale_cas": "1.0.4"
},
"minimum-stability": "dev",
Expand All @@ -127,6 +127,7 @@
"drupal/core": {
"plural results summary https://www.drupal.org/project/drupal/issues/2888320": "https://www.drupal.org/files/issues/2021-12-15/2888320-78.patch",
"Add reusable option to inline block creation https://www.drupal.org/project/drupal/issues/2999491": "https://git.drupalcode.org/issue/drupal-2999491/-/commit/1330eff91b1234979cf697a66a48e34eb116b441.patch",
"Update \"Add reusable option to inline block creation\" patch with local changes to save block if it didn't save": "patches/layout_builder/1330eff91b1234979cf697a66a48e34eb116b441-1.patch",
"Prevent empty block_content info fields from causing php deprecation notices": "https://www.drupal.org/files/issues/2023-07-21/3340159-empty-block-label_0.patch"
},
"drupal/entity_redirect": {
Expand Down Expand Up @@ -163,8 +164,8 @@
"drupal/layout_builder_browser": {
"Add grouping of reusable blocks (3409153) and add fallback images (3408935) - can't use both patches from d.o would cause merge conflict, combined patch": "patches/layout_builder_browser/3408935-and-3409153-8.patch"
},
"drupal/smart_date": {
"Fix deprecation:": "https://git.drupalcode.org/project/smart_date/-/merge_requests/63.diff"
"drupal/migrate_plus": {
"Allow callback for Url source, and single item Json plugin https://www.drupal.org/project/migrate_plus/issues/3040427": "https://www.drupal.org/files/issues/2023-02-15/3040427-42-migrate_plus_multiple_urls.patch"
},
"drupal/focal_point": {
"Limit image styles on preview page": "https://www.drupal.org/files/issues/2021-08-13/2830678-29.patch"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
uuid: b692caf5-825e-4c39-b6d7-762778de4b6d
langcode: en
status: true
dependencies:
module:
- entity_redirect
third_party_settings:
entity_redirect:
redirect:
add:
active: 0
destination: default
url: ''
external: ''
edit:
active: 0
destination: default
url: ''
external: ''
delete:
active: 0
destination: default
url: ''
external: ''
anonymous:
active: 0
destination: default
url: ''
external: ''
id: inline_message
label: 'In-Line Message'
revision: 0
description: 'Add a non-dismissible message box in your content to draw attention to important information or warnings.'
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ ignored_config_entities:
- 'ys_alert.settings:alert'
- 'ys_core*'
- ys_themes.theme_settings
- 'ys_localist*'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 359832b9-abb4-4a34-830c-3769eca844cc
langcode: en
status: true
dependencies: { }
id: event_date_only
label: 'Event date only'
locked: false
pattern: 'l, F jS, Y'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 7ed4c8d9-69cf-43f3-92bb-dda5ddd9eb96
langcode: en
status: true
dependencies: { }
id: event_time_only
label: 'Event time only'
locked: false
pattern: 'g:i a T'
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
uuid: d9afb06f-c30e-42f6-a92c-4a4978070a45
langcode: en
status: true
dependencies:
config:
- block_content.type.inline_message
- field.field.block_content.inline_message.field_heading
- field.field.block_content.inline_message.field_link
- field.field.block_content.inline_message.field_style_color
- field.field.block_content.inline_message.field_text
module:
- allowed_formats
- hide_revision_field
- linkit
- maxlength
- text
id: block_content.inline_message.default
targetEntityType: block_content
bundle: inline_message
mode: default
content:
field_heading:
type: text_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '1'
hide_guidelines: '1'
maxlength:
maxlength_js: 50
maxlength_js_label: 'Content recommended length set to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: false
field_link:
type: linkit
weight: 6
region: content
settings:
placeholder_url: ''
placeholder_title: ''
linkit_profile: default
linkit_auto_link_text: false
third_party_settings:
maxlength:
maxlength_js: null
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: false
field_style_color:
type: options_select
weight: 3
region: content
settings: { }
third_party_settings: { }
field_text:
type: text_textarea
weight: 4
region: content
settings:
rows: 5
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '1'
hide_guidelines: '1'
maxlength:
maxlength_js: 500
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: true
info:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
revision_log:
type: hide_revision_field_log_widget
weight: 80
region: content
settings:
rows: 5
placeholder: ''
show: true
default: ''
permission_based: false
allow_user_settings: true
third_party_settings: { }
hidden: { }
Loading

0 comments on commit 1af22bb

Please sign in to comment.