Skip to content

Commit

Permalink
9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Oct 17, 2022
2 parents 3847374 + 593c137 commit f354cff
Show file tree
Hide file tree
Showing 23 changed files with 52 additions and 21 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.0.1
--------------------------------------------------------------------------------
_Release Date: 2022-10-17_

- Update hook to delete imported courses.

9.0.0
--------------------------------------------------------------------------------
_Release Date: 2022-10-17_
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.0.0
version: 9.0.1
core_version_requirement: ^8.8 || ^9
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.0.0
version: 9.0.1
core_version_requirement: '^8.8 || ^9'
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: ^8.8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.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: ^8.8 || ^9
version: 9.0.0
version: 9.0.1
package: Stanford
dependencies:
- config_pages:config_pages
Expand Down
25 changes: 25 additions & 0 deletions modules/stanford_courses/stanford_courses.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

/**
* @file
* Stanford_courses.install.
*/

/**
* Drop migrate_map_stanford_courses table and recreate upon next import.
*/
function stanford_courses_update_9001() {
$database = \Drupal::database();
if ($database->schema()->tableExists('migrate_map_stanford_courses')) {
// Remove previously imported courses and let them be recreated.
$query = $database->query("SELECT `destid1` FROM {migrate_map_stanford_courses}");
$result = $query->fetchAll();
foreach ($result as $obsolete_node_id) {
$node = \Drupal::entityTypeManager()->getStorage('node')->load($obsolete_node_id->destid1);
if ($node) {
$node->delete();
}
}
$database->schema()->dropTable('migrate_map_stanford_courses');
}
}
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: ^8 || ^9
version: 9.0.0
version: 9.0.1
package: Stanford
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Stanford Events Importer'
core_version_requirement: ^8.8 || ^9
description: 'Migrate importer for stanford events.'
type: module
version: 9.0.0
version: 9.0.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: ^8.8 || ^9
description: 'A series is a collection of events.'
type: module
version: 9.0.0
version: 9.0.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: ^8.8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.1
dependencies:
- address:address
- allowed_formats:allowed_formats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: Provides an admin page to view a preview of all image styles after
core: 8.x
core_version_requirement: ^8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.1
dependencies:
- stanford_image_styles:stanford_image_styles
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: ^8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.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.0.0
version: 9.0.1
core_version_requirement: '^8.8 || ^9'
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: ^8.8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.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: ^8.8 || ^9
type: module
version: 9.0.0
version: 9.0.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.0.0
version: 9.0.1
core_version_requirement: '^8 || ^9'
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: '^8.8 || ^9'
package: Stanford
version: 9.0.0
version: 9.0.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: ^8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.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.0.0
version: 9.0.1
core_version_requirement: '^8 || ^9'
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.0.0
version: 9.0.1
core_version_requirement: '^8 || ^9'
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: ^8.8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.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 @@ -11,5 +11,5 @@ dependencies:
- drupal:filter
- linkit:linkit
- stanford_media:stanford_media
version: 9.0.0
version: 9.0.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: ^8.8 || ^9
package: Stanford
version: 9.0.0
version: 9.0.1
dependencies:
- admin_toolbar:admin_toolbar
- admin_toolbar:admin_toolbar_tools
Expand Down

0 comments on commit f354cff

Please sign in to comment.