Skip to content

Commit

Permalink
9.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Sep 17, 2024
1 parent e0d5f75 commit ab34c48
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 22 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Stanford Profile Helper

9.7.1
--------------------------------------------------------------------------------
_Release Date: 2024-09-17_

- Fixed site information cron job for canonical url.

9.7.0
--------------------------------------------------------------------------------
_Release Date: 2024-09-16_
Expand Down
2 changes: 1 addition & 1 deletion modules/jumpstart_ui/jumpstart_ui.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Jumpstart UI'
type: module
description: 'Provides UI Tools for Jumpstart Projects'
package: Stanford
version: 9.7.0
version: 9.7.1
core_version_requirement: ^10.3 || ^11
dependencies:
- components:components
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Basic Page Types'
description: 'Provides support for basic page types in stanford_page nodes'
version: 9.7.0
version: 9.7.1
core_version_requirement: ^10.3 || ^11
type: module
project: Stanford
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Courses Migration Importer'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- stanford_courses:stanford_courses
- migrate_tools:migrate_tools
Expand Down
2 changes: 1 addition & 1 deletion modules/stanford_courses/stanford_courses.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Stanford Courses'
type: module
description: 'Courses content type'
core_version_requirement: ^10.3 || ^11
version: 9.7.0
version: 9.7.1
package: Stanford
dependencies:
- config_pages:config_pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: 'Stanford Date Formats'
description: 'Date and time formats used by Stanford modules and Themes'
type: module
core_version_requirement: ^10.3 || ^11
version: 9.7.0
version: 9.7.1
package: Stanford
2 changes: 1 addition & 1 deletion modules/stanford_decoupled/stanford_decoupled.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'JsonAPI and GraphQL helper for decoupled sites.'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- graphql_compose:graphql_compose_layout_paragraphs
- graphql_compose:graphql_compose_menus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Stanford Events Importer'
core_version_requirement: ^10.3 || ^11
description: 'Migrate importer for stanford events.'
type: module
version: 9.7.0
version: 9.7.1
package: 'Stanford'
dependencies:
- config_pages:config_pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Stanford Events Series'
core_version_requirement: ^10.3 || ^11
description: 'A series is a collection of events.'
type: module
version: 9.7.0
version: 9.7.1
package: 'Stanford'
dependencies:
- stanford_events:stanford_events
Expand Down
2 changes: 1 addition & 1 deletion modules/stanford_events/stanford_events.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Event content type, views, and importer.'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- address:address
- allowed_formats:allowed_formats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Provides Image Styles'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- drupal:image
- drupal:responsive_image
Expand Down
2 changes: 1 addition & 1 deletion modules/stanford_intranet/stanford_intranet.info.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Intranet'
description: 'Locks down access to the entire site if configured.'
version: 9.7.0
version: 9.7.1
core_version_requirement: ^10.3 || ^11
type: module
project: Stanford
Expand Down
2 changes: 1 addition & 1 deletion modules/stanford_news/stanford_news.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Stanford news items and views.'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- allowed_formats:allowed_formats
- auto_entitylabel:auto_entitylabel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Stanford Notifications
description: Display a notification icon to the users when something in the platform has changed.
core_version_requirement: ^10.3 || ^11
type: module
version: 9.7.0
version: 9.7.1
package: Stanford
dependencies:
- drupal:user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Paragraph Card'
description: 'Adds helpers and modifications to the card paragraph type.'
version: 9.7.0
version: 9.7.1
core_version_requirement: ^10.3 || ^11
type: module
project: Stanford
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Migration support for importing of profile information from stanford.edu.'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- 'config_pages:config_pages'
- 'drupal:migrate'
Expand Down
2 changes: 1 addition & 1 deletion modules/stanford_person/stanford_person.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'A person bio and supporting information content type'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- allowed_formats:allowed_formats
- auto_entitylabel:auto_entitylabel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Profile Drush'
description: 'A collection of Drush commands since commands in the profile are not discoverable.'
version: 9.7.0
version: 9.7.1
core_version_requirement: ^10.3 || ^11
type: module
project: Stanford
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Profile Styles'
description: 'A module for theming'
version: 9.7.0
version: 9.7.1
core_version_requirement: ^10.3 || ^11
type: module
project: Stanford
2 changes: 1 addition & 1 deletion modules/stanford_publication/stanford_publication.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: "Stanford Publications Module."
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- ctools:ctools
- drupal:layout_builder
Expand Down
2 changes: 1 addition & 1 deletion modules/stanford_text_editor/stanford_text_editor.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: 'Stanford Text Editor'
description: 'Input formats and WYSIWYG settings'
type: module
core_version_requirement: ^10.3 || ^11
version: 9.7.0
version: 9.7.1
package: Stanford
2 changes: 1 addition & 1 deletion stanford_profile_helper.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Stanford Profile Helper Module.'
core_version_requirement: ^10.3 || ^11
package: Stanford
version: 9.7.0
version: 9.7.1
dependencies:
- admin_toolbar:admin_toolbar
- admin_toolbar:admin_toolbar_tools
Expand Down
4 changes: 3 additions & 1 deletion stanford_profile_helper.module
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ function stanford_profile_helper_cron() {
/** @var \Drupal\config_pages\ConfigPagesLoaderServiceInterface $config_pages */
$config_pages = \Drupal::service('config_pages.loader');

$canonical_url = $config_pages->getValue('stanford_basic_site_settings', 'su_site_url', 0, 'value');
$canonical_url = $config_pages->getValue('stanford_basic_site_settings', 'su_site_url', 0, 'uri');
$owners = $config_pages->getValue('stanford_basic_site_settings', 'su_site_owner_contact', [], 'value');
$site_managers = $config_pages->getValue('stanford_basic_site_settings', 'su_site_tech_contact', [], 'value');
$ally = $config_pages->getValue('stanford_basic_site_settings', 'su_site_a11y_contact', [], 'value');
$org_ids = $config_pages->getValue('stanford_basic_site_settings', 'su_site_org', [], 'target_id');
$renewal_date = $config_pages->getValue('stanford_basic_site_settings', 'su_site_renewal_due', 0, 'value');
$site_type = $config_pages->getValue('stanford_basic_site_settings', 'su_site_type', 0, 'value');

$orgs = \Drupal::entityTypeManager()
->getStorage('taxonomy_term')
Expand All @@ -106,6 +107,7 @@ function stanford_profile_helper_cron() {
'siteManagers' => $site_managers ?: [],
'accessibility' => $ally ?: [],
'organizations' => array_values($orgs) ?: [],
'siteType' => $site_type,
'renewalDate' => $renewal_date,
];
$uri = 'private://stanford';
Expand Down

0 comments on commit ab34c48

Please sign in to comment.