Skip to content

Commit

Permalink
4.3.1
Browse files Browse the repository at this point in the history
4.3.1
  • Loading branch information
joegl authored Apr 11, 2024
2 parents 5680535 + 397a852 commit b55e1f5
Show file tree
Hide file tree
Showing 52 changed files with 1,076 additions and 49 deletions.
13 changes: 1 addition & 12 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: sdss
type: drupal10
docroot: docroot
php_version: "8.1"
php_version: "8.2"
webserver_type: nginx-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames:
- woods-water
- sustainability-accelerator
additional_fqdns: []
database:
type: mariadb
Expand All @@ -20,14 +17,6 @@ composer_version: "2"
web_environment: []
disable_settings_management: true
nodejs_version: "16"
hooks:
post-start:
- exec: drush uli

post-import-db:
- exec: drush cr
- exec: drush cim -y
- exec: drush uli

# Key features of ddev's config.yaml:

Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# ACE SDSSGryphon

4.3.1
--------------------------------------------------------------------------------
_Release Date: 2024-04-11_

- SDSS-869 | @jdwjdwjdw | Adjust news list card (#402)
- c1b2a0f1 SDSS-1161: fixing the spacer error (#400)
- f1028b26 SDSS-359: number of people on initial load of view page (#398)
- 01e53da9 DEVOPS-000 - PHP 8.2 and removinghooks (#397)
- d6613a5f SDSS-1245: decoupled menu labels (#396)
- 8a4a83fb SDSS-637: Publication shared tags list and Teasers (#393)
- a0a47bf8 SDSS-1244: fine tuning a11y fix (#395)
- b4c941e9 SDSS-869 | @jdwjdwjdw | Add News List Card paragraph type (#391)
- d517da97 SDSS-1072: Added role report blt command (#394)
- 17185222 SDSS-1230: added arialabeledby (#392)
- e868dd48 SDSS-1238: Add 'view r25 room calendars' user perm to sdssroom config (#390)
- 8458973e SDSS-1228: lazy load (#388)
- 6c83a172 SDSS-1036: Fix authoring font sizes (#387)
- 51e88a93 SDSS-1237: fix to max-width (#386)
- ad932da8 SDSS-1142: Uninstalled views_rss module (#385)


4.3.0
--------------------------------------------------------------------------------
_Release Date: 2024-03-07_
Expand Down
47 changes: 47 additions & 0 deletions blt/src/Blt/Plugin/Commands/GryphonCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,51 @@ public function enableModules($environment, $modules) {
$commands->run();
}

/**
* Generate a list of emails for the given role on all sites.
*
* @command sdss:role-report
*/
public function roleReport($role)
{
$information = [];
foreach ($this->getConfigValue('multisites') as $site) {
$emails = $this->taskDrush()
->alias("$site.prod")
->drush('sqlq')
->arg('SELECT d.mail FROM users_field_data d INNER JOIN user__roles r ON d.uid = r.entity_id WHERE r.roles_target_id = "' . $role . '" and d.mail NOT LIKE "%localhost%"')
->printOutput(FALSE)
->run()
->getMessage();

$site_url = str_replace('_', '-', str_replace('__', '.', $site));

if (str_contains($site_url, '.')) {
[$first, $last] = explode('.', $site_url);
$site_url = "$first-prod.$last";
} else {
$site_url .= "-prod";
}
if ($emails) {
$emails = array_filter(explode("\n", $emails));
}
if (!$emails) {
continue;
}
foreach ($emails as $email) {
$information[] = [
'site' => $site,
'url' => "https://$site_url.stanford.edu",
'users' => $email,
];
}
}
$out = fopen('php://output', 'w');
fputcsv($out, ['Site', 'Url', 'Emails']);
foreach ($information as $info) {
fputcsv($out, $info);
}
fclose($out);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ adding:
- stanford_earth_r25
permissions:
- 'book r25 rooms'
- 'view r25 room calendars'
removing: { }
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ permissions:
- 'view own su_site_url'
- 'view policy log'
- 'view printer friendly versions'
- 'view r25 room calendars'
- 'view sdss entity'
- 'view su_metatags'
- 'view su_policy_auto_prefix'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,18 +254,18 @@ content:
override_labels: true
label_singular: 'Media Contact'
label_plural: 'Media Contacts'
auto_open: true
allow_new: true
allow_existing: true
allow_edit: true
match_operator: CONTAINS
allow_duplicate: false
hide_fieldset: false
hide_title: false
collapsible: false
collapsed: false
revision: false
removed_reference: keep
auto_open: true
allow_edit: true
hide_fieldset: false
hide_title: false
config_labels_button: _none
labels: { }
add_existing_widget: autocomplete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ content:
override_labels: true
label_singular: Citation
label_plural: Citation
auto_open: true
allow_new: true
allow_existing: false
allow_edit: true
match_operator: CONTAINS
allow_duplicate: false
hide_fieldset: false
hide_title: false
collapsible: false
collapsed: false
revision: false
removed_reference: optional
auto_open: true
allow_edit: true
hide_fieldset: false
hide_title: false
config_labels_button: _none
labels: { }
add_existing_widget: autocomplete
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
uuid: 37ab1e12-2a5e-4aa8-96e1-f496d83e09fa
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.sdss_news_list_card.su_news_card_button
- field.field.paragraph.sdss_news_list_card.su_news_card_headline
- field.field.paragraph.sdss_news_list_card.su_news_card_links
- paragraphs.paragraphs_type.sdss_news_list_card
module:
- link
id: paragraph.sdss_news_list_card.default
targetEntityType: paragraph
bundle: sdss_news_list_card
mode: default
content:
status:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
su_news_card_button:
type: link_default
weight: 2
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
su_news_card_headline:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
su_news_card_links:
type: entity_reference_autocomplete
weight: 1
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- media.type.image
- responsive_image.styles.card_3_2
module:
- empty_fields
- field_formatter_class
- responsive_image
_core:
Expand All @@ -24,8 +25,12 @@ content:
responsive_image_style: card_3_2
image_link: ''
image_loading:
attribute: eager
third_party_settings: { }
attribute: lazy
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
weight: 0
region: content
hidden:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ third_party_settings:
- 'Content fields'
- 'Custom block types'
- 'Custom blocks'
- Editoria11y
- 'Events Lists (Views)'
- Forms
- Help
Expand All @@ -362,12 +363,12 @@ third_party_settings:
- Printable
- 'Publication (Views)'
- React
- 'SimpleSAMLphp Authentication'
- 'Stanford News'
- 'Stanford Profile Helper'
- 'Stanford SimpleSAML PHP'
- 'Stanford SAML Authentication'
- System
- 'Taxonomy Terms (Views)'
- User
- Views
- core
entity_view_mode_restriction:
Expand Down Expand Up @@ -437,16 +438,17 @@ third_party_settings:
- 'Changelog (Views)'
- 'Chaos Tools'
- 'Config Pages'
- Editoria11y
- Forms
- Help
- 'Lists (Views)'
- 'Policy (Views)'
- Printable
- React
- 'SimpleSAMLphp Authentication'
- 'Stanford Profile Helper'
- 'Stanford SimpleSAML PHP'
- 'Stanford SAML Authentication'
- 'Taxonomy Terms (Views)'
- User
- Views
layout_library:
enable: false
Expand Down
Loading

0 comments on commit b55e1f5

Please sign in to comment.