Skip to content

Commit 3fe462d

Browse files
authored
Dependency updates, shield module, lando updates (#32)
* Dependency updates, shield module, lando updates * updated to latest profile * updated lock file * updated to tagged profile
1 parent c1a70aa commit 3fe462d

File tree

10 files changed

+2748
-1981
lines changed

10 files changed

+2748
-1981
lines changed

.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
# notes
168168
*-notes.txt
169+
170+
# logs
171+
logs/

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@
8383
"drupal/node_revision_delete": "2.0.x-dev",
8484
"drupal/oembed_lazyload": "^2.0",
8585
"drupal/paranoia": "^1.9",
86-
"drupal/trash": "^3.0",
86+
"drupal/trash": "3.0.21",
8787
"drush/drush": "13.3.3 as 12.5.3",
8888
"su-sws/stanford_profile": "11.6.2",
89-
"su-sws/vpge_profile": "11.4.1"
89+
"su-sws/vpge_profile": "11.4.2"
9090
},
9191
"require-dev": {
9292
"acquia/blt-drupal-test": "^1.0",
@@ -106,6 +106,7 @@
106106
"sort-packages": true,
107107
"discard-changes": true,
108108
"allow-plugins": true,
109+
"process-timeout": 0,
109110
"preferred-install": {
110111
"su-sws/vpge_profile": "source"
111112
}
@@ -176,9 +177,6 @@
176177
"drupal/core": {
177178
"https://www.drupal.org/node/2833734": "https://www.drupal.org/files/issues/2020-11-29/2833734-allow-attachment-pager-42.patch"
178179
},
179-
"drupal/next": {
180-
"Fix CORS": "https://sws-devguide.stanford.edu/sites/g/files/sbiybj17516/files/next-cors.patch"
181-
},
182180
"drupal/paranoia": {
183181
"https://stanfordits.atlassian.net/browse/D8CORE-1351": "patches/contrib/paranoia.patch"
184182
},

composer.lock

Lines changed: 2589 additions & 1948 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
_core:
2+
default_config_hash: FLJZME3II5fjmMSrdEvJHp95ZJf8V_X0jbX0VdVU1BU
3+
shield_enable: true
4+
credential_provider: shield
5+
credentials:
6+
shield:
7+
user: sws
8+
pass: sws
9+
allow_cli: true
10+
debug_header: false
11+
unset_basic_auth_headers: true
12+
print: Authenticate
13+
method: 0
14+
paths: /graphql
15+
allowlist: ''
16+
http_method_allowlist:
17+
post: post
18+
domains: ''
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
_core:
2+
default_config_hash: FLJZME3II5fjmMSrdEvJHp95ZJf8V_X0jbX0VdVU1BU
3+
shield_enable: true
4+
credential_provider: shield
5+
credentials:
6+
shield:
7+
user: sws
8+
pass: sws
9+
allow_cli: true
10+
debug_header: false
11+
unset_basic_auth_headers: true
12+
print: Authenticate
13+
method: 0
14+
paths: /graphql
15+
allowlist: ''
16+
http_method_allowlist:
17+
post: post
18+
domains: ''

drush/drush.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,26 @@ drush:
66
config:
77
# Load a drush.yml configuration file from the current working directory.
88
- docroot/sites/default/local.drush.yml
9+
- ../docroot/sites/default/local.drush.yml
910
# Allow local global config overrides.
1011
- local.drush.yml
12+
- drush/local.drush.yml
1113
include:
1214
- '${env.home}/.drush'
1315
- /usr/share/drush/commands
16+
command:
17+
sws:
18+
options:
19+
git-url:
20+
- stanfordvpge@svn-23450.prod.hosting.acquia.com:stanfordvpge.git
21+
alias-dir: drush/sites
22+
app-id: eed9a501-bc72-4e69-8d48-82e211f15f5a
23+
sync-ssh: stanfordvpge.test@stanfordvpgetest.ssh.prod.acquia-sites.com
24+
sync-files:
25+
- /mnt/gfs/stanfordvpge.test/nobackup/simplesamlphp/
26+
- /mnt/gfs/stanfordvpge.test/secrets.settings.php
27+
- /mnt/gfs/stanfordvpge.test/nobackup/oauth/
28+
multisites:
29+
# - anes
30+
- default
31+
- diversityworks

lando/example.lando.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: vpge-gryphon
22
recipe: drupal10
33
config:
44
webroot: docroot
5-
php: '8.2'
5+
php: '8.3'
66
xdebug: false
77
proxy:
88
appserver:
@@ -17,13 +17,10 @@ services:
1717
- docker-php-ext-enable pcov
1818
build:
1919
- composer install
20-
- composer init-lando
2120
volumes:
2221
- ~/.acquia:/var/www/.acquia
23-
- ~/.ssh:/var/www/.ssh
2422
ssl: true
2523
config:
26-
php: lando/php.ini
2724
# Uncomment the below for behat testing
2825
overrides:
2926
environment:
@@ -37,37 +34,32 @@ services:
3734
}
3835
}
3936
database:
40-
type: mysql:5.7
37+
type: mysql:8.0
4138
portforward: 33061
4239
creds:
4340
user: drupal
4441
password: drupal
4542
database: vpge
43+
overrides:
44+
volumes:
45+
- ./lando/mysql8.cnf:/opt/bitnami/mysql/conf/my_custom.cnf
4646
adminer:
4747
type: compose
4848
services:
4949
image: dehy/adminer
5050
command: /bin/s6-svscan /etc/services.d
5151
portforward: true
5252
diversityworks:
53-
type: mysql:5.7
53+
type: mysql:8.0
5454
portforward: 33062
5555
creds:
5656
user: drupal
5757
password: drupal
5858
database: diversityworks
59-
# Uncomment the below for behat testing
60-
overrides:
61-
environment:
62-
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--headless"]}}, "http://chromedriver:4444"]'
63-
BEHAT_PARAMS: >-
64-
{
65-
"extensions" : {
66-
"Behat\\MinkExtension" : {
67-
"base_url" : "http://diversityworks.lndo.site/"
68-
}
69-
}
70-
}
59+
overrides:
60+
volumes:
61+
- ./lando/mysql8.cnf:/opt/bitnami/mysql/conf/my_custom.cnf
62+
7163
# Uncomment the below for behat testing.
7264
chromedriver:
7365
type: lando
@@ -83,9 +75,6 @@ services:
8375
ports:
8476
- 4444
8577
tooling:
86-
blt:
87-
service: appserver
88-
cmd: /app/vendor/bin/blt
8978
git:
9079
service: appserver
9180
phpcs:

