Skip to content

Commit

Permalink
Merge branch '11.8.1-release' of github.com:SU-HSDO/suhumsci into shs…
Browse files Browse the repository at this point in the history
…-6067-fix-button-class-in-view-incorrect-link-color-for-ext-links
  • Loading branch information
cienvaras committed Feb 21, 2025
2 parents 77ab66c + 699777c commit dad452f
Show file tree
Hide file tree
Showing 21 changed files with 2,485 additions and 85 deletions.
1 change: 1 addition & 0 deletions blt/blt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ multisites:
- lowe
- mathematics
- mcs
- medicalhumanities
- memorylab
- middleeast
- morrisoninstitute
Expand Down
170 changes: 90 additions & 80 deletions composer.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions config/default/content_access.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ content_access_roles_gids:
stanford_student: 8
author: 9
intranet_viewer: 10
search_indexer: 11
content_access_node_type:
hs_private_page: 'a:3:{s:4:"view";a:4:{i:0;s:11:"contributor";i:1;s:12:"site_manager";i:2;s:15:"intranet_viewer";i:3;s:13:"administrator";}s:8:"per_node";i:1;s:8:"view_own";a:4:{i:0;s:11:"contributor";i:1;s:12:"site_manager";i:2;s:15:"intranet_viewer";i:3;s:13:"administrator";}}'
1 change: 1 addition & 0 deletions config/default/samlauth.authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ map_users_roles:
contributor: contributor
intranet_viewer: intranet_viewer
reviewer: reviewer
search_indexer: search_indexer
site_manager: site_manager
stanford_faculty: stanford_faculty
stanford_staff: stanford_staff
Expand Down
7 changes: 6 additions & 1 deletion config/default/search_api.index.default_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ field_settings:
type: text
configuration:
roles:
- administrator
- search_indexer
view_mode:
'entity:node':
':default': ''
hs_basic_page: search_index
hs_course: search_index
hs_event: search_index
Expand Down Expand Up @@ -85,15 +86,18 @@ processor_settings:
weights:
preprocess_index: -6
preprocess_query: -50
custom_value: { }
entity_status:
weights:
preprocess_index: -10
entity_type: { }
highlight:
weights:
postprocess_query: 0
prefix: '<strong>'
suffix: '</strong>'
excerpt: true
excerpt_always: false
excerpt_length: 256
exclude_fields:
- title
Expand Down Expand Up @@ -208,6 +212,7 @@ tracker_settings:
indexing_order: fifo
options:
cron_limit: 50
delete_on_fail: true
index_directly: true
track_changes_in_references: true
server: default_server
1 change: 1 addition & 0 deletions config/default/single_content_sync.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ allowed_entity_types:
- hs_event_series
- hs_news
- hs_person
- hs_private_page
- hs_publications
- hs_research
taxonomy_term: { }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: a072ab97-6e9d-44e3-9a62-1491ece56e1d
langcode: en
status: true
dependencies:
config:
- user.role.search_indexer
module:
- user
id: user_add_role_action.search_indexer
label: 'Add the Search Indexer role to the selected user(s)'
type: user
plugin: user_add_role_action
configuration:
rid: search_indexer
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: e0b245c3-ccfb-454d-bba8-b15b6d8facfc
langcode: en
status: true
dependencies:
config:
- user.role.search_indexer
module:
- user
id: user_remove_role_action.search_indexer
label: 'Remove the Search Indexer role from the selected user(s)'
type: user
plugin: user_remove_role_action
configuration:
rid: search_indexer
12 changes: 12 additions & 0 deletions config/default/user.role.search_indexer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: 7d1dba54-48c7-4ad0-801a-044bd5ac146f
langcode: en
status: true
dependencies:
module:
- system
id: search_indexer
label: 'Search Indexer'
weight: 1
is_admin: null
permissions:
- 'access content'
2 changes: 1 addition & 1 deletion docroot/modules/humsci/hs_layouts/hs_layouts.module
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function _hs_layouts_make_title_the_link(&$variables) {

if (!empty($variables['title'])) {
$title = is_array($variables['title']) ? $renderer->renderInIsolation($variables['title']) : $variables['title'];
$variables['title'] = $title ?? ['#markup' => trim(strip_tags($title))];
$variables['title'] = $title ? ['#markup' => trim(strip_tags($title))] : NULL;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Stanford HumSci'
type: profile
description: 'Installation profile for HumSci Drupal'
version: 11.7.1
version: 11.8.1
core_version_requirement: ^10.3 || ^11
themes:
- material_admin
Expand Down
12 changes: 12 additions & 0 deletions docroot/sites/medicalhumanities/blt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
project:
machine_name: medicalhumanities
human_name: medicalhumanities
local:
protocol: http
hostname: local.medicalhumanities.com
drush:
aliases:
local: medicalhumanities.local
remote: medicalhumanities.prod
drupal:
db: { }
2 changes: 2 additions & 0 deletions docroot/sites/medicalhumanities/default.local.drush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
options:
uri: '${project.local.uri}'
239 changes: 239 additions & 0 deletions docroot/sites/medicalhumanities/default.services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
parameters:
# Toggles the super user access policy. If your website has at least one user
# with the Administrator role, it is advised to set this to false. This allows
# you to make user 1 a regular user, strengthening the security of your site.
security.enable_super_user: true
session.storage.options:
# Default ini options for sessions.
#
# Some distributions of Linux (most notably Debian) ship their PHP
# installations with garbage collection (gc) disabled. Since Drupal depends
# on PHP's garbage collection for clearing sessions, ensure that garbage
# collection occurs by using the most common settings.
# @default 1
gc_probability: 1
# @default 100
gc_divisor: 100
#
# Set session lifetime (in seconds), i.e. the grace period for session
# data. Sessions are deleted by the session garbage collector after one
# session lifetime has elapsed since the user's last visit. When a session
# is deleted, authenticated users are logged out, and the contents of the
# user's session is discarded.
# @default 200000
gc_maxlifetime: 200000
#
# Set session cookie lifetime (in seconds), i.e. the time from the session
# is created to the cookie expires, i.e. when the browser is expected to
# discard the cookie. The value 0 means "until the browser is closed".
# @default 2000000
cookie_lifetime: 2000000
#
# Drupal automatically generates a unique session cookie name based on the
# full domain name used to access the site. This mechanism is sufficient
# for most use-cases, including multi-site deployments. However, if it is
# desired that a session can be reused across different subdomains, the
# cookie domain needs to be set to the shared base domain. Doing so assures
# that users remain logged in as they cross between various subdomains.
# To maximize compatibility and normalize the behavior across user agents,
# the cookie domain should start with a dot.
#
# @default none
# cookie_domain: '.example.com'
#
# Set the SameSite cookie attribute: 'None', 'Lax', or 'Strict'. If set,
# this value will override the server value. See
# https://www.php.net/manual/en/session.security.ini.php for more
# information.
# @default no value
cookie_samesite: Lax
#
# Set the session ID string length. The length can be between 22 to 256. The
# PHP recommended value is 48. See
# https://www.php.net/manual/session.security.ini.php for more information.
# This value should be kept in sync with
# \Drupal\Core\Session\SessionConfiguration::__construct()
# @default 48
sid_length: 48
#
# Set the number of bits in encoded session ID character. The possible
# values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-",
# ","). The PHP recommended value is 6. See
# https://www.php.net/manual/session.security.ini.php for more information.
# This value should be kept in sync with
# \Drupal\Core\Session\SessionConfiguration::__construct()
# @default 6
sid_bits_per_character: 6
# By default, Drupal generates a session cookie name based on the full
# domain name. Set the name_suffix to a short random string to ensure this
# session cookie name is unique on different installations on the same
# domain and path (for example, when migrating from Drupal 7).
name_suffix: ''
twig.config:
# Twig debugging:
#
# When debugging is enabled:
# - The markup of each Twig template is surrounded by HTML comments that
# contain theming information, such as template file name suggestions.
# - Note that this debugging markup will cause automated tests that directly
# check rendered HTML to fail. When running automated tests, 'debug'
# should be set to FALSE.
# - The dump() function can be used in Twig templates to output information
# about template variables.
# - Twig templates are automatically recompiled whenever the source code
# changes (see auto_reload below).
#
# For more information about debugging Twig templates, see
# https://www.drupal.org/node/1906392.
#
# Enabling Twig debugging is not recommended in production environments.
# @default false
debug: false
# Twig auto-reload:
#
# Automatically recompile Twig templates whenever the source code changes.
# If you don't provide a value for auto_reload, it will be determined
# based on the value of debug.
#
# Enabling auto-reload is not recommended in production environments.
# @default null
auto_reload: null
# Twig cache:
#
# By default, Twig templates will be compiled and stored in the filesystem
# to increase performance. Disabling the Twig cache will recompile the
# templates from source each time they are used. In most cases the
# auto_reload setting above should be enabled rather than disabling the
# Twig cache.
#
# Disabling the Twig cache is not recommended in production environments.
# @default true
cache: true
# File extensions:
#
# List of file extensions the Twig system is allowed to load via the
# twig.loader.filesystem service. Files with other extensions will not be
# loaded unless they are added here. For example, to allow a file named
# 'example.partial' to be loaded, add 'partial' to this list. To load files
# with no extension, add an empty string '' to the list.
#
# @default ['css', 'html', 'js', 'svg', 'twig']
allowed_file_extensions:
- css
- html
- js
- svg
- twig
renderer.config:
# Renderer required cache contexts:
#
# The Renderer will automatically associate these cache contexts with every
# render array, hence varying every render array by these cache contexts.
#
# @default ['languages:language_interface', 'theme', 'user.permissions']
required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
# Renderer automatic placeholdering conditions:
#
# Drupal allows portions of the page to be automatically deferred when
# rendering to improve cache performance. That is especially helpful for
# cache contexts that vary widely, such as the active user. On some sites
# those may be different, however, such as sites with only a handful of
# users. If you know what the high-cardinality cache contexts are for your
# site, specify those here. If you're not sure, the defaults are fairly safe
# in general.
#
# For more information about rendering optimizations see
# https://www.drupal.org/developing/api/8/render/arrays/cacheability#optimizing
auto_placeholder_conditions:
# Max-age at or below which caching is not considered worthwhile.
#
# Disable by setting to -1.
#
# @default 0
max-age: 0
# Cache contexts with a high cardinality.
#
# Disable by setting to [].
#
# @default ['session', 'user']
contexts: ['session', 'user']
# Tags with a high invalidation frequency.
#
# Disable by setting to [].
#
# @default []
tags: []
# Renderer cache debug:
#
# Allows cache debugging output for each rendered element.
#
# Enabling render cache debugging is not recommended in production
# environments.
# @default false
debug: false
# Cacheability debugging:
#
# Responses with cacheability metadata (CacheableResponseInterface instances)
# get X-Drupal-Cache-Tags, X-Drupal-Cache-Contexts and X-Drupal-Cache-Max-Age
# headers.
#
# For more information about debugging cacheable responses, see
# https://www.drupal.org/developing/api/8/response/cacheable-response-interface
#
# Enabling cacheability debugging is not recommended in production
# environments.
# @default false
http.response.debug_cacheability_headers: false
factory.keyvalue: {}
# Default key/value storage service to use.
# @default keyvalue.database
# default: keyvalue.database
# Collection-specific overrides.
# state: keyvalue.database
factory.keyvalue.expirable: {}
# Default key/value expirable storage service to use.
# @default keyvalue.database.expirable
# default: keyvalue.database.expirable
# Allowed protocols for URL generation.
filter_protocols:
- http
- https
- ftp
- news
- nntp
- tel
- telnet
- mailto
- irc
- ssh
- sftp
- webcal
- rtsp

# Configure Cross-Site HTTP requests (CORS).
# Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
# for more information about the topic in general.
# Note: By default the configuration is disabled.
cors.config:
enabled: false
# Specify allowed headers, like 'x-allowed-header'.
allowedHeaders: []
# Specify allowed request methods, specify ['*'] to allow all possible ones.
allowedMethods: []
# Configure requests allowed from specific origins. Do not include trailing
# slashes with URLs.
allowedOrigins: ['*']
# Configure requests allowed from origins, matching against regex patterns.
allowedOriginsPatterns: []
# Sets the Access-Control-Expose-Headers header.
exposedHeaders: false
# Sets the Access-Control-Max-Age header.
maxAge: false
# Sets the Access-Control-Allow-Credentials header.
supportsCredentials: false

queue.config:
# The maximum number of seconds to wait if a queue is temporarily suspended.
# This is not applicable when a queue is suspended but does not specify
# how long to wait before attempting to resume.
suspendMaximumWait: 30
Loading

0 comments on commit dad452f

Please sign in to comment.