Skip to content

Commit

Permalink
9.0.4
Browse files Browse the repository at this point in the history
- Moved news rss to separate page
- HSD8-1074 Unlock csv uploader forms
- Added term condition module
- Sparkbox Sprint 40
- chore: remove lines missed in rebase
- Disable gradient hero slider on legacy themes and rows (#882)
- Disable color band on legacy post update (#881)
- Chore: Enable gradient hero slider config by default (#880)
- Fix: Gradient hero right align bug (#879)
- fix(STN-759): update gradient hero link field to linkit (#878)
- STN-621  Color band component (#876)
- STN-734:  Soundcloud Embed needs to expand length of the container it is placed within (#877)
- STN-730: Slider Styles (#866)
- chore: add a compatibility table for patterns and component region utility classes (#872)
- Added backup cleanup task
- corrected method call when launching a site
- HSD8-1056 News RSS importer (#884)
- HSD8-1064 HSD8-1065 HSD8-1066 HSD8-1067 Provision 4 new sites
- Updated default configs 2021-05-19 (#883)
- added and enabled draggable views
- track ultimate cron job for stanford fields module
- Fixup for paragraph behaviors javascript
- Fixed error handling on youtube media
  • Loading branch information
pookmish authored May 26, 2021
2 parents b696ad3 + 80fd8dd commit 58984ef
Show file tree
Hide file tree
Showing 126 changed files with 10,525 additions and 304 deletions.
4 changes: 4 additions & 0 deletions blt/blt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ multisites:
- ceas
- clas
- classics
- cmbprogram
- creees
- default
- dfetter__humsci
Expand Down Expand Up @@ -110,6 +111,7 @@ multisites:
- mcs
- mediterraneanstudies
- mrc
- mrc2021
- mtl
- philit
- philosophy
Expand All @@ -129,6 +131,8 @@ multisites:
- sts
- swshumsci_sandbox
- symsys
- tessier_lavigne_lab
- texttechnologies
- urbanstudies
- west
simplesamlphp: true
Expand Down
2 changes: 1 addition & 1 deletion blt/src/Blt/Plugin/Commands/HsAcquiaApiCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function connectAcquiaApi() {
try {
$this->acquiaApplications->getAll();
}
catch (\Exception $e) {
catch (\Throwable $e) {
$this->traitConnectAcquiaApi();
}
}
Expand Down
33 changes: 33 additions & 0 deletions blt/src/Blt/Plugin/Commands/HsCertCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,39 @@
*/
class HsCertCommands extends HsAcquiaApiCommands {

/**
* Delete all old database backups.
*
* @command humsci:clean-backups
*/
public function deleteOldBackups() {
$this->connectAcquiaApi();
$environments = $this->acquiaEnvironments->getAll($this->appId);
$environment_uuids = [];

foreach ($environments as $environment) {
if ($environment->name != 'ra') {
$environment_uuids[$environment->uuid] = $environment->name;
}
}

foreach ($this->acquiaDatabases->getAll($this->appId) as $database) {
$this->say(sprintf('Gather database backup info for %s', $database->name));

foreach ($environment_uuids as $environment_uuid => $name) {
$backups = $this->acquiaDatabaseBackups->getAll($environment_uuid, $database->name);
foreach ($backups as $backup) {

$start_at = strtotime($backup->startedAt);
if ($backup->type == 'ondemand' && time() - $start_at > 60 * 60 * 24 * 7) {
$this->say(sprintf('Deleting %s backup #%s on %s environment.', $database->name, $backup->id, $name));
$this->acquiaDatabaseBackups->delete($environment_uuid, $database->name, $backup->id);
}
}
}
}
}

/**
* Add domain to LetsEncrypt certificate.
*
Expand Down
2 changes: 1 addition & 1 deletion blt/src/Blt/Plugin/Commands/HsCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function sync(array $options = [
*/
public function launchSite($site) {
$new_domain = preg_replace('/[^a-z]/', '-', $site);
$new_domain = $this->askRequired('New domain?', "https://$new_domain.stanford.edu", TRUE);
$new_domain = $this->askQuestion('New domain?', "https://$new_domain.stanford.edu", TRUE);
$this->switchSiteContext($site);
$this->taskDrush()
->alias("$site.prod")
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
"drupal/default_content": "^2.0",
"drupal/diff": "^1.0",
"drupal/domain_301_redirect": "dev-2954889-d9-ready",
"drupal/draggableviews": "^2.0",
"drupal/ds": "^3.9",
"drupal/eck": "^1.0@beta",
"drupal/editor_advanced_link": "^1.8",
Expand Down Expand Up @@ -220,6 +221,7 @@
"drupal/smart_trim": "^1.3",
"drupal/stage_file_proxy": "^1.1",
"drupal/taxonomy_menu_ui": "^1.4",
"drupal/term_condition": "^2.0",
"drupal/ui_patterns": "^1.2",
"drupal/ui_patterns_field_variants": "1.x-dev",
"drupal/video_embed_field": "^2.4",
Expand Down
Loading

0 comments on commit 58984ef

Please sign in to comment.