lando/mysql8.cnf

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[mysqld]
2+
#
3+
# * Basic Settings
4+
#
5+
default-storage-engine = innodb
6+
7+
#
8+
# * Fine Tuning
9+
#
10+
key_buffer_size = 384M
11+
max_allowed_packet = 32M
12+
thread_stack = 400K
13+
thread_cache_size = 8
14+
read_rnd_buffer_size = 8M
15+
myisam_sort_buffer_size = 64M
16+
table_open_cache = 512
17+
sort_buffer_size = 2M
18+
read_buffer_size = 2M
19+
20+
#
21+
# * Logging and Replication
22+
#
23+
# MySQL 8.0 uses binlog_expire_logs_seconds instead of expire_logs_days
24+
binlog_expire_logs_seconds = 864000
25+
max_binlog_size = 100M
26+
27+
#
28+
# * InnoDB
29+
#
30+
innodb_log_file_size = 101M
31+
innodb_flush_log_at_trx_commit = 0
32+
innodb_buffer_pool_size = 384M
33+
innodb_log_buffer_size = 4M
34+
innodb_file_per_table = 1
35+
innodb_open_files = 256
36+
innodb_io_capacity = 512
37+
innodb_flush_method = O_DIRECT
38+
innodb_thread_concurrency = 8
39+
innodb_lock_wait_timeout = 121
40+
41+
# MySQL 8.0 Authentication
42+
default_authentication_plugin = mysql_native_password
43+
44+
[mysqldump]
45+
quick
46+
quote-names
47+
max_allowed_packet = 32M
48+
49+
[mysql]
50+
51+
[isamchk]
52+
key_buffer_size = 384M
53+
sort_buffer_size = 256M
54+
read_buffer = 2M
55+
write_buffer = 2M

lando/setup_lando.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
3+
# Three-fingered Claw Technique
4+
yell() { echo "$0: $*" >&2; }
5+
die() { yell "$*"; exit 111; }
6+
try() { "$@" || die "cannot $*"; }
7+
8+
yell "Setting up your site using lando."
9+
10+
try cp ./lando/example.lando.yml ./.lando.yml
11+
try lando start
12+
try lando composer install --prefer-source
13+
14+
# copy the local versions of the necessary files.
15+
try cp ./docroot/sites/settings/default.local.settings.php ./docroot/sites/settings/local.settings.php
16+
try cp ./docroot/sites/default/default.local.drush.yml ./docroot/sites/default/local.drush.yml
17+
try cp ./docroot/sites/default/settings/default.local.settings.php ./docroot/sites/default/settings/local.settings.php
18+
19+
try lando drush settings
20+
try lando drush sws:keys
21+
try lando drush drupal:install --site=default
22+
# Uncomment the next line to install with content from the DEV environment.
23+
try lando composer sync-soe-dev
24+
try lando drush deploy
25+
26+
yell "Your site is good to go."
27+
try lando info --format table --filter service=appserver

patches/contrib/ui_patterns_views-preview.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ index 5b54c2b..00b8871 100644
6363
+++ b/modules/ui_patterns_views/ui_patterns_views.module
6464
@@ -6,6 +6,9 @@
6565
*/
66-
66+
6767
use Drupal\ui_patterns\Element\PatternContext;
6868
+use Drupal\Component\Utility\Xss;
6969
+use Drupal\Core\Template\Attribute;
7070
+use Drupal\Component\Utility\Html;
71-
71+
7272
/**
7373
* Implements hook_theme().
7474
@@ -19,6 +22,9 @@ function ui_patterns_views_theme() {
@@ -80,14 +80,14 @@ index 5b54c2b..00b8871 100644
8080
+ ],
8181
];
8282
}
83-
83+
8484
@@ -39,41 +45,122 @@ function template_preprocess_pattern_views_row(array &$variables) {
8585
$options = $variables['options'];
8686
$row = $variables['row'];
87-
87+
8888
- foreach ($options['pattern_mapping'] as $mapping) {
8989
- $field_name = $mapping['source'];
90-
- if (!isset($view->field[$field_name])) {
90+
- if (empty($view->field[$field_name])) {
9191
- continue;
9292
- }
9393
- $field = $view->field[$field_name];
@@ -196,7 +196,7 @@ index 5b54c2b..00b8871 100644
196196
+ ];
197197
}
198198
}
199-
199+
200200
- $variables['pattern'] = [];
201201
- if ($view->preview && !isset($view->element['#embed'])) {
202202
- \Drupal::messenger()->addWarning(t('Pattern Views row plugin does not support preview.'));
@@ -234,5 +234,5 @@ index 5b54c2b..00b8871 100644
234234
+ $variables['pattern']['#context']['view'] = $view;
235235
+ $variables['pattern']['#context']['row'] = $row;
236236
}
237-
237+
238238
/**

0 commit comments

Comments
 (0)