Skip to content

Commit 1fa5ca6

Browse files
authored
4.14.0
4.14.0
2 parents 1055781 + 83f1771 commit 1fa5ca6

File tree

182 files changed

+28224
-4812
lines changed

Some content is hidden

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

182 files changed

+28224
-4812
lines changed

.github/pull_request_template.md

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# NOT READY FOR REVIEW
2-
- (Edit the above to reflect status)
3-
41
# Summary
52
- TL;DR - what's this PR for?
3+
- What type of change is it? (Bug fix, new feature, documentation, maintenance, etc.,)
64

75
# Review By (Date)
86
- When does this need to be reviewed by?
97

108
# Criticality
11-
- How critical is this PR on a 1-10 scale? See [Severity Assessment](https://stanfordits.atlassian.net/browse/D8CORE-1705).
9+
- How critical is this PR on a 1-10 scale?
1210
- E.g., it affects one site, or every site and product?
1311

1412
# Review Tasks
@@ -19,40 +17,8 @@
1917
2. Navigate to...
2018
3. Verify...
2119

22-
## Front End Validation
23-
- [ ] Is the markup using the appropriate semantic tags and passes HTML validation?
24-
- [ ] Cross-browser testing has been performed?
25-
- [ ] Automated accessibility scans performed?
26-
- [ ] Manual accessibility tests performed?
27-
- [ ] Design is approved by @ user?
28-
29-
## Backend / Functional Validation
30-
### Code
31-
- [ ] Are the naming conventions following our standards?
32-
- [ ] Does the code have sufficient inline comments?
33-
- [ ] Is there anything in this code that would be hidden or hard to discover through the UI?
34-
- [ ] Are there any [code smells](https://blog.codinghorror.com/code-smells/)?
35-
- [ ] Are tests provided? eg (unit, behat, or codeception)
36-
37-
### Code security
38-
- [ ] Are all [forms properly sanitized](https://www.drupal.org/docs/8/security/drupal-8-sanitizing-output)?
39-
- [ ] Any obvious [security flaws or new areas for attack](https://www.drupal.org/docs/8/security)?
40-
41-
## General
42-
- [ ] Is there anything included in this PR that is not related to the problem it is trying to solve?
43-
- [ ] Is the approach to the problem appropriate?
44-
45-
# Affected Projects or Products
46-
- Does this PR impact any particular projects, products, or modules?
47-
48-
# Associated Issues and/or People
49-
- JIRA ticket(s)
50-
- Other PRs
51-
- Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
52-
- Anyone who should be notified? (`@mention` them here)
20+
# Related Issues/PR's
21+
- Jira Ticket(s) / PR's
5322

54-
# Resources
55-
- [AMP Tool](https://stanford.levelaccess.net/index.php)
56-
- [Accessibility Manual Test Script](https://docs.google.com/document/d/1ZXJ9RIUNXsS674ow9j3qJ2g1OAkCjmqMXl0Gs8XHEPQ/edit?usp=sharing)
57-
- [HTML Validator](https://validator.w3.org/)
58-
- [Browserstack](https://live.browserstack.com/dashboard) and link to [Browserstack Credentials](https://asconfluence.stanford.edu/confluence/display/SWS/External+Account+Credentials)
23+
# Additional Context
24+
- Any extra information for reviewers.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# .github/workflows/dependency-updates.yml
2+
# Automate dependency updates.
3+
# Runs composer update, database updates, exports configurations, generates a
4+
# composer.lock diff, and creates a pull request.
5+
name: Automated Dependency Updates
6+
7+
on:
8+
schedule:
9+
- cron: '0 14 * * 5'
10+
workflow_dispatch:
11+
12+
jobs:
13+
update-dependencies:
14+
name: Update Composer Dependencies
15+
runs-on: ubuntu-latest
16+
container:
17+
image: pookmish/drupal8ci:php8.3
18+
options: '--network-alias drupal8ci'
19+
env:
20+
DRUPAL_DATABASE_NAME: drupal
21+
DRUPAL_DATABASE_USERNAME: drupal
22+
DRUPAL_DATABASE_PASSWORD: drupal
23+
DRUPAL_DATABASE_HOST: mysql
24+
services:
25+
mysql:
26+
image: mysql:5.7
27+
env:
28+
MYSQL_DATABASE: drupal
29+
MYSQL_USER: drupal
30+
MYSQL_PASSWORD: drupal
31+
MYSQL_ROOT_PASSWORD: drupal
32+
ports:
33+
- 33306:3306
34+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
- name: Set git safe directory
41+
run: git config --system --add safe.directory '*'
42+
- name: Set date variable
43+
id: date
44+
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
45+
- name: Restore Cache
46+
uses: actions/cache@v4
47+
with:
48+
path: |
49+
vendor
50+
docroot/core
51+
docroot/libraries
52+
docroot/modules/contrib
53+
key: 4.0-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
54+
- name: Install dependencies
55+
run: composer install -n
56+
- name: Install Drupal site
57+
run: |
58+
mysql -h mysql -P 3306 -u root -pdrupal -e 'SET GLOBAL max_allowed_packet=67108864;'
59+
rm -rf /var/www/html
60+
ln -snf $GITHUB_WORKSPACE /var/www/html
61+
mkdir -p docroot/sites/default/files
62+
chmod -R 777 docroot/sites/default/files/
63+
blt drupal:install -n
64+
- name: Import configuration
65+
run: drush cim -y
66+
- name: Update Composer dependencies
67+
run: composer update -W -n
68+
- name: Update database
69+
run: drush updatedb -y
70+
- name: Export configuration
71+
run: drush config:export -y
72+
- name: Generate composer.lock diff (markdown)
73+
id: lockdiff
74+
run: |
75+
vendor/bin/composer-lock-diff --md --from origin/${{ github.event.repository.default_branch }}:composer.lock --to composer.lock > composer-lock-diff.md
76+
echo "diff<<EOF" >> $GITHUB_OUTPUT
77+
cat composer-lock-diff.md >> $GITHUB_OUTPUT
78+
echo "EOF" >> $GITHUB_OUTPUT
79+
rm composer-lock-diff.md
80+
- name: Get outdated direct dependencies
81+
id: outdated
82+
run: |
83+
echo 'outdated<<EOF' >> $GITHUB_OUTPUT
84+
echo '```' >> $GITHUB_OUTPUT
85+
composer outdated --direct >> $GITHUB_OUTPUT
86+
echo '```' >> $GITHUB_OUTPUT
87+
echo 'EOF' >> $GITHUB_OUTPUT
88+
- name: Create Pull Request
89+
uses: peter-evans/create-pull-request@v7
90+
with:
91+
token: ${{ secrets.GITHUB_TOKEN }}
92+
commit-message: "Automated Dependency Updates ${{ steps.date.outputs.date }}"
93+
branch: automated/dependency-update-${{ steps.date.outputs.date }}-${{ github.run_id }}
94+
base: ${{ github.event.repository.default_branch }}
95+
title: "Automated Dependency Updates ${{ steps.date.outputs.date }}"
96+
body: |
97+
This PR was created automatically by a scheduled GitHub Actions workflow to update Composer dependencies and export Drupal configuration.
98+
99+
## Composer Dependency Changes
100+
${{ steps.lockdiff.outputs.diff }}
101+
102+
## Outdated Direct Composer Dependencies
103+
${{ steps.outdated.outputs.outdated }}
104+
assignees: ${{ secrets.PR_ASSIGNEE || 'joegl' }}

.github/workflows/deploy_branch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
name: Deploy current branch
55

66
# Allow this workflow to be called from other workflows.
7-
on: [workflow_call]
7+
on:
8+
workflow_call:
9+
inputs:
10+
branch:
11+
required: true
12+
type: string
813

914
jobs:
1015
deploy:
@@ -14,6 +19,8 @@ jobs:
1419
image: pookmish/drupal8ci:php8.3
1520
steps:
1621
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ inputs.branch || '' }}
1724
- name: Restore Cache
1825
uses: actions/cache@v4
1926
with:

.github/workflows/dev_branch_actions.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
# Deploy branch after tests pass by calling deploy workflow.
1717
deploy:
1818
uses: ./.github/workflows/deploy_branch.yml
19+
with:
20+
branch: ${{ github.ref_name }}
1921
# Allow secrets to be used in the called workflow.
2022
secrets: inherit
2123
needs: [tests]

.github/workflows/pull_request_actions.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ jobs:
1313
uses: ./.github/workflows/tests.yml
1414
# Allow secrets to be used in the called workflow.
1515
secrets: inherit
16+
# Deploy branch after tests pass by calling deploy workflow.
17+
deploy:
18+
uses: ./.github/workflows/deploy_branch.yml
19+
with:
20+
branch: ${{ github.head_ref }}
21+
# Allow secrets to be used in the called workflow.
22+
secrets: inherit
23+
needs: [tests]

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
docroot/modules/contrib
4141
key: 4.0-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
4242
- name: Run Unit Tests
43-
# env:
44-
# CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
4543
run: |
4644
git config --system --add safe.directory '*' &&
4745
composer install -n &&
@@ -92,6 +90,8 @@ jobs:
9290
docroot/libraries
9391
docroot/modules/contrib
9492
key: 4.0-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
93+
- name: Increase MySQL max_allowed_packet
94+
run: mysql -h mysql -P 3306 -u root -pdrupal -e 'SET GLOBAL max_allowed_packet=67108864;'
9595
- name: Install Site
9696
run: |
9797
git config --system --add safe.directory '*' &&

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,6 @@ docroot/sites/*/settings/settings.ddev.php
166166

167167
# Ignore sdssrooms site specific modules
168168
docroot/sites/sdssrooms/modules/*
169+
170+
#History
171+
.history/

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,44 @@ All notable changes to this project will be documented in this file.
77
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
88
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10+
## [4.14.0] - 2025-09-22
11+
12+
### Added
13+
a7eebac Sustainability Homepage 2025 (#662)
14+
e5bb9ae SDSS-1562: Point ssip.stanford.edu to sustainpathways site (#669)
15+
f19acbe Add branch reference to dev branch actions (#664)
16+
e0c2146 Add auto-deploy to pull request workflow (#663)
17+
6274cfe SDSS-1550: SDSS Person Title Override Field Formatter Implementation (#639)
18+
255c9bf SDSS-1549: Added and refactored header tests (#650)
19+
286c51a Add automated dependency updates workflow (#646)
20+
21+
### Changed
22+
b554eeb SDSS-1565: Pull request template changes (#667)
23+
292f89d SDSS-0000: Update room reservation module to 8.1.22 (#657)
24+
255c9bf SDSS-1549: Added and refactored header tests (#650)
25+
0d30f24 SDSS-1549: Refactor header and logo sizes (#649)
26+
27+
### Deprecated
28+
None.
29+
30+
### Removed
31+
None.
32+
33+
### Fixed
34+
None.
35+
36+
### Security
37+
None.
38+
39+
### Maintenance
40+
e0c2146 Add auto-deploy to pull request workflow (#663)
41+
61bd3b3 Automated Dependency Updates 20250905 (#656)
42+
6aacf30 Automated Dependency Updates 20250829 (#652)
43+
2e513f3 Automated Dependency Updates 20250822 (#648)
44+
286c51a Add automated dependency updates workflow (#646)
45+
6100f99 SDSS-1552: Routine maintenance (#645)
46+
47+
1048
## [4.13.1] - 2025-09-09
1149

1250
### Added

blt/blt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ multisites:
8585
tests:
8686
reports:
8787
localDir: '${repo.root}/artifacts'
88-
coveragePass: 90
88+
coveragePass: 80
8989
phpunit:
9090
-
9191
path: '${docroot}'

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"citation-style-language/styles-distribution": "1.0.0",
7575
"composer/installers": "^1.9",
7676
"cweagans/composer-patches": "^1.6",
77-
"drupal/acquia_connector": "dev-4.x",
77+
"drupal/acquia_connector": "^4.0",
7878
"drupal/acquia_purge": "^1.1",
7979
"drupal/address": "^2.0",
8080
"drupal/admin_toolbar": "^3.1",
@@ -162,7 +162,7 @@
162162
"drupal/printable": "^3.0",
163163
"drupal/rabbit_hole": "^1.0@beta",
164164
"drupal/real_aes": "^2.4",
165-
"drupal/redirect": "^1.0-beta1",
165+
"drupal/redirect": "1.11",
166166
"drupal/responsive_tables_filter": "^2.0",
167167
"drupal/role_delegation": "^1.0@beta",
168168
"drupal/scheduler": "^2.0",
@@ -286,6 +286,7 @@
286286
}
287287
},
288288
"enable-patching": true,
289+
"composer-exit-on-patch-failure": true,
289290
"patches": {
290291
"drupal/colorbox": {
291292
"https://www.drupal.org/project/colorbox/issues/3278470": "patches/contrib/colorbox-mr-14.patch"

0 commit comments

Comments
 (0)